Question Bank
3705 approved questions from the community
CSMA/CD is still commonly used in modern Ethernet networks.
What is TTL (Time to Live) used to prevent? (Select all that apply)
The MAC address ff:ff:ff:ff:ff:ff is used for broadcasting to all devices on the local network.
Which factors can affect network performance? (Select all that apply)
Using $_REQUEST is recommended over $_GET or $_POST for better code maintainability and debugging.
What is the primary engine that powers PHP execution?
What type of database query should be used to prevent SQL injection attacks?
The HttpOnly parameter when set to true makes a cookie accessible through both HTTP protocols and JavaScript.
Superglobal arrays like $_POST and $_GET have a global scope and are accessible from any part of the code.
CSPRNG functions in PHP 7/8 provide weaker random number generation compared to PHP 5.
PHP 8 introduced union types that allow specifying multiple possible return types separated by vertical bars.
Setting a location header with header() in PHP will automatically halt script execution.
PHP is a purely object-oriented programming language.
Which superglobal variable is used to store and retrieve session data in PHP?
What function must be called at the beginning of a PHP script to initialize a session?
How do you define a constant in PHP?
Using only strip_tags() is sufficient for preventing XSS attacks when displaying user-generated content.
$_POST is suitable for handling sensitive or large data because it's not visible in the URL.
Cookies are stored on the server side.
Sessions in PHP allow data to persist across different pages during a user's visit.