Which type of form validation occurs on the server-side after the data is submitted?

  • Client-side validation
  • Front-end validation
  • Real-time validation
  • Server-side validation
Server-side validation is performed on the server after the form is submitted. It is essential for security and data integrity, as it can't be bypassed by users. Server-side validation checks input against predefined rules, reducing the risk of accepting invalid or malicious data.

In a CSP policy, the directive ________ is used to control sources of script execution.

  • font-src
  • img-src
  • script-src
  • style-src
The 'script-src' directive in a Content Security Policy (CSP) is used to control the sources from which scripts can be executed on a web page.

In CodeIgniter, reducing the number of ________ can significantly improve application performance.

  • Controllers
  • Database Queries
  • Models
  • Views
By optimizing and reducing the number of database queries, developers can significantly enhance the performance of their CodeIgniter applications. Efficient database interactions are crucial for a well-performing application.

Which CodeIgniter configuration file is used to set the logging threshold?

  • config.php
  • database.php
  • log.php
  • routes.php
In CodeIgniter, the logging threshold is set in the 'log.php' configuration file. This file allows you to configure various logging parameters, including the threshold level for capturing log messages.

To secure email transmissions, applications often use ________ over SMTP.

  • HTTPS
  • OAuth
  • SSL
  • TLS
Transport Layer Security (TLS) is commonly used to secure email transmissions over SMTP (Simple Mail Transfer Protocol). TLS encrypts the data during transmission, providing a secure communication channel.

The ________ attribute in HTML5 is used to ensure that a field is not left empty.

  • Mandatory
  • NotEmpty
  • Required
  • Validate
The "required" attribute in HTML5 is used to specify that a field must be filled out before submitting the form, helping ensure essential information is provided.

How does server-side validation differ from client-side validation in the context of file uploads?

  • Client-side validation is less secure than server-side validation.
  • Client-side validation is performed on the client's browser before the file is uploaded.
  • Server-side validation is not applicable to file uploads.
  • Server-side validation is performed on the server after the file is uploaded.
Server-side validation is crucial for security as it ensures that uploaded files meet specific criteria, such as file type and size, preventing malicious uploads. Client-side validation can be bypassed, making server-side validation essential for robust security.

In CodeIgniter, the method ________ is used to set custom error and exception handlers.

  • error_handler
  • exception_handler
  • set_error_handler
  • set_exception_handler
In CodeIgniter, the set_exception_handler method is used to set a custom handler for uncaught exceptions. This allows you to define your own logic for handling exceptions in your CodeIgniter application, providing more control over error management.

Which HTTP method is commonly used for sending data during the OAuth authentication process?

  • DELETE
  • GET
  • POST
  • PUT
The HTTP POST method is commonly used for sending data during the OAuth authentication process. This method allows secure transmission of sensitive information, such as access tokens, in the request body.

What is the primary function of a payment gateway in an online shopping platform?

  • Designs website layout
  • Facilitates secure online transactions
  • Manages inventory
  • Provides customer support
A payment gateway is a crucial component that facilitates secure online transactions by encrypting sensitive information such as credit card numbers, ensuring the confidentiality and integrity of the payment process. It acts as a bridge between the merchant's website and the financial institutions involved in the transaction.