","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What are the most common ways to start and end a PHP block of code?","jawda_quiz_question_explanation":"The standard and most common way to delimit PHP code within an HTML file is using the '' closing tag. This ensures proper parsing by the PHP engine.","jawda_quiz_question_answers":[{"jawda_a_text":"<% and %>","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"<% and %>","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What was the main difference between PHP 4 and PHP 5?","jawda_q_type":"single","jawda_q_explanation":"PHP 5 introduced a significantly improved object model, bringing many new and robust Object-Oriented Programming (OOP) features compared to the more limited OOP support in PHP 4.","jawda_q_answers":[{"jawda_a_text":"PHP 4 had better performance.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"PHP 4 had better performance.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"PHP 4 supported more databases.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"PHP 4 supported more databases.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"PHP 5 was slower than PHP 4.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"PHP 5 was slower than PHP 4.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"PHP 5 presents many additional OOP (Object Oriented Programming) features.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"PHP 5 presents many additional OOP (Object Oriented Programming) features.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What was the main difference between PHP 4 and PHP 5?","jawda_quiz_question_explanation":"PHP 5 introduced a significantly improved object model, bringing many new and robust Object-Oriented Programming (OOP) features compared to the more limited OOP support in PHP 4.","jawda_quiz_question_answers":[{"jawda_a_text":"PHP 4 had better performance.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"PHP 4 had better performance.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"PHP 4 supported more databases.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"PHP 4 supported more databases.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"PHP 5 was slower than PHP 4.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"PHP 5 was slower than PHP 4.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"PHP 5 presents many additional OOP (Object Oriented Programming) features.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"PHP 5 presents many additional OOP (Object Oriented Programming) features.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"Is multiple inheritance supported in PHP?","jawda_q_type":"single","jawda_q_explanation":"PHP does not support multiple inheritance directly through classes. A class can only inherit from a single parent class using the 'extends' keyword, though interfaces can be used to achieve similar polymorphism.","jawda_q_answers":[{"jawda_a_text":"Yes, using the 'implements' keyword.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Yes, using the 'implements' keyword.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Yes, using traits.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Yes, using traits.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Yes, using multiple 'extends' keywords.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Yes, using multiple 'extends' keywords.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"PHP supports only single inheritance; it means that a class can be extended from only one single class using the keyword ‘extends’.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"PHP supports only single inheritance; it means that a class can be extended from only one single class using the keyword ‘extends’.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"Is multiple inheritance supported in PHP?","jawda_quiz_question_explanation":"PHP does not support multiple inheritance directly through classes. A class can only inherit from a single parent class using the 'extends' keyword, though interfaces can be used to achieve similar polymorphism.","jawda_quiz_question_answers":[{"jawda_a_text":"Yes, using the 'implements' keyword.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Yes, using the 'implements' keyword.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Yes, using traits.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Yes, using traits.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Yes, using multiple 'extends' keywords.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Yes, using multiple 'extends' keywords.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"PHP supports only single inheritance; it means that a class can be extended from only one single class using the keyword ‘extends’.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"PHP supports only single inheritance; it means that a class can be extended from only one single class using the keyword ‘extends’.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How are objects compared in PHP?","jawda_q_type":"single","jawda_q_explanation":"In PHP, objects are compared using two main operators: '==' for loose comparison (checking if they have the same attributes and values) and '===' for strict comparison (checking if they are the exact same instance of the same class). The provided correct answer is irrelevant to object comparison.","jawda_q_answers":[{"jawda_a_text":"Objects are compared by their memory addresses.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Objects are compared by their memory addresses.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Objects are compared by their class names only.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Objects are compared by their class names only.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Objects are compared using the 'equals()' method.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Objects are compared using the 'equals()' method.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Objects are compared using '==' (loose comparison) to check if they have the same attributes and values, and '===' (strict comparison) to check if they refer to the same instance.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Objects are compared using '==' (loose comparison) to check if they have the same attributes and values, and '===' (strict comparison) to check if they refer to the same instance.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How are objects compared in PHP?","jawda_quiz_question_explanation":"In PHP, objects are compared using two main operators: '==' for loose comparison (checking if they have the same attributes and values) and '===' for strict comparison (checking if they are the exact same instance of the same class). The provided correct answer is irrelevant to object comparison.","jawda_quiz_question_answers":[{"jawda_a_text":"Objects are compared by their memory addresses.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Objects are compared by their memory addresses.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Objects are compared by their class names only.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Objects are compared by their class names only.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Objects are compared using the 'equals()' method.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Objects are compared using the 'equals()' method.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Objects are compared using '==' (loose comparison) to check if they have the same attributes and values, and '===' (strict comparison) to check if they refer to the same instance.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Objects are compared using '==' (loose comparison) to check if they have the same attributes and values, and '===' (strict comparison) to check if they refer to the same instance.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How do PHP and HTML interact?","jawda_q_type":"single","jawda_q_explanation":"PHP is a server-side scripting language that can generate dynamic HTML content. It can also receive data from HTML forms and URL parameters, allowing for interactive web applications.","jawda_q_answers":[{"jawda_a_text":"PHP and HTML are largely the same.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"PHP and HTML are largely the same.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It is possible to generate HTML through PHP scripts, and it is possible to pass information from HTML to PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It is possible to generate HTML through PHP scripts, and it is possible to pass information from HTML to PHP.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How do PHP and HTML interact?","jawda_quiz_question_explanation":"PHP is a server-side scripting language that can generate dynamic HTML content. It can also receive data from HTML forms and URL parameters, allowing for interactive web applications.","jawda_quiz_question_answers":[{"jawda_a_text":"PHP and HTML are largely the same.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"PHP and HTML are largely the same.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It is possible to generate HTML through PHP scripts, and it is possible to pass information from HTML to PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It is possible to generate HTML through PHP scripts, and it is possible to pass information from HTML to PHP.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What type of operation is needed when passing values through a form or a URL?","jawda_q_type":"single","jawda_q_explanation":"When passing values through a form or a URL, it's crucial to encode and decode them to ensure data integrity and prevent issues with special characters. Functions like htmlspecialchars() and urlencode() are used for this purpose.","jawda_q_answers":[{"jawda_a_text":"If we would like to pass values through a form or a URL, then we need to encode and decode them using htmlspecialchars() and urlencode().","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"If we would like to pass values through a form or a URL, then we need to encode and decode them using htmlspecialchars() and urlencode().","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"PHP and HTML are largely the same.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"PHP and HTML are largely the same.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What type of operation is needed when passing values through a form or a URL?","jawda_quiz_question_explanation":"When passing values through a form or a URL, it's crucial to encode and decode them to ensure data integrity and prevent issues with special characters. Functions like htmlspecialchars() and urlencode() are used for this purpose.","jawda_quiz_question_answers":[{"jawda_a_text":"If we would like to pass values through a form or a URL, then we need to encode and decode them using htmlspecialchars() and urlencode().","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"If we would like to pass values through a form or a URL, then we need to encode and decode them using htmlspecialchars() and urlencode().","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"PHP and HTML are largely the same.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"PHP and HTML are largely the same.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How do PHP and JavaScript interact?","jawda_q_type":"single","jawda_q_explanation":"PHP is a server-side language, executing on the web server, while JavaScript is a client-side language, executing in the user's browser. They cannot directly interact but communicate through HTTP requests and responses, where PHP can generate JavaScript code or data for JavaScript to process.","jawda_q_answers":[{"jawda_a_text":"PHP and JavaScript are largely the same.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"PHP and JavaScript are largely the same.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"PHP and JavaScript cannot directly interact since PHP is a server-side language and JavaScript is a client-side language.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"PHP and JavaScript cannot directly interact since PHP is a server-side language and JavaScript is a client-side language.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How do PHP and JavaScript interact?","jawda_quiz_question_explanation":"PHP is a server-side language, executing on the web server, while JavaScript is a client-side language, executing in the user's browser. They cannot directly interact but communicate through HTTP requests and responses, where PHP can generate JavaScript code or data for JavaScript to process.","jawda_quiz_question_answers":[{"jawda_a_text":"PHP and JavaScript are largely the same.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"PHP and JavaScript are largely the same.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"PHP and JavaScript cannot directly interact since PHP is a server-side language and JavaScript is a client-side language.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"PHP and JavaScript cannot directly interact since PHP is a server-side language and JavaScript is a client-side language.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What is needed to use image functions in PHP?","jawda_q_type":"single","jawda_q_explanation":"To work with image functions in PHP, the GD library must be installed and enabled. This library provides a wide range of functions for creating and manipulating image files.","jawda_q_answers":[{"jawda_a_text":"PHP and HTML are largely the same.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"PHP and HTML are largely the same.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"The GD library is needed to execute image functions.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The GD library is needed to execute image functions.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What is needed to use image functions in PHP?","jawda_quiz_question_explanation":"To work with image functions in PHP, the GD library must be installed and enabled. This library provides a wide range of functions for creating and manipulating image files.","jawda_quiz_question_answers":[{"jawda_a_text":"PHP and HTML are largely the same.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"PHP and HTML are largely the same.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"The GD library is needed to execute image functions.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The GD library is needed to execute image functions.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What is the use of the 'imagetypes()' function?","jawda_q_type":"single","jawda_q_explanation":"The imagetypes() function in PHP is used to determine which image formats (like GIF, JPEG, PNG) are supported by the currently installed version of the GD library.","jawda_q_answers":[{"jawda_a_text":"PHP and HTML are largely the same.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"PHP and HTML are largely the same.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It gives the image formats and types supported by the current version of GD-PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It gives the image formats and types supported by the current version of GD-PHP.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What is the use of the 'imagetypes()' function?","jawda_quiz_question_explanation":"The imagetypes() function in PHP is used to determine which image formats (like GIF, JPEG, PNG) are supported by the currently installed version of the GD library.","jawda_quiz_question_answers":[{"jawda_a_text":"PHP and HTML are largely the same.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"PHP and HTML are largely the same.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It gives the image formats and types supported by the current version of GD-PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It gives the image formats and types supported by the current version of GD-PHP.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What functions are used to get an image's properties (size, width, and height) in PHP?","jawda_q_type":"single","jawda_q_explanation":"The `getimagesize()` function returns an array containing the image's width, height, type, and other attributes. The width and height can then be extracted from this array.","jawda_q_answers":[{"jawda_a_text":"image_properties()","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"image_properties()","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"get_image_info()","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"get_image_info()","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"image_get_data()","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"image_get_data()","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The `getimagesize()` function is used to retrieve an image's properties, including its size, width, and height.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The `getimagesize()` function is used to retrieve an image's properties, including its size, width, and height.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What functions are used to get an image's properties (size, width, and height) in PHP?","jawda_quiz_question_explanation":"The `getimagesize()` function returns an array containing the image's width, height, type, and other attributes. The width and height can then be extracted from this array.","jawda_quiz_question_answers":[{"jawda_a_text":"image_properties()","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"image_properties()","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"get_image_info()","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"get_image_info()","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"image_get_data()","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"image_get_data()","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The `getimagesize()` function is used to retrieve an image's properties, including its size, width, and height.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The `getimagesize()` function is used to retrieve an image's properties, including its size, width, and height.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How are execution failures handled with `include()` and `require()` functions in PHP?","jawda_q_type":"single","jawda_q_explanation":"If `require()` fails to include a file, it will produce a fatal error and stop script execution. In contrast, `include()` will only produce a warning and continue script execution.","jawda_q_answers":[{"jawda_a_text":"`include()` and `require()` handle failures in the same way.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"`include()` and `require()` handle failures in the same way.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Both functions issue a warning and continue script execution.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Both functions issue a warning and continue script execution.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"If `require()` cannot access the file, it ends with a fatal error, while `include()` issues a warning.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"If `require()` cannot access the file, it ends with a fatal error, while `include()` issues a warning.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Both functions silently fail without any error or warning.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Both functions silently fail without any error or warning.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How are execution failures handled with `include()` and `require()` functions in PHP?","jawda_quiz_question_explanation":"If `require()` fails to include a file, it will produce a fatal error and stop script execution. In contrast, `include()` will only produce a warning and continue script execution.","jawda_quiz_question_answers":[{"jawda_a_text":"`include()` and `require()` handle failures in the same way.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"`include()` and `require()` handle failures in the same way.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Both functions issue a warning and continue script execution.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Both functions issue a warning and continue script execution.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"If `require()` cannot access the file, it ends with a fatal error, while `include()` issues a warning.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"If `require()` cannot access the file, it ends with a fatal error, while `include()` issues a warning.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Both functions silently fail without any error or warning.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Both functions silently fail without any error or warning.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What is the main difference between `require()` and `require_once()` in PHP?","jawda_q_type":"single","jawda_q_explanation":"The `require_once()` function is similar to `require()`, but it ensures that the file is included only once, preventing issues like function re-declarations or variable re-initializations if the file is called multiple times.","jawda_q_answers":[{"jawda_a_text":"`require_once()` checks if the PHP script is already included before executing it, unlike `require()`.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"`require_once()` checks if the PHP script is already included before executing it, unlike `require()`.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"`require()` is used for critical files, while `require_once()` is for optional files.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"`require()` is used for critical files, while `require_once()` is for optional files.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"`require_once()` provides better error handling than `require()`.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"`require_once()` provides better error handling than `require()`.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"There is no functional difference; they are interchangeable.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"There is no functional difference; they are interchangeable.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What is the main difference between `require()` and `require_once()` in PHP?","jawda_quiz_question_explanation":"The `require_once()` function is similar to `require()`, but it ensures that the file is included only once, preventing issues like function re-declarations or variable re-initializations if the file is called multiple times.","jawda_quiz_question_answers":[{"jawda_a_text":"`require_once()` checks if the PHP script is already included before executing it, unlike `require()`.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"`require_once()` checks if the PHP script is already included before executing it, unlike `require()`.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"`require()` is used for critical files, while `require_once()` is for optional files.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"`require()` is used for critical files, while `require_once()` is for optional files.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"`require_once()` provides better error handling than `require()`.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"`require_once()` provides better error handling than `require()`.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"There is no functional difference; they are interchangeable.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"There is no functional difference; they are interchangeable.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How can you display human-readable information about a variable in PHP?","jawda_q_type":"single","jawda_q_explanation":"The `var_dump()` function displays structured information about one or more expressions, including its type and value, which is very useful for debugging and understanding variable contents.","jawda_q_answers":[{"jawda_a_text":"To display human-readable information about a variable, you use `var_dump()`.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"To display human-readable information about a variable, you use `var_dump()`.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Using `echo $variable;` is sufficient for all variable types.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Using `echo $variable;` is sufficient for all variable types.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The `print()` function provides detailed variable information.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The `print()` function provides detailed variable information.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"You must manually loop through arrays and objects to display their contents.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"You must manually loop through arrays and objects to display their contents.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How can you display human-readable information about a variable in PHP?","jawda_quiz_question_explanation":"The `var_dump()` function displays structured information about one or more expressions, including its type and value, which is very useful for debugging and understanding variable contents.","jawda_quiz_question_answers":[{"jawda_a_text":"To display human-readable information about a variable, you use `var_dump()`.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"To display human-readable information about a variable, you use `var_dump()`.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Using `echo $variable;` is sufficient for all variable types.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Using `echo $variable;` is sufficient for all variable types.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The `print()` function provides detailed variable information.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The `print()` function provides detailed variable information.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"You must manually loop through arrays and objects to display their contents.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"You must manually loop through arrays and objects to display their contents.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How is it possible to set an infinite execution time for a PHP script?","jawda_q_type":"single","jawda_q_explanation":"The `set_time_limit(0)` function, when called at the beginning of a script, sets the maximum execution time to unlimited, preventing the 'maximum execution time exceeded' error. This can also be configured in the `php.ini` file.","jawda_q_answers":[{"jawda_a_text":"By using `ini_set('max_execution_time', -1);`","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"By using `ini_set('max_execution_time', -1);`","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"By adding `set_time_limit(0);` at the beginning of the script or configuring it in `php.ini`.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By adding `set_time_limit(0);` at the beginning of the script or configuring it in `php.ini`.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"PHP scripts automatically have infinite execution time by default.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"PHP scripts automatically have infinite execution time by default.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"There is no way to set an infinite execution time for a PHP script.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"There is no way to set an infinite execution time for a PHP script.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How is it possible to set an infinite execution time for a PHP script?","jawda_quiz_question_explanation":"The `set_time_limit(0)` function, when called at the beginning of a script, sets the maximum execution time to unlimited, preventing the 'maximum execution time exceeded' error. This can also be configured in the `php.ini` file.","jawda_quiz_question_answers":[{"jawda_a_text":"By using `ini_set('max_execution_time', -1);`","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"By using `ini_set('max_execution_time', -1);`","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"By adding `set_time_limit(0);` at the beginning of the script or configuring it in `php.ini`.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By adding `set_time_limit(0);` at the beginning of the script or configuring it in `php.ini`.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"PHP scripts automatically have infinite execution time by default.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"PHP scripts automatically have infinite execution time by default.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"There is no way to set an infinite execution time for a PHP script.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"There is no way to set an infinite execution time for a PHP script.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What does the PHP error 'Parse error in PHP – unexpected T_variable at line x' mean?","jawda_q_type":"single","jawda_q_explanation":"A 'Parse error - unexpected T_variable' indicates a syntax error where the PHP parser encountered a variable in an unexpected place, preventing the script from being parsed and executed correctly.","jawda_q_answers":[{"jawda_a_text":"It means that 'and' and '&&' are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"It means that 'and' and '&&' are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"This is a PHP syntax error expressing that a mistake at line x stops parsing and executing the program.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"This is a PHP syntax error expressing that a mistake at line x stops parsing and executing the program.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It implies that the 'and' operator is behaving instead as an assignment operator.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It implies that the 'and' operator is behaving instead as an assignment operator.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It means that both '$a' and '$b' will be equal to the string '21' after the code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It means that both '$a' and '$b' will be equal to the string '21' after the code is executed.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What does the PHP error 'Parse error in PHP – unexpected T_variable at line x' mean?","jawda_quiz_question_explanation":"A 'Parse error - unexpected T_variable' indicates a syntax error where the PHP parser encountered a variable in an unexpected place, preventing the script from being parsed and executed correctly.","jawda_quiz_question_answers":[{"jawda_a_text":"It means that 'and' and '&&' are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"It means that 'and' and '&&' are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"This is a PHP syntax error expressing that a mistake at line x stops parsing and executing the program.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"This is a PHP syntax error expressing that a mistake at line x stops parsing and executing the program.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It implies that the 'and' operator is behaving instead as an assignment operator.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It implies that the 'and' operator is behaving instead as an assignment operator.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It means that both '$a' and '$b' will be equal to the string '21' after the code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It means that both '$a' and '$b' will be equal to the string '21' after the code is executed.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What should we do to be able to export data into an Excel file?","jawda_q_type":"single","jawda_q_explanation":"To export data to Excel, the most common and effective method is to format the data into a type that Excel can easily interpret, such as CSV (Comma Separated Values) or a spreadsheet format like XLSX.","jawda_q_answers":[{"jawda_a_text":"It means that 'and' and '&&' are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"It means that 'and' and '&&' are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It implies that the 'and' operator is behaving instead as an assignment operator.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It implies that the 'and' operator is behaving instead as an assignment operator.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It means that both '$a' and '$b' will be equal to the string '21' after the code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It means that both '$a' and '$b' will be equal to the string '21' after the code is executed.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The most common and used way is to get data into a format supported by Excel (e.g., CSV, XLSX).","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The most common and used way is to get data into a format supported by Excel (e.g., CSV, XLSX).","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What should we do to be able to export data into an Excel file?","jawda_quiz_question_explanation":"To export data to Excel, the most common and effective method is to format the data into a type that Excel can easily interpret, such as CSV (Comma Separated Values) or a spreadsheet format like XLSX.","jawda_quiz_question_answers":[{"jawda_a_text":"It means that 'and' and '&&' are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"It means that 'and' and '&&' are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It implies that the 'and' operator is behaving instead as an assignment operator.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It implies that the 'and' operator is behaving instead as an assignment operator.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It means that both '$a' and '$b' will be equal to the string '21' after the code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It means that both '$a' and '$b' will be equal to the string '21' after the code is executed.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The most common and used way is to get data into a format supported by Excel (e.g., CSV, XLSX).","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The most common and used way is to get data into a format supported by Excel (e.g., CSV, XLSX).","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What is the function file_get_contents() useful for?","jawda_q_type":"single","jawda_q_explanation":"The `file_get_contents()` function in PHP is used to read the entire content of a file into a string variable, making it convenient for processing file data.","jawda_q_answers":[{"jawda_a_text":"It means that 'and' and '&&' are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"It means that 'and' and '&&' are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It implies that the 'and' operator is behaving instead as an assignment operator.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It implies that the 'and' operator is behaving instead as an assignment operator.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It allows reading a file and storing its entire content in a string variable.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It allows reading a file and storing its entire content in a string variable.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It means that both '$a' and '$b' will be equal to the string '21' after the code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It means that both '$a' and '$b' will be equal to the string '21' after the code is executed.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What is the function file_get_contents() useful for?","jawda_quiz_question_explanation":"The `file_get_contents()` function in PHP is used to read the entire content of a file into a string variable, making it convenient for processing file data.","jawda_quiz_question_answers":[{"jawda_a_text":"It means that 'and' and '&&' are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"It means that 'and' and '&&' are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It implies that the 'and' operator is behaving instead as an assignment operator.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It implies that the 'and' operator is behaving instead as an assignment operator.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It allows reading a file and storing its entire content in a string variable.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It allows reading a file and storing its entire content in a string variable.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It means that both '$a' and '$b' will be equal to the string '21' after the code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It means that both '$a' and '$b' will be equal to the string '21' after the code is executed.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How is the result set of MySQL handled in PHP?","jawda_q_type":"single","jawda_q_explanation":"In PHP, the result set from a MySQL query can be processed using various `mysqli_fetch_` functions, each designed to retrieve rows as associative arrays, numeric arrays, objects, or a combination.","jawda_q_answers":[{"jawda_a_text":"It means that 'and' and '&&' are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"It means that 'and' and '&&' are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"The result set can be handled using mysqli_fetch_array, mysqli_fetch_assoc, mysqli_fetch_object or mysqli_fetch_row.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The result set can be handled using mysqli_fetch_array, mysqli_fetch_assoc, mysqli_fetch_object or mysqli_fetch_row.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It implies that the 'and' operator is behaving instead as an assignment operator.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It implies that the 'and' operator is behaving instead as an assignment operator.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It means that both '$a' and '$b' will be equal to the string '21' after the code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It means that both '$a' and '$b' will be equal to the string '21' after the code is executed.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How is the result set of MySQL handled in PHP?","jawda_quiz_question_explanation":"In PHP, the result set from a MySQL query can be processed using various `mysqli_fetch_` functions, each designed to retrieve rows as associative arrays, numeric arrays, objects, or a combination.","jawda_quiz_question_answers":[{"jawda_a_text":"It means that 'and' and '&&' are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"It means that 'and' and '&&' are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"The result set can be handled using mysqli_fetch_array, mysqli_fetch_assoc, mysqli_fetch_object or mysqli_fetch_row.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The result set can be handled using mysqli_fetch_array, mysqli_fetch_assoc, mysqli_fetch_object or mysqli_fetch_row.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It implies that the 'and' operator is behaving instead as an assignment operator.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It implies that the 'and' operator is behaving instead as an assignment operator.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It means that both '$a' and '$b' will be equal to the string '21' after the code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It means that both '$a' and '$b' will be equal to the string '21' after the code is executed.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How is it possible to know the number of rows returned in a MySQL result set?","jawda_q_type":"single","jawda_q_explanation":"The `mysqli_num_rows()` function is used to determine the number of rows in a result set obtained from a MySQL query, which is crucial for iterating through results or checking if any data was returned.","jawda_q_answers":[{"jawda_a_text":"It means that 'and' and '&&' are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"It means that 'and' and '&&' are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It implies that the 'and' operator is behaving instead as an assignment operator.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It implies that the 'and' operator is behaving instead as an assignment operator.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It means that both '$a' and '$b' will be equal to the string '21' after the code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It means that both '$a' and '$b' will be equal to the string '21' after the code is executed.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The `mysqli_num_rows()` function returns the number of rows in a result set.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The `mysqli_num_rows()` function returns the number of rows in a result set.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How is it possible to know the number of rows returned in a MySQL result set?","jawda_quiz_question_explanation":"The `mysqli_num_rows()` function is used to determine the number of rows in a result set obtained from a MySQL query, which is crucial for iterating through results or checking if any data was returned.","jawda_quiz_question_answers":[{"jawda_a_text":"It means that 'and' and '&&' are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"It means that 'and' and '&&' are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It implies that the 'and' operator is behaving instead as an assignment operator.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It implies that the 'and' operator is behaving instead as an assignment operator.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It means that both '$a' and '$b' will be equal to the string '21' after the code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It means that both '$a' and '$b' will be equal to the string '21' after the code is executed.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The `mysqli_num_rows()` function returns the number of rows in a result set.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The `mysqli_num_rows()` function returns the number of rows in a result set.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"Which function returns the number of affected rows by a query?","jawda_q_type":"single","jawda_q_explanation":"The mysqli_affected_rows() function is used to return the number of rows affected by the last INSERT, UPDATE, REPLACE or DELETE query.","jawda_q_answers":[{"jawda_a_text":"mysqli_num_rows()","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"mysqli_num_rows()","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"mysqli_affected_rows()","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"mysqli_affected_rows()","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"mysqli_fetch_row()","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"mysqli_fetch_row()","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"mysqli_query()","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"mysqli_query()","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"Which function returns the number of affected rows by a query?","jawda_quiz_question_explanation":"The mysqli_affected_rows() function is used to return the number of rows affected by the last INSERT, UPDATE, REPLACE or DELETE query.","jawda_quiz_question_answers":[{"jawda_a_text":"mysqli_num_rows()","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"mysqli_num_rows()","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"mysqli_affected_rows()","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"mysqli_affected_rows()","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"mysqli_fetch_row()","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"mysqli_fetch_row()","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"mysqli_query()","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"mysqli_query()","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?","jawda_q_type":"single","jawda_q_explanation":"mysqli_fetch_object() fetches a result row as an object, while mysqli_fetch_array() fetches a result row as an associative array, a numeric array, or both.","jawda_q_answers":[{"jawda_a_text":"mysqli_fetch_object() returns a single record, while mysqli_fetch_array() returns all records.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"mysqli_fetch_object() returns a single record, while mysqli_fetch_array() returns all records.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"mysqli_fetch_object() fetches a row as an object, and mysqli_fetch_array() fetches a row as an array.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"mysqli_fetch_object() fetches a row as an object, and mysqli_fetch_array() fetches a row as an array.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"There is no significant difference; they are largely interchangeable.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"There is no significant difference; they are largely interchangeable.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"mysqli_fetch_object() is deprecated, while mysqli_fetch_array() is the modern approach.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"mysqli_fetch_object() is deprecated, while mysqli_fetch_array() is the modern approach.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?","jawda_quiz_question_explanation":"mysqli_fetch_object() fetches a result row as an object, while mysqli_fetch_array() fetches a result row as an associative array, a numeric array, or both.","jawda_quiz_question_answers":[{"jawda_a_text":"mysqli_fetch_object() returns a single record, while mysqli_fetch_array() returns all records.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"mysqli_fetch_object() returns a single record, while mysqli_fetch_array() returns all records.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"mysqli_fetch_object() fetches a row as an object, and mysqli_fetch_array() fetches a row as an array.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"mysqli_fetch_object() fetches a row as an object, and mysqli_fetch_array() fetches a row as an array.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"There is no significant difference; they are largely interchangeable.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"There is no significant difference; they are largely interchangeable.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"mysqli_fetch_object() is deprecated, while mysqli_fetch_array() is the modern approach.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"mysqli_fetch_object() is deprecated, while mysqli_fetch_array() is the modern approach.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How can you check if the value of a given variable is a number?","jawda_q_type":"single","jawda_q_explanation":"The is_numeric() function in PHP is specifically designed to check if a variable is a number or a numeric string.","jawda_q_answers":[{"jawda_a_text":"It is possible to use the dedicated function, is_numeric() to check whether it is a number or not.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"It is possible to use the dedicated function, is_numeric() to check whether it is a number or not.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Using a regular expression to match numeric patterns.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Using a regular expression to match numeric patterns.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Casting the variable to an integer and comparing it to the original.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Casting the variable to an integer and comparing it to the original.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Checking if the variable's type is 'integer' or 'float'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Checking if the variable's type is 'integer' or 'float'.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How can you check if the value of a given variable is a number?","jawda_quiz_question_explanation":"The is_numeric() function in PHP is specifically designed to check if a variable is a number or a numeric string.","jawda_quiz_question_answers":[{"jawda_a_text":"It is possible to use the dedicated function, is_numeric() to check whether it is a number or not.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"It is possible to use the dedicated function, is_numeric() to check whether it is a number or not.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Using a regular expression to match numeric patterns.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Using a regular expression to match numeric patterns.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Casting the variable to an integer and comparing it to the original.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Casting the variable to an integer and comparing it to the original.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Checking if the variable's type is 'integer' or 'float'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Checking if the variable's type is 'integer' or 'float'.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How do I check if a given variable is empty?","jawda_q_type":"single","jawda_q_explanation":"The empty() function checks whether a variable is empty. A variable is considered empty if it does not exist or if its value is false, 0, an empty string, NULL, or an empty array.","jawda_q_answers":[{"jawda_a_text":"Using the isset() function.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Using the isset() function.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Comparing the variable to an empty string.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Comparing the variable to an empty string.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Checking if the variable's length is zero.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Checking if the variable's length is zero.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"If we want to check whether a variable has a value or not, it is possible to use the empty() function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"If we want to check whether a variable has a value or not, it is possible to use the empty() function.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How do I check if a given variable is empty?","jawda_quiz_question_explanation":"The empty() function checks whether a variable is empty. A variable is considered empty if it does not exist or if its value is false, 0, an empty string, NULL, or an empty array.","jawda_quiz_question_answers":[{"jawda_a_text":"Using the isset() function.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Using the isset() function.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Comparing the variable to an empty string.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Comparing the variable to an empty string.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Checking if the variable's length is zero.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Checking if the variable's length is zero.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"If we want to check whether a variable has a value or not, it is possible to use the empty() function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"If we want to check whether a variable has a value or not, it is possible to use the empty() function.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What does the unlink() function do?","jawda_q_type":"single","jawda_q_explanation":"The unlink() function in PHP is used to delete a file from the file system. It takes the path to the file as an argument.","jawda_q_answers":[{"jawda_a_text":"It unlinks a variable from its reference.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"It unlinks a variable from its reference.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It closes an open file handle.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It closes an open file handle.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It deletes a file from the file system.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It deletes a file from the file system.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It removes a directory.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It removes a directory.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What does the unlink() function do?","jawda_quiz_question_explanation":"The unlink() function in PHP is used to delete a file from the file system. It takes the path to the file as an argument.","jawda_quiz_question_answers":[{"jawda_a_text":"It unlinks a variable from its reference.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"It unlinks a variable from its reference.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It closes an open file handle.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It closes an open file handle.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It deletes a file from the file system.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It deletes a file from the file system.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It removes a directory.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It removes a directory.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How do you escape data before storing it in a database in PHP?","jawda_q_type":"single","jawda_q_explanation":"The `addslashes()` function is used to escape special characters in a string for database queries, preventing SQL injection vulnerabilities by adding backslashes before predefined characters.","jawda_q_answers":[{"jawda_a_text":"Using the `htmlentities()` function.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Using the `htmlentities()` function.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Using the `addslashes()` function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Using the `addslashes()` function.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Using the `strip_tags()` function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Using the `strip_tags()` function.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Using the `htmlspecialchars()` function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Using the `htmlspecialchars()` function.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How do you escape data before storing it in a database in PHP?","jawda_quiz_question_explanation":"The `addslashes()` function is used to escape special characters in a string for database queries, preventing SQL injection vulnerabilities by adding backslashes before predefined characters.","jawda_quiz_question_answers":[{"jawda_a_text":"Using the `htmlentities()` function.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Using the `htmlentities()` function.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Using the `addslashes()` function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Using the `addslashes()` function.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Using the `strip_tags()` function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Using the `strip_tags()` function.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Using the `htmlspecialchars()` function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Using the `htmlspecialchars()` function.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How can you remove escape characters from a string in PHP?","jawda_q_type":"single","jawda_q_explanation":"The `stripslashes()` function is specifically designed to remove backslashes added by `addslashes()` or magic quotes, restoring the original string content.","jawda_q_answers":[{"jawda_a_text":"Using the `str_replace()` function.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Using the `str_replace()` function.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Using the `stripslashes()` function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Using the `stripslashes()` function.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Using the `trim()` function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Using the `trim()` function.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Using the `preg_replace()` function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Using the `preg_replace()` function.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How can you remove escape characters from a string in PHP?","jawda_quiz_question_explanation":"The `stripslashes()` function is specifically designed to remove backslashes added by `addslashes()` or magic quotes, restoring the original string content.","jawda_quiz_question_answers":[{"jawda_a_text":"Using the `str_replace()` function.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Using the `str_replace()` function.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Using the `stripslashes()` function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Using the `stripslashes()` function.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Using the `trim()` function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Using the `trim()` function.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Using the `preg_replace()` function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Using the `preg_replace()` function.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What does the `get_magic_quotes_gpc()` function indicate in PHP?","jawda_q_type":"single","jawda_q_explanation":"The `get_magic_quotes_gpc()` function, though deprecated in newer PHP versions, was used to check if the 'magic_quotes_gpc' configuration directive was enabled, which automatically escaped incoming GET, POST, and COOKIE data.","jawda_q_answers":[{"jawda_a_text":"It checks if the 'magic_quotes_runtime' setting is enabled.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"It checks if the 'magic_quotes_runtime' setting is enabled.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It indicates whether the 'magic_quotes_gpc' setting is switched on or off.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It indicates whether the 'magic_quotes_gpc' setting is switched on or off.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It returns the current PHP version.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It returns the current PHP version.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It retrieves the global configuration for GPC variables.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It retrieves the global configuration for GPC variables.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What does the `get_magic_quotes_gpc()` function indicate in PHP?","jawda_quiz_question_explanation":"The `get_magic_quotes_gpc()` function, though deprecated in newer PHP versions, was used to check if the 'magic_quotes_gpc' configuration directive was enabled, which automatically escaped incoming GET, POST, and COOKIE data.","jawda_quiz_question_answers":[{"jawda_a_text":"It checks if the 'magic_quotes_runtime' setting is enabled.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"It checks if the 'magic_quotes_runtime' setting is enabled.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It indicates whether the 'magic_quotes_gpc' setting is switched on or off.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It indicates whether the 'magic_quotes_gpc' setting is switched on or off.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It returns the current PHP version.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It returns the current PHP version.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It retrieves the global configuration for GPC variables.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It retrieves the global configuration for GPC variables.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"Is it possible to remove HTML tags from a string in PHP?","jawda_q_type":"single","jawda_q_explanation":"The `strip_tags()` function is specifically designed to remove HTML and PHP tags from a string, which is useful for sanitizing user input or displaying plain text content.","jawda_q_answers":[{"jawda_a_text":"Yes, the `strip_tags()` function enables us to clean a string from HTML tags.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Yes, the `strip_tags()` function enables us to clean a string from HTML tags.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"No, PHP does not have a built-in function for this purpose.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"No, PHP does not have a built-in function for this purpose.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Only by using regular expressions.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Only by using regular expressions.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Only if the HTML is well-formed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Only if the HTML is well-formed.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"Is it possible to remove HTML tags from a string in PHP?","jawda_quiz_question_explanation":"The `strip_tags()` function is specifically designed to remove HTML and PHP tags from a string, which is useful for sanitizing user input or displaying plain text content.","jawda_quiz_question_answers":[{"jawda_a_text":"Yes, the `strip_tags()` function enables us to clean a string from HTML tags.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Yes, the `strip_tags()` function enables us to clean a string from HTML tags.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"No, PHP does not have a built-in function for this purpose.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"No, PHP does not have a built-in function for this purpose.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Only by using regular expressions.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Only by using regular expressions.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Only if the HTML is well-formed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Only if the HTML is well-formed.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How can you define a variable that is accessible within functions in a PHP script?","jawda_q_type":"single","jawda_q_explanation":"The `global` keyword is used inside a function to access a global variable from the global scope, allowing you to read and modify its value within the function.","jawda_q_answers":[{"jawda_a_text":"By passing it as an argument to the function.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"By passing it as an argument to the function.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"By declaring it as a static variable.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By declaring it as a static variable.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"By using the `$_GLOBALS` superglobal array.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By using the `$_GLOBALS` superglobal array.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"This feature is possible using the `global` keyword.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"This feature is possible using the `global` keyword.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How can you define a variable that is accessible within functions in a PHP script?","jawda_quiz_question_explanation":"The `global` keyword is used inside a function to access a global variable from the global scope, allowing you to read and modify its value within the function.","jawda_quiz_question_answers":[{"jawda_a_text":"By passing it as an argument to the function.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"By passing it as an argument to the function.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"By declaring it as a static variable.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By declaring it as a static variable.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"By using the `$_GLOBALS` superglobal array.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By using the `$_GLOBALS` superglobal array.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"This feature is possible using the `global` keyword.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"This feature is possible using the `global` keyword.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How is it possible to return a value from a function in PHP?","jawda_q_type":"single","jawda_q_explanation":"In PHP, the 'return' statement is used to send a value back from a function to the calling script. Once 'return' is executed, the function terminates, and the specified value is passed back.","jawda_q_answers":[{"jawda_a_text":"By using the 'echo' statement.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"By using the 'echo' statement.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"By assigning the value to a global variable.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By assigning the value to a global variable.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"By printing the value directly.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By printing the value directly.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"A function returns a value using the instruction 'return $value;'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"A function returns a value using the instruction 'return $value;'.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How is it possible to return a value from a function in PHP?","jawda_quiz_question_explanation":"In PHP, the 'return' statement is used to send a value back from a function to the calling script. Once 'return' is executed, the function terminates, and the specified value is passed back.","jawda_quiz_question_answers":[{"jawda_a_text":"By using the 'echo' statement.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"By using the 'echo' statement.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"By assigning the value to a global variable.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By assigning the value to a global variable.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"By printing the value directly.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By printing the value directly.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"A function returns a value using the instruction 'return $value;'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"A function returns a value using the instruction 'return $value;'.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What is the most convenient hashing method to be used to hash passwords in PHP?","jawda_q_type":"single","jawda_q_explanation":"For password hashing, it is best to use functions specifically designed for this purpose, such as `password_hash()` (which internally uses strong, adaptive algorithms like bcrypt) or `crypt()` with appropriate salts and algorithms. These are more secure than simple hashing algorithms like MD5 or SHA1.","jawda_q_answers":[{"jawda_a_text":"Using the md5() function.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Using the md5() function.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Using the sha1() function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Using the sha1() function.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Using the hash() function with a simple algorithm.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Using the hash() function with a simple algorithm.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It is preferable to use `crypt()` which natively supports several hashing algorithms or the `password_hash()` function, which is specifically designed for secure password hashing, rather than using common hashing algorithms such as md5 or sha1.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It is preferable to use `crypt()` which natively supports several hashing algorithms or the `password_hash()` function, which is specifically designed for secure password hashing, rather than using common hashing algorithms such as md5 or sha1.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What is the most convenient hashing method to be used to hash passwords in PHP?","jawda_quiz_question_explanation":"For password hashing, it is best to use functions specifically designed for this purpose, such as `password_hash()` (which internally uses strong, adaptive algorithms like bcrypt) or `crypt()` with appropriate salts and algorithms. These are more secure than simple hashing algorithms like MD5 or SHA1.","jawda_quiz_question_answers":[{"jawda_a_text":"Using the md5() function.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Using the md5() function.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Using the sha1() function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Using the sha1() function.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Using the hash() function with a simple algorithm.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Using the hash() function with a simple algorithm.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It is preferable to use `crypt()` which natively supports several hashing algorithms or the `password_hash()` function, which is specifically designed for secure password hashing, rather than using common hashing algorithms such as md5 or sha1.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It is preferable to use `crypt()` which natively supports several hashing algorithms or the `password_hash()` function, which is specifically designed for secure password hashing, rather than using common hashing algorithms such as md5 or sha1.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"Which cryptographic extension provides generation and verification of digital signatures in PHP?","jawda_q_type":"single","jawda_q_explanation":"The PHP OpenSSL extension provides a robust set of functions for cryptographic operations, including the generation and verification of digital signatures, encryption, and decryption, making it suitable for secure communication and data integrity.","jawda_q_answers":[{"jawda_a_text":"The PHP-mcrypt extension.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The PHP-mcrypt extension.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"The PHP-hash extension.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The PHP-hash extension.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The PHP-GMP extension.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The PHP-GMP extension.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The PHP-OpenSSL extension provides several cryptographic operations, including generation and verification of digital signatures.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The PHP-OpenSSL extension provides several cryptographic operations, including generation and verification of digital signatures.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"Which cryptographic extension provides generation and verification of digital signatures in PHP?","jawda_quiz_question_explanation":"The PHP OpenSSL extension provides a robust set of functions for cryptographic operations, including the generation and verification of digital signatures, encryption, and decryption, making it suitable for secure communication and data integrity.","jawda_quiz_question_answers":[{"jawda_a_text":"The PHP-mcrypt extension.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The PHP-mcrypt extension.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"The PHP-hash extension.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The PHP-hash extension.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The PHP-GMP extension.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The PHP-GMP extension.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The PHP-OpenSSL extension provides several cryptographic operations, including generation and verification of digital signatures.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The PHP-OpenSSL extension provides several cryptographic operations, including generation and verification of digital signatures.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How can you pass a variable by reference in PHP?","jawda_q_type":"single","jawda_q_explanation":"In PHP, to pass a variable by reference, you prepend an ampersand (&) to the variable name when defining the function parameter or when assigning one variable to another by reference. This means both variables point to the same memory location.","jawda_q_answers":[{"jawda_a_text":"By simply assigning one variable to another, e.g., `$var1 = $var2;`","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"By simply assigning one variable to another, e.g., `$var1 = $var2;`","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"By using the 'global' keyword.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By using the 'global' keyword.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"By passing it as an array element.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By passing it as an array element.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"To be able to pass a variable by reference, we use an ampersand in front of it, as follows: `$var1 = &$var2;` or `function myFunction(&$param){...}`.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"To be able to pass a variable by reference, we use an ampersand in front of it, as follows: `$var1 = &$var2;` or `function myFunction(&$param){...}`.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How can you pass a variable by reference in PHP?","jawda_quiz_question_explanation":"In PHP, to pass a variable by reference, you prepend an ampersand (&) to the variable name when defining the function parameter or when assigning one variable to another by reference. This means both variables point to the same memory location.","jawda_quiz_question_answers":[{"jawda_a_text":"By simply assigning one variable to another, e.g., `$var1 = $var2;`","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"By simply assigning one variable to another, e.g., `$var1 = $var2;`","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"By using the 'global' keyword.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By using the 'global' keyword.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"By passing it as an array element.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By passing it as an array element.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"To be able to pass a variable by reference, we use an ampersand in front of it, as follows: `$var1 = &$var2;` or `function myFunction(&$param){...}`.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"To be able to pass a variable by reference, we use an ampersand in front of it, as follows: `$var1 = &$var2;` or `function myFunction(&$param){...}`.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"Will a comparison of an integer 12 and a string “13” work in PHP?","jawda_q_type":"single","jawda_q_explanation":"PHP is a loosely typed language, and during comparisons between different types, it often performs type juggling or implicit type casting. When comparing a numeric string with an integer, PHP converts the string to a number for the comparison.","jawda_q_answers":[{"jawda_a_text":"No, PHP will throw a type mismatch error.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"No, PHP will throw a type mismatch error.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"No, only strict comparisons (===) work between different types.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"No, only strict comparisons (===) work between different types.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Yes, but only if the string contains a valid numeric value.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Yes, but only if the string contains a valid numeric value.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Yes, '13' and 12 can be compared in PHP since it casts the string to an integer type for the comparison.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Yes, '13' and 12 can be compared in PHP since it casts the string to an integer type for the comparison.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"Will a comparison of an integer 12 and a string “13” work in PHP?","jawda_quiz_question_explanation":"PHP is a loosely typed language, and during comparisons between different types, it often performs type juggling or implicit type casting. When comparing a numeric string with an integer, PHP converts the string to a number for the comparison.","jawda_quiz_question_answers":[{"jawda_a_text":"No, PHP will throw a type mismatch error.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"No, PHP will throw a type mismatch error.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"No, only strict comparisons (===) work between different types.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"No, only strict comparisons (===) work between different types.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Yes, but only if the string contains a valid numeric value.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Yes, but only if the string contains a valid numeric value.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Yes, '13' and 12 can be compared in PHP since it casts the string to an integer type for the comparison.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Yes, '13' and 12 can be compared in PHP since it casts the string to an integer type for the comparison.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How is it possible to cast types in PHP?","jawda_q_type":"single","jawda_q_explanation":"Type casting in PHP is achieved by specifying the desired output type in parentheses before the variable. This explicitly converts the variable's value to the new type.","jawda_q_answers":[{"jawda_a_text":"and are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"and are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The name of the output type has to be specified in parentheses before the variable which is to be cast as follows: * (int), (integer) – cast to integer * (bool), (boolean) – cast to boolean * (float), (double), (real) –…","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The name of the output type has to be specified in parentheses before the variable which is to be cast as follows: * (int), (integer) – cast to integer * (bool), (boolean) – cast to boolean * (float), (double), (real) –…","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How is it possible to cast types in PHP?","jawda_quiz_question_explanation":"Type casting in PHP is achieved by specifying the desired output type in parentheses before the variable. This explicitly converts the variable's value to the new type.","jawda_quiz_question_answers":[{"jawda_a_text":"and are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"and are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The name of the output type has to be specified in parentheses before the variable which is to be cast as follows: * (int), (integer) – cast to integer * (bool), (boolean) – cast to boolean * (float), (double), (real) –…","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The name of the output type has to be specified in parentheses before the variable which is to be cast as follows: * (int), (integer) – cast to integer * (bool), (boolean) – cast to boolean * (float), (double), (real) –…","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"When is a conditional statement ended with 'endif;' in PHP?","jawda_q_type":"single","jawda_q_explanation":"In PHP, the 'endif;' keyword is used to close an 'if' statement when the alternative syntax (colon instead of curly braces) is used for control structures.","jawda_q_answers":[{"jawda_a_text":"When the original if was followed by a colon (:) and then the code block without braces.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"When the original if was followed by a colon (:) and then the code block without braces.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"and are largely the same in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"and are largely the same in PHP.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"When is a conditional statement ended with 'endif;' in PHP?","jawda_quiz_question_explanation":"In PHP, the 'endif;' keyword is used to close an 'if' statement when the alternative syntax (colon instead of curly braces) is used for control structures.","jawda_quiz_question_answers":[{"jawda_a_text":"When the original if was followed by a colon (:) and then the code block without braces.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"When the original if was followed by a colon (:) and then the code block without braces.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"and are largely the same in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"and are largely the same in PHP.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What is the function func_num_args() used for in PHP?","jawda_q_type":"single","jawda_q_explanation":"The func_num_args() function in PHP returns the number of arguments (parameters) that were passed into the current user-defined function.","jawda_q_answers":[{"jawda_a_text":"and are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"and are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The function func_num_args() is used to give the number of parameters passed into a function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The function func_num_args() is used to give the number of parameters passed into a function.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What is the function func_num_args() used for in PHP?","jawda_quiz_question_explanation":"The func_num_args() function in PHP returns the number of arguments (parameters) that were passed into the current user-defined function.","jawda_quiz_question_answers":[{"jawda_a_text":"and are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"and are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The function func_num_args() is used to give the number of parameters passed into a function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The function func_num_args() is used to give the number of parameters passed into a function.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What does accessing a class via '::' mean in PHP?","jawda_q_type":"single","jawda_q_explanation":"The '::' operator, known as the Paamayim Nekudotayim (double colon), is used to access static members (properties or methods) of a class without needing to instantiate an object of that class.","jawda_q_answers":[{"jawda_a_text":"and are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"and are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":":: is used to access static methods and properties that do not require object initialization.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":":: is used to access static methods and properties that do not require object initialization.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What does accessing a class via '::' mean in PHP?","jawda_quiz_question_explanation":"The '::' operator, known as the Paamayim Nekudotayim (double colon), is used to access static members (properties or methods) of a class without needing to instantiate an object of that class.","jawda_quiz_question_answers":[{"jawda_a_text":"and are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"and are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":":: is used to access static methods and properties that do not require object initialization.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":":: is used to access static methods and properties that do not require object initialization.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What is the difference between __sleep() and __wakeup() magic methods in PHP?","jawda_q_type":"single","jawda_q_explanation":"The __sleep() method is called before serialization to return an array of properties to be serialized, while __wakeup() is called after unserialization to re-establish any resources or state.","jawda_q_answers":[{"jawda_a_text":"__sleep returns the array of all the variables that need to be saved, while __wakeup retrieves them.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"__sleep returns the array of all the variables that need to be saved, while __wakeup retrieves them.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"and are largely the same in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"and are largely the same in PHP.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What is the difference between __sleep() and __wakeup() magic methods in PHP?","jawda_quiz_question_explanation":"The __sleep() method is called before serialization to return an array of properties to be serialized, while __wakeup() is called after unserialization to re-establish any resources or state.","jawda_quiz_question_answers":[{"jawda_a_text":"__sleep returns the array of all the variables that need to be saved, while __wakeup retrieves them.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"__sleep returns the array of all the variables that need to be saved, while __wakeup retrieves them.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"and are largely the same in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"and are largely the same in PHP.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What is the definition of a session in PHP?","jawda_q_type":"single","jawda_q_explanation":"A session in PHP is a mechanism to store information about a user across multiple page requests, allowing for persistent data storage during a user's visit to a website.","jawda_q_answers":[{"jawda_a_text":"A session is a logical object enabling us to preserve temporary data across multiple PHP pages.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"A session is a logical object enabling us to preserve temporary data across multiple PHP pages.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Sessions and cookies are largely the same in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Sessions and cookies are largely the same in PHP.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What is the definition of a session in PHP?","jawda_quiz_question_explanation":"A session in PHP is a mechanism to store information about a user across multiple page requests, allowing for persistent data storage during a user's visit to a website.","jawda_quiz_question_answers":[{"jawda_a_text":"A session is a logical object enabling us to preserve temporary data across multiple PHP pages.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"A session is a logical object enabling us to preserve temporary data across multiple PHP pages.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Sessions and cookies are largely the same in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Sessions and cookies are largely the same in PHP.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How do you initiate a session in PHP?","jawda_q_type":"single","jawda_q_explanation":"The `session_start()` function must be called at the beginning of any PHP script that intends to use sessions. It initializes a new session or resumes an existing one.","jawda_q_answers":[{"jawda_a_text":"The use of the function session_start() lets us activate a session.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The use of the function session_start() lets us activate a session.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Sessions and cookies are largely the same in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Sessions and cookies are largely the same in PHP.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How do you initiate a session in PHP?","jawda_quiz_question_explanation":"The `session_start()` function must be called at the beginning of any PHP script that intends to use sessions. It initializes a new session or resumes an existing one.","jawda_quiz_question_answers":[{"jawda_a_text":"The use of the function session_start() lets us activate a session.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The use of the function session_start() lets us activate a session.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Sessions and cookies are largely the same in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Sessions and cookies are largely the same in PHP.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How can you propagate a session ID in PHP?","jawda_q_type":"single","jawda_q_explanation":"Session IDs are typically propagated automatically by PHP using cookies. If cookies are disabled, PHP can fall back to URL rewriting, where the session ID is appended to URLs.","jawda_q_answers":[{"jawda_a_text":"Sessions automatically end when the PHP script finishes executing but can be manually ended using the session_write_close().","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Sessions automatically end when the PHP script finishes executing but can be manually ended using the session_write_close().","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Sessions and cookies are largely the same in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Sessions and cookies are largely the same in PHP.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How can you propagate a session ID in PHP?","jawda_quiz_question_explanation":"Session IDs are typically propagated automatically by PHP using cookies. If cookies are disabled, PHP can fall back to URL rewriting, where the session ID is appended to URLs.","jawda_quiz_question_answers":[{"jawda_a_text":"Sessions automatically end when the PHP script finishes executing but can be manually ended using the session_write_close().","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Sessions automatically end when the PHP script finishes executing but can be manually ended using the session_write_close().","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Sessions and cookies are largely the same in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Sessions and cookies are largely the same in PHP.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What is the difference between session_unregister() and session_unset()?","jawda_q_type":"single","jawda_q_explanation":"`session_unregister()` (deprecated in PHP 5.3 and removed in PHP 5.4) was used to unregister a single global variable from the session. `session_unset()` frees all session variables, effectively emptying the `$_SESSION` superglobal array.","jawda_q_answers":[{"jawda_a_text":"The session_unregister() function unregisters a global variable from the current session, and the session_unset() function frees all session variables.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The session_unregister() function unregisters a global variable from the current session, and the session_unset() function frees all session variables.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Sessions and cookies are largely the same in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Sessions and cookies are largely the same in PHP.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What is the difference between session_unregister() and session_unset()?","jawda_quiz_question_explanation":"`session_unregister()` (deprecated in PHP 5.3 and removed in PHP 5.4) was used to unregister a single global variable from the session. `session_unset()` frees all session variables, effectively emptying the `$_SESSION` superglobal array.","jawda_quiz_question_answers":[{"jawda_a_text":"The session_unregister() function unregisters a global variable from the current session, and the session_unset() function frees all session variables.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The session_unregister() function unregisters a global variable from the current session, and the session_unset() function frees all session variables.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Sessions and cookies are largely the same in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Sessions and cookies are largely the same in PHP.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What is the difference between $_FILES['userfile']['name'] and $_FILES['userfile']['tmp_name']?","jawda_q_type":"single","jawda_q_explanation":"`$_FILES['userfile']['name']` holds the original filename as it was on the client's computer, while `$_FILES['userfile']['tmp_name']` stores the temporary path and filename where the uploaded file is stored on the server before it's moved to its final destination.","jawda_q_answers":[{"jawda_a_text":"$_FILES['userfile']['name'] represents the original name of the file on the client machine, $_FILES['userfile']['tmp_name'] represents the temporary filename of the file stored on the server.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"$_FILES['userfile']['name'] represents the original name of the file on the client machine, $_FILES['userfile']['tmp_name'] represents the temporary filename of the file stored on the server.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Sessions and cookies are largely the same in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Sessions and cookies are largely the same in PHP.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What is the difference between $_FILES['userfile']['name'] and $_FILES['userfile']['tmp_name']?","jawda_quiz_question_explanation":"`$_FILES['userfile']['name']` holds the original filename as it was on the client's computer, while `$_FILES['userfile']['tmp_name']` stores the temporary path and filename where the uploaded file is stored on the server before it's moved to its final destination.","jawda_quiz_question_answers":[{"jawda_a_text":"$_FILES['userfile']['name'] represents the original name of the file on the client machine, $_FILES['userfile']['tmp_name'] represents the temporary filename of the file stored on the server.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"$_FILES['userfile']['name'] represents the original name of the file on the client machine, $_FILES['userfile']['tmp_name'] represents the temporary filename of the file stored on the server.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Sessions and cookies are largely the same in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Sessions and cookies are largely the same in PHP.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output seeming to imply that the operator is behaving instead as an .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both and will be equal to the string after the above code is executed.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How can we retrieve error information when there is a problem uploading a file in PHP?","jawda_q_type":"single","jawda_q_explanation":"When a file upload fails, PHP stores an error code in the 'error' key of the $_FILES array for the specific file. This code can be used to determine the cause of the upload issue.","jawda_q_answers":[{"jawda_a_text":"$_FILES['userfile']['error'] contains the error code associated with the uploaded file.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"$_FILES['userfile']['error'] contains the error code associated with the uploaded file.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"The 'upload_errors' global variable stores file upload errors.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The 'upload_errors' global variable stores file upload errors.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"We can check the 'is_uploaded_file_error()' function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"We can check the 'is_uploaded_file_error()' function.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Errors are logged in the PHP error log only.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Errors are logged in the PHP error log only.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How can we retrieve error information when there is a problem uploading a file in PHP?","jawda_quiz_question_explanation":"When a file upload fails, PHP stores an error code in the 'error' key of the $_FILES array for the specific file. This code can be used to determine the cause of the upload issue.","jawda_quiz_question_answers":[{"jawda_a_text":"$_FILES['userfile']['error'] contains the error code associated with the uploaded file.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"$_FILES['userfile']['error'] contains the error code associated with the uploaded file.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"The 'upload_errors' global variable stores file upload errors.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The 'upload_errors' global variable stores file upload errors.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"We can check the 'is_uploaded_file_error()' function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"We can check the 'is_uploaded_file_error()' function.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Errors are logged in the PHP error log only.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Errors are logged in the PHP error log only.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How can you change the maximum size of files allowed for upload in PHP?","jawda_q_type":"single","jawda_q_explanation":"The maximum file upload size is controlled by the 'upload_max_filesize' directive in the php.ini configuration file. Modifying this value allows you to increase or decrease the allowed file size.","jawda_q_answers":[{"jawda_a_text":"By setting a limit in the HTML form's input tag.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"By setting a limit in the HTML form's input tag.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"By using the 'ini_set()' function for 'max_upload_size'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By using the 'ini_set()' function for 'max_upload_size'.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"We can change the maximum size of files to be uploaded by changing upload_max_filesize in php.ini.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"We can change the maximum size of files to be uploaded by changing upload_max_filesize in php.ini.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Through a .htaccess directive named 'max_file_upload_size'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Through a .htaccess directive named 'max_file_upload_size'.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How can you change the maximum size of files allowed for upload in PHP?","jawda_quiz_question_explanation":"The maximum file upload size is controlled by the 'upload_max_filesize' directive in the php.ini configuration file. Modifying this value allows you to increase or decrease the allowed file size.","jawda_quiz_question_answers":[{"jawda_a_text":"By setting a limit in the HTML form's input tag.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"By setting a limit in the HTML form's input tag.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"By using the 'ini_set()' function for 'max_upload_size'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By using the 'ini_set()' function for 'max_upload_size'.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"We can change the maximum size of files to be uploaded by changing upload_max_filesize in php.ini.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"We can change the maximum size of files to be uploaded by changing upload_max_filesize in php.ini.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Through a .htaccess directive named 'max_file_upload_size'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Through a .htaccess directive named 'max_file_upload_size'.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What does the scope of variables mean in PHP?","jawda_q_type":"single","jawda_q_explanation":"The scope of a variable defines the region of the program where that variable can be accessed and used. Variables can have global, local, static, or function parameters scope.","jawda_q_answers":[{"jawda_a_text":"It refers to the data type of the variable.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"It refers to the data type of the variable.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It indicates whether a variable is an array or an object.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It indicates whether a variable is an array or an object.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The scope of a variable is the context within which it is defined.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The scope of a variable is the context within which it is defined.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It determines if a variable can be modified after its initial assignment.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It determines if a variable can be modified after its initial assignment.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What does the scope of variables mean in PHP?","jawda_quiz_question_explanation":"The scope of a variable defines the region of the program where that variable can be accessed and used. Variables can have global, local, static, or function parameters scope.","jawda_quiz_question_answers":[{"jawda_a_text":"It refers to the data type of the variable.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"It refers to the data type of the variable.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It indicates whether a variable is an array or an object.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It indicates whether a variable is an array or an object.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The scope of a variable is the context within which it is defined.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The scope of a variable is the context within which it is defined.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It determines if a variable can be modified after its initial assignment.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It determines if a variable can be modified after its initial assignment.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What is the difference between the 'BITWISE AND' operator and the 'LOGICAL AND' operator in PHP?","jawda_q_type":"single","jawda_q_explanation":"The 'LOGICAL AND' operator (&& or 'and') evaluates two boolean expressions and returns true if both are true. The 'BITWISE AND' operator (&) operates on the individual bits of integer operands.","jawda_q_answers":[{"jawda_a_text":"The 'BITWISE AND' works with booleans, while 'LOGICAL AND' works with integers.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The 'BITWISE AND' works with booleans, while 'LOGICAL AND' works with integers.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"$a and $b: TRUE if both $a and $b are TRUE.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a and $b: TRUE if both $a and $b are TRUE.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"They are largely the same in PHP, just different syntax.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"They are largely the same in PHP, just different syntax.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The 'LOGICAL AND' has higher precedence than 'BITWISE AND'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The 'LOGICAL AND' has higher precedence than 'BITWISE AND'.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What is the difference between the 'BITWISE AND' operator and the 'LOGICAL AND' operator in PHP?","jawda_quiz_question_explanation":"The 'LOGICAL AND' operator (&& or 'and') evaluates two boolean expressions and returns true if both are true. The 'BITWISE AND' operator (&) operates on the individual bits of integer operands.","jawda_quiz_question_answers":[{"jawda_a_text":"The 'BITWISE AND' works with booleans, while 'LOGICAL AND' works with integers.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The 'BITWISE AND' works with booleans, while 'LOGICAL AND' works with integers.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"$a and $b: TRUE if both $a and $b are TRUE.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a and $b: TRUE if both $a and $b are TRUE.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"They are largely the same in PHP, just different syntax.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"They are largely the same in PHP, just different syntax.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The 'LOGICAL AND' has higher precedence than 'BITWISE AND'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The 'LOGICAL AND' has higher precedence than 'BITWISE AND'.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What are the two main string operators in PHP?","jawda_q_type":"single","jawda_q_explanation":"PHP provides two primary operators for string manipulation: the concatenation operator ('.') to join strings and the concatenating assignment operator ('.=') to append a string to an existing variable.","jawda_q_answers":[{"jawda_a_text":"The '+' operator for addition and the '-' operator for subtraction.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The '+' operator for addition and the '-' operator for subtraction.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"The '==' operator for comparison and the '!=' operator for inequality.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The '==' operator for comparison and the '!=' operator for inequality.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The first is the concatenation operator ('.'), which returns the concatenation of its right and left arguments. The second is the concatenating assignment operator ('.=').","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The first is the concatenation operator ('.'), which returns the concatenation of its right and left arguments. The second is the concatenating assignment operator ('.=').","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The 'and' operator for logical AND and the 'or' operator for logical OR.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The 'and' operator for logical AND and the 'or' operator for logical OR.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What are the two main string operators in PHP?","jawda_quiz_question_explanation":"PHP provides two primary operators for string manipulation: the concatenation operator ('.') to join strings and the concatenating assignment operator ('.=') to append a string to an existing variable.","jawda_quiz_question_answers":[{"jawda_a_text":"The '+' operator for addition and the '-' operator for subtraction.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The '+' operator for addition and the '-' operator for subtraction.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"The '==' operator for comparison and the '!=' operator for inequality.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The '==' operator for comparison and the '!=' operator for inequality.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The first is the concatenation operator ('.'), which returns the concatenation of its right and left arguments. The second is the concatenating assignment operator ('.=').","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The first is the concatenation operator ('.'), which returns the concatenation of its right and left arguments. The second is the concatenating assignment operator ('.=').","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The 'and' operator for logical AND and the 'or' operator for logical OR.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The 'and' operator for logical AND and the 'or' operator for logical OR.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What does the array operator '===' mean in PHP?","jawda_q_type":"single","jawda_q_explanation":"The strict equality operator '===' checks if two operands have the same value AND the same type. For arrays, this means identical key/value pairs in the same order and of the same types.","jawda_q_answers":[{"jawda_a_text":"$a === $b is TRUE if $a and $b have the same key/value pairs in the same order and of the same types.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"$a === $b is TRUE if $a and $b have the same key/value pairs in the same order and of the same types.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It checks for loose equality, meaning values are the same after type juggling.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It checks for loose equality, meaning values are the same after type juggling.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It assigns the value of $b to $a and then checks for equality.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It assigns the value of $b to $a and then checks for equality.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It compares the memory addresses of the two arrays.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It compares the memory addresses of the two arrays.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What does the array operator '===' mean in PHP?","jawda_quiz_question_explanation":"The strict equality operator '===' checks if two operands have the same value AND the same type. For arrays, this means identical key/value pairs in the same order and of the same types.","jawda_quiz_question_answers":[{"jawda_a_text":"$a === $b is TRUE if $a and $b have the same key/value pairs in the same order and of the same types.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"$a === $b is TRUE if $a and $b have the same key/value pairs in the same order and of the same types.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It checks for loose equality, meaning values are the same after type juggling.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It checks for loose equality, meaning values are the same after type juggling.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It assigns the value of $b to $a and then checks for equality.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It assigns the value of $b to $a and then checks for equality.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It compares the memory addresses of the two arrays.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It compares the memory addresses of the two arrays.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What is the difference between the operators '$a != $b' and '$a !== $b' in PHP?","jawda_q_type":"single","jawda_q_explanation":"The '!=' operator checks for inequality (loose comparison), meaning values are not equal after type juggling. The '!==' operator checks for non-identity (strict comparison), meaning values are not equal OR their types are not the same.","jawda_q_answers":[{"jawda_a_text":"'!=' means inequality (TRUE if $a is not equal to $b after type juggling) and '!==' means non-identity (TRUE if $a is not identical to $b, i.e., not equal or not of the same type).","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"'!=' means inequality (TRUE if $a is not equal to $b after type juggling) and '!==' means non-identity (TRUE if $a is not identical to $b, i.e., not equal or not of the same type).","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Both operators perform the same strict comparison.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Both operators perform the same strict comparison.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"'!=' compares only values, while '!==' compares only types.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"'!=' compares only values, while '!==' compares only types.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"'!=' is used for numbers, and '!==' is used for strings.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"'!=' is used for numbers, and '!==' is used for strings.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What is the difference between the operators '$a != $b' and '$a !== $b' in PHP?","jawda_quiz_question_explanation":"The '!=' operator checks for inequality (loose comparison), meaning values are not equal after type juggling. The '!==' operator checks for non-identity (strict comparison), meaning values are not equal OR their types are not the same.","jawda_quiz_question_answers":[{"jawda_a_text":"'!=' means inequality (TRUE if $a is not equal to $b after type juggling) and '!==' means non-identity (TRUE if $a is not identical to $b, i.e., not equal or not of the same type).","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"'!=' means inequality (TRUE if $a is not equal to $b after type juggling) and '!==' means non-identity (TRUE if $a is not identical to $b, i.e., not equal or not of the same type).","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Both operators perform the same strict comparison.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Both operators perform the same strict comparison.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"'!=' compares only values, while '!==' compares only types.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"'!=' compares only values, while '!==' compares only types.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"'!=' is used for numbers, and '!==' is used for strings.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"'!=' is used for numbers, and '!==' is used for strings.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How can we determine whether a PHP variable is an instantiated object of a certain class?","jawda_q_type":"single","jawda_q_explanation":"The `instanceof` operator is used to determine if a PHP variable is an object and if it is an instance of a particular class or a class that inherits from it.","jawda_q_answers":[{"jawda_a_text":"By using the `is_object()` function.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"By using the `is_object()` function.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"By checking its type with `gettype()`.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By checking its type with `gettype()`.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"To verify whether a PHP variable is an instantiated object of a certain class, we use the `instanceof` operator.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"To verify whether a PHP variable is an instantiated object of a certain class, we use the `instanceof` operator.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"By comparing its value to the class name using '=='.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By comparing its value to the class name using '=='.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How can we determine whether a PHP variable is an instantiated object of a certain class?","jawda_quiz_question_explanation":"The `instanceof` operator is used to determine if a PHP variable is an object and if it is an instance of a particular class or a class that inherits from it.","jawda_quiz_question_answers":[{"jawda_a_text":"By using the `is_object()` function.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"By using the `is_object()` function.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"By checking its type with `gettype()`.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By checking its type with `gettype()`.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"To verify whether a PHP variable is an instantiated object of a certain class, we use the `instanceof` operator.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"To verify whether a PHP variable is an instantiated object of a certain class, we use the `instanceof` operator.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"By comparing its value to the class name using '=='.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By comparing its value to the class name using '=='.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What is the `goto` statement useful for in PHP?","jawda_q_type":"single","jawda_q_explanation":"The `goto` statement allows jumping to another section of the program specified by a label. While it can be used for certain control flow scenarios, it is generally discouraged in modern programming practices due to potential for creating hard-to-read and maintain spaghetti code.","jawda_q_answers":[{"jawda_a_text":"The `goto` statement can be used to jump to a different part of the PHP program, specified by a label.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The `goto` statement can be used to jump to a different part of the PHP program, specified by a label.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It is primarily used for defining functions.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It is primarily used for defining functions.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It is used for including external files.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It is used for including external files.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It is a deprecated feature and has no practical use.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It is a deprecated feature and has no practical use.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What is the `goto` statement useful for in PHP?","jawda_quiz_question_explanation":"The `goto` statement allows jumping to another section of the program specified by a label. While it can be used for certain control flow scenarios, it is generally discouraged in modern programming practices due to potential for creating hard-to-read and maintain spaghetti code.","jawda_quiz_question_answers":[{"jawda_a_text":"The `goto` statement can be used to jump to a different part of the PHP program, specified by a label.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The `goto` statement can be used to jump to a different part of the PHP program, specified by a label.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It is primarily used for defining functions.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It is primarily used for defining functions.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It is used for including external files.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It is used for including external files.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It is a deprecated feature and has no practical use.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It is a deprecated feature and has no practical use.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What is the difference between `Exception::getMessage()` and `Exception::getLine()`?","jawda_q_type":"single","jawda_q_explanation":"`Exception::getMessage()` retrieves the descriptive message associated with the exception, explaining what went wrong. `Exception::getLine()` returns the line number in the file where the exception was thrown, which is crucial for debugging.","jawda_q_answers":[{"jawda_a_text":"`Exception::getMessage()` returns the exception's severity level, while `Exception::getLine()` returns the file name.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"`Exception::getMessage()` returns the exception's severity level, while `Exception::getLine()` returns the file name.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Both methods return the same information about the exception.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Both methods return the same information about the exception.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"`Exception::getMessage()` lets us get the Exception message, and `Exception::getLine()` lets us get the line number in the file where the exception occurred.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"`Exception::getMessage()` lets us get the Exception message, and `Exception::getLine()` lets us get the line number in the file where the exception occurred.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"`Exception::getMessage()` is for custom exceptions, and `Exception::getLine()` is for built-in exceptions.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"`Exception::getMessage()` is for custom exceptions, and `Exception::getLine()` is for built-in exceptions.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What is the difference between `Exception::getMessage()` and `Exception::getLine()`?","jawda_quiz_question_explanation":"`Exception::getMessage()` retrieves the descriptive message associated with the exception, explaining what went wrong. `Exception::getLine()` returns the line number in the file where the exception was thrown, which is crucial for debugging.","jawda_quiz_question_answers":[{"jawda_a_text":"`Exception::getMessage()` returns the exception's severity level, while `Exception::getLine()` returns the file name.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"`Exception::getMessage()` returns the exception's severity level, while `Exception::getLine()` returns the file name.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Both methods return the same information about the exception.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Both methods return the same information about the exception.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"`Exception::getMessage()` lets us get the Exception message, and `Exception::getLine()` lets us get the line number in the file where the exception occurred.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"`Exception::getMessage()` lets us get the Exception message, and `Exception::getLine()` lets us get the line number in the file where the exception occurred.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"`Exception::getMessage()` is for custom exceptions, and `Exception::getLine()` is for built-in exceptions.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"`Exception::getMessage()` is for custom exceptions, and `Exception::getLine()` is for built-in exceptions.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What does the expression Exception::__toString() mean?","jawda_q_type":"single","jawda_q_explanation":"The Exception::__toString() method provides a string representation of an exception, which is useful for logging or displaying error information.","jawda_q_answers":[{"jawda_a_text":"It indicates that 'and' and '&&' are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"It indicates that 'and' and '&&' are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It refers to the behavior of the 'and' operator in an expression like '$x = true and false;'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It refers to the behavior of the 'and' operator in an expression like '$x = true and false;'.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Exception::__toString() gives the string representation of the exception.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Exception::__toString() gives the string representation of the exception.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It describes the outcome of a reference assignment like '$a = '1'; $b = &$a; $b = \"2$b\";'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It describes the outcome of a reference assignment like '$a = '1'; $b = &$a; $b = \"2$b\";'.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What does the expression Exception::__toString() mean?","jawda_quiz_question_explanation":"The Exception::__toString() method provides a string representation of an exception, which is useful for logging or displaying error information.","jawda_quiz_question_answers":[{"jawda_a_text":"It indicates that 'and' and '&&' are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"It indicates that 'and' and '&&' are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It refers to the behavior of the 'and' operator in an expression like '$x = true and false;'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It refers to the behavior of the 'and' operator in an expression like '$x = true and false;'.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Exception::__toString() gives the string representation of the exception.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Exception::__toString() gives the string representation of the exception.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It describes the outcome of a reference assignment like '$a = '1'; $b = &$a; $b = \"2$b\";'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It describes the outcome of a reference assignment like '$a = '1'; $b = &$a; $b = \"2$b\";'.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How is it possible to parse a configuration file in PHP?","jawda_q_type":"single","jawda_q_explanation":"The parse_ini_file() function is specifically designed to parse INI-style configuration files, returning their settings as an associative array.","jawda_q_answers":[{"jawda_a_text":"By using operators that are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"By using operators that are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"The function parse_ini_file() enables us to load the INI file specified in the filename and returns the settings in an associative array.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The function parse_ini_file() enables us to load the INI file specified in the filename and returns the settings in an associative array.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"By understanding how the 'and' operator behaves in an expression like '$x = true and false;'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By understanding how the 'and' operator behaves in an expression like '$x = true and false;'.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"By analyzing the result of a reference assignment like '$a = '1'; $b = &$a; $b = \"2$b\";'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By analyzing the result of a reference assignment like '$a = '1'; $b = &$a; $b = \"2$b\";'.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How is it possible to parse a configuration file in PHP?","jawda_quiz_question_explanation":"The parse_ini_file() function is specifically designed to parse INI-style configuration files, returning their settings as an associative array.","jawda_quiz_question_answers":[{"jawda_a_text":"By using operators that are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"By using operators that are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"The function parse_ini_file() enables us to load the INI file specified in the filename and returns the settings in an associative array.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The function parse_ini_file() enables us to load the INI file specified in the filename and returns the settings in an associative array.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"By understanding how the 'and' operator behaves in an expression like '$x = true and false;'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By understanding how the 'and' operator behaves in an expression like '$x = true and false;'.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"By analyzing the result of a reference assignment like '$a = '1'; $b = &$a; $b = \"2$b\";'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By analyzing the result of a reference assignment like '$a = '1'; $b = &$a; $b = \"2$b\";'.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How can we determine whether a variable is set in PHP?","jawda_q_type":"single","jawda_q_explanation":"The isset() function is used to check if a variable has been declared and is not NULL, returning true if it is set and false otherwise.","jawda_q_answers":[{"jawda_a_text":"By comparing operators that are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"By comparing operators that are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"The boolean function isset() determines if a variable is set and is not NULL.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The boolean function isset() determines if a variable is set and is not NULL.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"By observing the output of '$x = true and false; var_dump($x);'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By observing the output of '$x = true and false; var_dump($x);'.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"By examining the values of '$a' and '$b' after a reference assignment.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By examining the values of '$a' and '$b' after a reference assignment.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How can we determine whether a variable is set in PHP?","jawda_quiz_question_explanation":"The isset() function is used to check if a variable has been declared and is not NULL, returning true if it is set and false otherwise.","jawda_quiz_question_answers":[{"jawda_a_text":"By comparing operators that are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"By comparing operators that are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"The boolean function isset() determines if a variable is set and is not NULL.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The boolean function isset() determines if a variable is set and is not NULL.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"By observing the output of '$x = true and false; var_dump($x);'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By observing the output of '$x = true and false; var_dump($x);'.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"By examining the values of '$a' and '$b' after a reference assignment.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By examining the values of '$a' and '$b' after a reference assignment.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What is the difference between the functions strstr() and stristr() in PHP?","jawda_q_type":"single","jawda_q_explanation":"Both strstr() and stristr() find the first occurrence of a substring, but stristr() performs a case-insensitive search, while strstr() is case-sensitive.","jawda_q_answers":[{"jawda_a_text":"The string function strstr(string allString, string occ) returns part of allString from the first occurrence of occ to the end of allString. stristr() performs a case-insensitive search.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The string function strstr(string allString, string occ) returns part of allString from the first occurrence of occ to the end of allString. stristr() performs a case-insensitive search.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"They are largely the same in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"They are largely the same in PHP.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The difference relates to the behavior of the 'and' operator in an expression like '$x = true and false;'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The difference relates to the behavior of the 'and' operator in an expression like '$x = true and false;'.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The difference is illustrated by the outcome of a reference assignment like '$a = '1'; $b = &$a; $b = \"2$b\";'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The difference is illustrated by the outcome of a reference assignment like '$a = '1'; $b = &$a; $b = \"2$b\";'.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What is the difference between the functions strstr() and stristr() in PHP?","jawda_quiz_question_explanation":"Both strstr() and stristr() find the first occurrence of a substring, but stristr() performs a case-insensitive search, while strstr() is case-sensitive.","jawda_quiz_question_answers":[{"jawda_a_text":"The string function strstr(string allString, string occ) returns part of allString from the first occurrence of occ to the end of allString. stristr() performs a case-insensitive search.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The string function strstr(string allString, string occ) returns part of allString from the first occurrence of occ to the end of allString. stristr() performs a case-insensitive search.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"They are largely the same in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"They are largely the same in PHP.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The difference relates to the behavior of the 'and' operator in an expression like '$x = true and false;'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The difference relates to the behavior of the 'and' operator in an expression like '$x = true and false;'.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The difference is illustrated by the outcome of a reference assignment like '$a = '1'; $b = &$a; $b = \"2$b\";'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The difference is illustrated by the outcome of a reference assignment like '$a = '1'; $b = &$a; $b = \"2$b\";'.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"Is it possible to submit a form with a dedicated button using JavaScript?","jawda_q_type":"single","jawda_q_explanation":"Yes, it is possible to submit a form using a dedicated button by calling the form's submit() method via JavaScript, typically triggered by an onClick event.","jawda_q_answers":[{"jawda_a_text":"It depends on whether 'and' and '&&' are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"It depends on whether 'and' and '&&' are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Yes, by using an input button with an onClick event that calls 'document.form.submit()'. For example: .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Yes, by using an input button with an onClick event that calls 'document.form.submit()'. For example: .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Only if the 'and' operator behaves as an assignment operator in an expression like '$x = true and false;'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Only if the 'and' operator behaves as an assignment operator in an expression like '$x = true and false;'.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It is only possible if both '$a' and '$b' are equal to the string '21' after a reference assignment.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It is only possible if both '$a' and '$b' are equal to the string '21' after a reference assignment.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"Is it possible to submit a form with a dedicated button using JavaScript?","jawda_quiz_question_explanation":"Yes, it is possible to submit a form using a dedicated button by calling the form's submit() method via JavaScript, typically triggered by an onClick event.","jawda_quiz_question_answers":[{"jawda_a_text":"It depends on whether 'and' and '&&' are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"It depends on whether 'and' and '&&' are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Yes, by using an input button with an onClick event that calls 'document.form.submit()'. For example: .","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Yes, by using an input button with an onClick event that calls 'document.form.submit()'. For example: .","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Only if the 'and' operator behaves as an assignment operator in an expression like '$x = true and false;'.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Only if the 'and' operator behaves as an assignment operator in an expression like '$x = true and false;'.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It is only possible if both '$a' and '$b' are equal to the string '21' after a reference assignment.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It is only possible if both '$a' and '$b' are equal to the string '21' after a reference assignment.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"Is it possible to protect special characters in a query string?","jawda_q_type":"single","jawda_q_explanation":"The urlencode() function is specifically designed to convert special characters into URL-encoded entities, making them safe to include in a query string without breaking the URL structure or causing unexpected behavior.","jawda_q_answers":[{"jawda_a_text":"No, special characters cannot be protected in a query string.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"No, special characters cannot be protected in a query string.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Yes, we use the urlencode() function to protect special characters.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Yes, we use the urlencode() function to protect special characters.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Only some special characters can be protected using a custom function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Only some special characters can be protected using a custom function.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Special characters are automatically protected by the browser.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Special characters are automatically protected by the browser.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"Is it possible to protect special characters in a query string?","jawda_quiz_question_explanation":"The urlencode() function is specifically designed to convert special characters into URL-encoded entities, making them safe to include in a query string without breaking the URL structure or causing unexpected behavior.","jawda_quiz_question_answers":[{"jawda_a_text":"No, special characters cannot be protected in a query string.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"No, special characters cannot be protected in a query string.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Yes, we use the urlencode() function to protect special characters.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Yes, we use the urlencode() function to protect special characters.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Only some special characters can be protected using a custom function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Only some special characters can be protected using a custom function.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Special characters are automatically protected by the browser.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Special characters are automatically protected by the browser.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What are the three classes of errors that can occur in PHP?","jawda_q_type":"single","jawda_q_explanation":"PHP categorizes errors into three main classes: notices for non-critical issues, warnings for serious but not fatal problems, and fatal errors which halt script execution.","jawda_q_answers":[{"jawda_a_text":"Syntax errors, runtime errors, and logical errors.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Syntax errors, runtime errors, and logical errors.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"The three basic classes of errors are notices (non-critical), warnings (serious errors), and fatal errors (critical errors).","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The three basic classes of errors are notices (non-critical), warnings (serious errors), and fatal errors (critical errors).","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Compile-time errors, link-time errors, and execution errors.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Compile-time errors, link-time errors, and execution errors.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Minor errors, major errors, and catastrophic errors.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Minor errors, major errors, and catastrophic errors.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What are the three classes of errors that can occur in PHP?","jawda_quiz_question_explanation":"PHP categorizes errors into three main classes: notices for non-critical issues, warnings for serious but not fatal problems, and fatal errors which halt script execution.","jawda_quiz_question_answers":[{"jawda_a_text":"Syntax errors, runtime errors, and logical errors.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Syntax errors, runtime errors, and logical errors.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"The three basic classes of errors are notices (non-critical), warnings (serious errors), and fatal errors (critical errors).","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The three basic classes of errors are notices (non-critical), warnings (serious errors), and fatal errors (critical errors).","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Compile-time errors, link-time errors, and execution errors.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Compile-time errors, link-time errors, and execution errors.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Minor errors, major errors, and catastrophic errors.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Minor errors, major errors, and catastrophic errors.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What is the difference between characters \u000034 and x34 in PHP string literals?","jawda_q_type":"single","jawda_q_explanation":"In PHP, \u000034 represents an octal escape sequence, meaning the character is defined by its octal value 34. Conversely, x34 represents a hexadecimal escape sequence, where the character is defined by its hexadecimal value 34.","jawda_q_answers":[{"jawda_a_text":"\u000034 is a decimal representation and x34 is a hexadecimal representation.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"\u000034 is a decimal representation and x34 is a hexadecimal representation.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"\u000034 is octal 34 and x34 is hex 34.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"\u000034 is octal 34 and x34 is hex 34.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"They both represent the same character, just in different notations.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"They both represent the same character, just in different notations.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"\u000034 is a control character and x34 is a printable character.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"\u000034 is a control character and x34 is a printable character.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What is the difference between characters \u000034 and x34 in PHP string literals?","jawda_quiz_question_explanation":"In PHP, \u000034 represents an octal escape sequence, meaning the character is defined by its octal value 34. Conversely, x34 represents a hexadecimal escape sequence, where the character is defined by its hexadecimal value 34.","jawda_quiz_question_answers":[{"jawda_a_text":"\u000034 is a decimal representation and x34 is a hexadecimal representation.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"\u000034 is a decimal representation and x34 is a hexadecimal representation.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"\u000034 is octal 34 and x34 is hex 34.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"\u000034 is octal 34 and x34 is hex 34.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"They both represent the same character, just in different notations.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"They both represent the same character, just in different notations.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"\u000034 is a control character and x34 is a printable character.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"\u000034 is a control character and x34 is a printable character.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What is the default session time in PHP?","jawda_q_type":"single","jawda_q_explanation":"By default, PHP sessions are configured to last until the user closes their browser. This behavior is controlled by the 'session.cookie_lifetime' setting, which is typically set to 0, meaning the session cookie expires when the browser is closed.","jawda_q_answers":[{"jawda_a_text":"The default session time in PHP is 30 minutes.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The default session time in PHP is 30 minutes.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"The default session time in PHP is until the closing of the browser.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The default session time in PHP is until the closing of the browser.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The default session time in PHP is 24 hours.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The default session time in PHP is 24 hours.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"There is no default session time; it must always be explicitly set.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"There is no default session time; it must always be explicitly set.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What is the default session time in PHP?","jawda_quiz_question_explanation":"By default, PHP sessions are configured to last until the user closes their browser. This behavior is controlled by the 'session.cookie_lifetime' setting, which is typically set to 0, meaning the session cookie expires when the browser is closed.","jawda_quiz_question_answers":[{"jawda_a_text":"The default session time in PHP is 30 minutes.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The default session time in PHP is 30 minutes.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"The default session time in PHP is until the closing of the browser.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The default session time in PHP is until the closing of the browser.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The default session time in PHP is 24 hours.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The default session time in PHP is 24 hours.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"There is no default session time; it must always be explicitly set.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"There is no default session time; it must always be explicitly set.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"Is it possible to use COM components in PHP?","jawda_q_type":"single","jawda_q_explanation":"PHP provides an extension that allows integration with Component Object Model (COM) components, enabling PHP scripts to interact with and utilize functionalities from Windows-based applications and services.","jawda_q_answers":[{"jawda_a_text":"No, PHP does not support COM components.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"No, PHP does not support COM components.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Yes, it’s possible to integrate (Distributed) Component Object Model components ((D)COM) in PHP scripts, which is provided as a framework.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Yes, it’s possible to integrate (Distributed) Component Object Model components ((D)COM) in PHP scripts, which is provided as a framework.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Only on Linux servers, not on Windows servers.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Only on Linux servers, not on Windows servers.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Only with specific third-party libraries, not natively.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Only with specific third-party libraries, not natively.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"Is it possible to use COM components in PHP?","jawda_quiz_question_explanation":"PHP provides an extension that allows integration with Component Object Model (COM) components, enabling PHP scripts to interact with and utilize functionalities from Windows-based applications and services.","jawda_quiz_question_answers":[{"jawda_a_text":"No, PHP does not support COM components.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"No, PHP does not support COM components.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Yes, it’s possible to integrate (Distributed) Component Object Model components ((D)COM) in PHP scripts, which is provided as a framework.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Yes, it’s possible to integrate (Distributed) Component Object Model components ((D)COM) in PHP scripts, which is provided as a framework.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Only on Linux servers, not on Windows servers.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Only on Linux servers, not on Windows servers.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Only with specific third-party libraries, not natively.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Only with specific third-party libraries, not natively.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"Is it possible to share a single instance of Memcache between multiple PHP projects?","jawda_q_type":"single","jawda_q_explanation":"Yes, it is possible to share a single instance of Memcache between multiple PHP projects by configuring them to connect to the same Memcache server.","jawda_q_answers":[{"jawda_a_text":"Yes, it is possible to share a single instance of Memcache between multiple projects.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Yes, it is possible to share a single instance of Memcache between multiple projects.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"No, each PHP project requires its own dedicated Memcache instance.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"No, each PHP project requires its own dedicated Memcache instance.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It depends on the PHP version, but generally no.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It depends on the PHP version, but generally no.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Only if the projects are running on the same server.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Only if the projects are running on the same server.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"Is it possible to share a single instance of Memcache between multiple PHP projects?","jawda_quiz_question_explanation":"Yes, it is possible to share a single instance of Memcache between multiple PHP projects by configuring them to connect to the same Memcache server.","jawda_quiz_question_answers":[{"jawda_a_text":"Yes, it is possible to share a single instance of Memcache between multiple projects.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Yes, it is possible to share a single instance of Memcache between multiple projects.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"No, each PHP project requires its own dedicated Memcache instance.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"No, each PHP project requires its own dedicated Memcache instance.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It depends on the PHP version, but generally no.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It depends on the PHP version, but generally no.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Only if the projects are running on the same server.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Only if the projects are running on the same server.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How can you update Memcached when changes are made in PHP?","jawda_q_type":"single","jawda_q_explanation":"When PHP data changes, Memcached can be updated by proactively clearing the cache for affected keys or by resetting the cache entirely, ensuring that subsequent requests fetch the latest data.","jawda_q_answers":[{"jawda_a_text":"Memcached automatically detects changes in PHP and updates itself.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Memcached automatically detects changes in PHP and updates itself.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"When PHP changes, you can update Memcached by clearing the cache proactively (deleting specific keys) or by resetting the entire cache.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"When PHP changes, you can update Memcached by clearing the cache proactively (deleting specific keys) or by resetting the entire cache.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"You need to restart the Memcached server every time PHP changes.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"You need to restart the Memcached server every time PHP changes.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Memcached is only updated when the PHP application is redeployed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Memcached is only updated when the PHP application is redeployed.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How can you update Memcached when changes are made in PHP?","jawda_quiz_question_explanation":"When PHP data changes, Memcached can be updated by proactively clearing the cache for affected keys or by resetting the cache entirely, ensuring that subsequent requests fetch the latest data.","jawda_quiz_question_answers":[{"jawda_a_text":"Memcached automatically detects changes in PHP and updates itself.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Memcached automatically detects changes in PHP and updates itself.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"When PHP changes, you can update Memcached by clearing the cache proactively (deleting specific keys) or by resetting the entire cache.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"When PHP changes, you can update Memcached by clearing the cache proactively (deleting specific keys) or by resetting the entire cache.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"You need to restart the Memcached server every time PHP changes.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"You need to restart the Memcached server every time PHP changes.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Memcached is only updated when the PHP application is redeployed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Memcached is only updated when the PHP application is redeployed.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What are Superglobals in PHP?","jawda_q_type":"single","jawda_q_explanation":"Superglobals are built-in variables in PHP that are always accessible from any scope within a script, making them convenient for accessing information like server variables, request data, and session data.","jawda_q_answers":[{"jawda_a_text":"Superglobals are special PHP variables that are always accessible, regardless of scope.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Superglobals are special PHP variables that are always accessible, regardless of scope.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Superglobals are user-defined global variables.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Superglobals are user-defined global variables.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Superglobals are variables used only for database connections.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Superglobals are variables used only for database connections.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Superglobals are functions that return global values.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Superglobals are functions that return global values.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What are Superglobals in PHP?","jawda_quiz_question_explanation":"Superglobals are built-in variables in PHP that are always accessible from any scope within a script, making them convenient for accessing information like server variables, request data, and session data.","jawda_quiz_question_answers":[{"jawda_a_text":"Superglobals are special PHP variables that are always accessible, regardless of scope.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Superglobals are special PHP variables that are always accessible, regardless of scope.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Superglobals are user-defined global variables.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Superglobals are user-defined global variables.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Superglobals are variables used only for database connections.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Superglobals are variables used only for database connections.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Superglobals are functions that return global values.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Superglobals are functions that return global values.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What is the use of session_start() and session_destroy() functions in PHP?","jawda_q_type":"single","jawda_q_explanation":"The `session_start()` function initializes a session or resumes an existing one, allowing session variables to be used, while `session_destroy()` completely removes all session data stored on the server.","jawda_q_answers":[{"jawda_a_text":"session_start() creates a new user, and session_destroy() deletes a user.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"session_start() creates a new user, and session_destroy() deletes a user.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"session_start() begins a new session or resumes an existing one, and session_destroy() destroys all data registered to a session.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"session_start() begins a new session or resumes an existing one, and session_destroy() destroys all data registered to a session.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"session_start() is for database connections, and session_destroy() closes them.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"session_start() is for database connections, and session_destroy() closes them.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"session_start() loads a page, and session_destroy() unloads it.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"session_start() loads a page, and session_destroy() unloads it.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What is the use of session_start() and session_destroy() functions in PHP?","jawda_quiz_question_explanation":"The `session_start()` function initializes a session or resumes an existing one, allowing session variables to be used, while `session_destroy()` completely removes all session data stored on the server.","jawda_quiz_question_answers":[{"jawda_a_text":"session_start() creates a new user, and session_destroy() deletes a user.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"session_start() creates a new user, and session_destroy() deletes a user.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"session_start() begins a new session or resumes an existing one, and session_destroy() destroys all data registered to a session.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"session_start() begins a new session or resumes an existing one, and session_destroy() destroys all data registered to a session.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"session_start() is for database connections, and session_destroy() closes them.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"session_start() is for database connections, and session_destroy() closes them.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"session_start() loads a page, and session_destroy() unloads it.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"session_start() loads a page, and session_destroy() unloads it.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How do you connect to a URL in PHP?","jawda_q_type":"single","jawda_q_explanation":"In PHP, you can connect to a URL and retrieve its content using functions like `file_get_contents()` for simple GET requests or cURL for more complex interactions like POST requests, headers, and authentication.","jawda_q_answers":[{"jawda_a_text":"By using the `connect_url()` function.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"By using the `connect_url()` function.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"You can connect to a URL using functions like `file_get_contents()` or the cURL library.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"You can connect to a URL using functions like `file_get_contents()` or the cURL library.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"PHP automatically connects to any URL mentioned in the script.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"PHP automatically connects to any URL mentioned in the script.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Only through external JavaScript libraries.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Only through external JavaScript libraries.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How do you connect to a URL in PHP?","jawda_quiz_question_explanation":"In PHP, you can connect to a URL and retrieve its content using functions like `file_get_contents()` for simple GET requests or cURL for more complex interactions like POST requests, headers, and authentication.","jawda_quiz_question_answers":[{"jawda_a_text":"By using the `connect_url()` function.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"By using the `connect_url()` function.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"You can connect to a URL using functions like `file_get_contents()` or the cURL library.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"You can connect to a URL using functions like `file_get_contents()` or the cURL library.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"PHP automatically connects to any URL mentioned in the script.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"PHP automatically connects to any URL mentioned in the script.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Only through external JavaScript libraries.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Only through external JavaScript libraries.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How do you terminate the execution of a script in PHP?","jawda_q_type":"single","jawda_q_explanation":"The `die()` and `exit()` functions are used to terminate the execution of a PHP script. They are largely identical in functionality.","jawda_q_answers":[{"jawda_a_text":"Using the `die()` or `exit()` functions.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Using the `die()` or `exit()` functions.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"By closing the PHP tags `?>`.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By closing the PHP tags `?>`.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"With a `return` statement outside of a function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"With a `return` statement outside of a function.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"By calling `end_script()`.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By calling `end_script()`.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How do you terminate the execution of a script in PHP?","jawda_quiz_question_explanation":"The `die()` and `exit()` functions are used to terminate the execution of a PHP script. They are largely identical in functionality.","jawda_quiz_question_answers":[{"jawda_a_text":"Using the `die()` or `exit()` functions.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Using the `die()` or `exit()` functions.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"By closing the PHP tags `?>`.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By closing the PHP tags `?>`.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"With a `return` statement outside of a function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"With a `return` statement outside of a function.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"By calling `end_script()`.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"By calling `end_script()`.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"Is PHP a case-sensitive language?","jawda_q_type":"single","jawda_q_explanation":"PHP is partially case-sensitive. Variable names are case-sensitive, but function names and most language constructs (like `if`, `else`, `while`, `echo`, `print`) are case-insensitive.","jawda_q_answers":[{"jawda_a_text":"Yes, PHP is entirely case-sensitive.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Yes, PHP is entirely case-sensitive.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"No, PHP is entirely case-insensitive.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"No, PHP is entirely case-insensitive.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"PHP can be considered a partially case-sensitive language.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"PHP can be considered a partially case-sensitive language.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Only function names are case-sensitive.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Only function names are case-sensitive.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"Is PHP a case-sensitive language?","jawda_quiz_question_explanation":"PHP is partially case-sensitive. Variable names are case-sensitive, but function names and most language constructs (like `if`, `else`, `while`, `echo`, `print`) are case-insensitive.","jawda_quiz_question_answers":[{"jawda_a_text":"Yes, PHP is entirely case-sensitive.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Yes, PHP is entirely case-sensitive.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"No, PHP is entirely case-insensitive.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"No, PHP is entirely case-insensitive.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"PHP can be considered a partially case-sensitive language.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"PHP can be considered a partially case-sensitive language.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Only function names are case-sensitive.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Only function names are case-sensitive.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What are the different types of variables present in PHP?","jawda_q_type":"single","jawda_q_explanation":"PHP has 8 primary data types used to construct variables: four scalar types (boolean, integer, float/double, string), two compound types (array, object), and two special types (resource, NULL).","jawda_q_answers":[{"jawda_a_text":"Strings, Numbers, Booleans, and Arrays.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Strings, Numbers, Booleans, and Arrays.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"There are 8 primary data types in PHP which are used to construct the variables.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"There are 8 primary data types in PHP which are used to construct the variables.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Local, Global, and Static variables.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Local, Global, and Static variables.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Integers, Floats, and Objects.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Integers, Floats, and Objects.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What are the different types of variables present in PHP?","jawda_quiz_question_explanation":"PHP has 8 primary data types used to construct variables: four scalar types (boolean, integer, float/double, string), two compound types (array, object), and two special types (resource, NULL).","jawda_quiz_question_answers":[{"jawda_a_text":"Strings, Numbers, Booleans, and Arrays.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Strings, Numbers, Booleans, and Arrays.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"There are 8 primary data types in PHP which are used to construct the variables.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"There are 8 primary data types in PHP which are used to construct the variables.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Local, Global, and Static variables.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Local, Global, and Static variables.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Integers, Floats, and Objects.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Integers, Floats, and Objects.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What are the rules for naming a PHP variable?","jawda_q_type":"single","jawda_q_explanation":"PHP variable names must start with a dollar sign ($) followed by a letter or an underscore, and can then contain letters, numbers, or underscores. They are also case-sensitive.","jawda_q_answers":[{"jawda_a_text":"A variable must start with a dollar symbol, followed by the variable name, which can contain letters, numbers, and underscores.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"A variable must start with a dollar symbol, followed by the variable name, which can contain letters, numbers, and underscores.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Variable names can start with a number, but must be preceded by a dollar sign.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Variable names can start with a number, but must be preceded by a dollar sign.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Variable names are case-insensitive.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Variable names are case-insensitive.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Special characters like hyphens (-) are allowed in variable names.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Special characters like hyphens (-) are allowed in variable names.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What are the rules for naming a PHP variable?","jawda_quiz_question_explanation":"PHP variable names must start with a dollar sign ($) followed by a letter or an underscore, and can then contain letters, numbers, or underscores. They are also case-sensitive.","jawda_quiz_question_answers":[{"jawda_a_text":"A variable must start with a dollar symbol, followed by the variable name, which can contain letters, numbers, and underscores.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"A variable must start with a dollar symbol, followed by the variable name, which can contain letters, numbers, and underscores.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Variable names can start with a number, but must be preceded by a dollar sign.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Variable names can start with a number, but must be preceded by a dollar sign.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Variable names are case-insensitive.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Variable names are case-insensitive.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Special characters like hyphens (-) are allowed in variable names.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Special characters like hyphens (-) are allowed in variable names.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What is the difference between “echo” and “print” in PHP?","jawda_q_type":"single","jawda_q_explanation":"The main differences are that `echo` can output multiple strings, has no return value, and is slightly faster, while `print` can only output one string, has a return value of 1, and is marginally slower.","jawda_q_answers":[{"jawda_a_text":"The main difference between echo and print in PHP are given below: echo can output one or more strings, while print can only output one string.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The main difference between echo and print in PHP are given below: echo can output one or more strings, while print can only output one string.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"`print` is a language construct, while `echo` is a function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"`print` is a language construct, while `echo` is a function.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"`echo` returns a boolean value, while `print` returns an integer.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"`echo` returns a boolean value, while `print` returns an integer.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"There is no functional difference; they are interchangeable.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"There is no functional difference; they are interchangeable.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What is the difference between “echo” and “print” in PHP?","jawda_quiz_question_explanation":"The main differences are that `echo` can output multiple strings, has no return value, and is slightly faster, while `print` can only output one string, has a return value of 1, and is marginally slower.","jawda_quiz_question_answers":[{"jawda_a_text":"The main difference between echo and print in PHP are given below: echo can output one or more strings, while print can only output one string.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The main difference between echo and print in PHP are given below: echo can output one or more strings, while print can only output one string.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"`print` is a language construct, while `echo` is a function.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"`print` is a language construct, while `echo` is a function.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"`echo` returns a boolean value, while `print` returns an integer.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"`echo` returns a boolean value, while `print` returns an integer.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"There is no functional difference; they are interchangeable.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"There is no functional difference; they are interchangeable.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What is the meaning of a final method and a final class in PHP?","jawda_q_type":"single","jawda_q_explanation":"In PHP, the 'final' keyword prevents methods from being overridden by subclasses and prevents classes from being inherited, ensuring their implementation remains unchanged.","jawda_q_answers":[{"jawda_a_text":"The final keyword in a method declaration indicates that the method cannot be overridden by subclasses.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The final keyword in a method declaration indicates that the method cannot be overridden by subclasses.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"A final class can be inherited, but its methods cannot be overridden.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"A final class can be inherited, but its methods cannot be overridden.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The final keyword is used for declaring constants in a class.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The final keyword is used for declaring constants in a class.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Final methods and classes are largely the same as abstract methods and classes in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Final methods and classes are largely the same as abstract methods and classes in PHP.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What is the meaning of a final method and a final class in PHP?","jawda_quiz_question_explanation":"In PHP, the 'final' keyword prevents methods from being overridden by subclasses and prevents classes from being inherited, ensuring their implementation remains unchanged.","jawda_quiz_question_answers":[{"jawda_a_text":"The final keyword in a method declaration indicates that the method cannot be overridden by subclasses.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The final keyword in a method declaration indicates that the method cannot be overridden by subclasses.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"A final class can be inherited, but its methods cannot be overridden.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"A final class can be inherited, but its methods cannot be overridden.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The final keyword is used for declaring constants in a class.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The final keyword is used for declaring constants in a class.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Final methods and classes are largely the same as abstract methods and classes in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Final methods and classes are largely the same as abstract methods and classes in PHP.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What does 'escaping to PHP' mean?","jawda_q_type":"single","jawda_q_explanation":"Escaping to PHP refers to the process of embedding PHP code within HTML or other markup by using special tags (like ) that tell the parsing engine to interpret the enclosed content as PHP.","jawda_q_answers":[{"jawda_a_text":"The PHP parsing engine needs a way to differentiate PHP code from other page elements, typically using tags like .","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The PHP parsing engine needs a way to differentiate PHP code from other page elements, typically using tags like .","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It refers to the process of sanitizing user input to prevent security vulnerabilities.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It refers to the process of sanitizing user input to prevent security vulnerabilities.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It means redirecting a user from a PHP page to an external website.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It means redirecting a user from a PHP page to an external website.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It describes the act of terminating a PHP script prematurely.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It describes the act of terminating a PHP script prematurely.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What does 'escaping to PHP' mean?","jawda_quiz_question_explanation":"Escaping to PHP refers to the process of embedding PHP code within HTML or other markup by using special tags (like ) that tell the parsing engine to interpret the enclosed content as PHP.","jawda_quiz_question_answers":[{"jawda_a_text":"The PHP parsing engine needs a way to differentiate PHP code from other page elements, typically using tags like .","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The PHP parsing engine needs a way to differentiate PHP code from other page elements, typically using tags like .","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It refers to the process of sanitizing user input to prevent security vulnerabilities.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It refers to the process of sanitizing user input to prevent security vulnerabilities.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It means redirecting a user from a PHP page to an external website.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It means redirecting a user from a PHP page to an external website.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It describes the act of terminating a PHP script prematurely.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It describes the act of terminating a PHP script prematurely.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What is the most recommended method for hashing passwords in PHP?","jawda_q_type":"single","jawda_q_explanation":"The `password_hash()` function is the recommended method for hashing passwords in PHP because it uses strong, modern hashing algorithms like bcrypt and handles salting automatically, making it more secure than older functions like `crypt()` or `md5()`.","jawda_q_answers":[{"jawda_a_text":"The `md5()` function is widely used for its speed and simplicity.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The `md5()` function is widely used for its speed and simplicity.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"The `password_hash()` function is the most recommended for its security features, including automatic salting and adaptive hashing algorithms.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The `password_hash()` function is the most recommended for its security features, including automatic salting and adaptive hashing algorithms.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The `crypt()` function is used for this functionality as it provides a large number of hashing algorithms that can be used.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The `crypt()` function is used for this functionality as it provides a large number of hashing algorithms that can be used.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The `sha1()` function offers better security than `md5()` and is preferred.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The `sha1()` function offers better security than `md5()` and is preferred.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What is the most recommended method for hashing passwords in PHP?","jawda_quiz_question_explanation":"The `password_hash()` function is the recommended method for hashing passwords in PHP because it uses strong, modern hashing algorithms like bcrypt and handles salting automatically, making it more secure than older functions like `crypt()` or `md5()`.","jawda_quiz_question_answers":[{"jawda_a_text":"The `md5()` function is widely used for its speed and simplicity.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The `md5()` function is widely used for its speed and simplicity.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"The `password_hash()` function is the most recommended for its security features, including automatic salting and adaptive hashing algorithms.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The `password_hash()` function is the most recommended for its security features, including automatic salting and adaptive hashing algorithms.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The `crypt()` function is used for this functionality as it provides a large number of hashing algorithms that can be used.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The `crypt()` function is used for this functionality as it provides a large number of hashing algorithms that can be used.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The `sha1()` function offers better security than `md5()` and is preferred.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The `sha1()` function offers better security than `md5()` and is preferred.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How does the 'foreach' loop work in PHP?","jawda_q_type":"single","jawda_q_explanation":"The `foreach` loop in PHP is specifically designed to iterate over arrays and objects, providing a simple way to access each element's value (and optionally its key) without needing to manage an index counter.","jawda_q_answers":[{"jawda_a_text":"The `foreach` statement is a looping construct used in PHP to iterate over elements of an array or properties of an object.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The `foreach` statement is a looping construct used in PHP to iterate over elements of an array or properties of an object.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It executes a block of code a specified number of times.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It executes a block of code a specified number of times.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It is primarily used for conditional execution of code based on a boolean expression.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It is primarily used for conditional execution of code based on a boolean expression.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The `foreach` loop is used to define functions that can be called multiple times.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The `foreach` loop is used to define functions that can be called multiple times.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How does the 'foreach' loop work in PHP?","jawda_quiz_question_explanation":"The `foreach` loop in PHP is specifically designed to iterate over arrays and objects, providing a simple way to access each element's value (and optionally its key) without needing to manage an index counter.","jawda_quiz_question_answers":[{"jawda_a_text":"The `foreach` statement is a looping construct used in PHP to iterate over elements of an array or properties of an object.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The `foreach` statement is a looping construct used in PHP to iterate over elements of an array or properties of an object.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"It executes a block of code a specified number of times.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It executes a block of code a specified number of times.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"It is primarily used for conditional execution of code based on a boolean expression.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"It is primarily used for conditional execution of code based on a boolean expression.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"The `foreach` loop is used to define functions that can be called multiple times.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"The `foreach` loop is used to define functions that can be called multiple times.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"How does JavaScript interact with PHP?","jawda_q_type":"single","jawda_q_explanation":"JavaScript runs on the client-side (in the browser), while PHP runs on the server-side. They interact indirectly, typically through AJAX requests where JavaScript sends data to a PHP script on the server, and PHP processes it and sends a response back to JavaScript.","jawda_q_answers":[{"jawda_a_text":"JavaScript directly executes PHP code within the browser.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"JavaScript directly executes PHP code within the browser.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"JavaScript is a client-side programming language, whereas PHP is a server-side scripting language; they interact indirectly, often via AJAX requests.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"JavaScript is a client-side programming language, whereas PHP is a server-side scripting language; they interact indirectly, often via AJAX requests.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"PHP compiles JavaScript code before sending it to the client.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"PHP compiles JavaScript code before sending it to the client.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"They are largely the same in PHP and can be used interchangeably.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"They are largely the same in PHP and can be used interchangeably.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"How does JavaScript interact with PHP?","jawda_quiz_question_explanation":"JavaScript runs on the client-side (in the browser), while PHP runs on the server-side. They interact indirectly, typically through AJAX requests where JavaScript sends data to a PHP script on the server, and PHP processes it and sends a response back to JavaScript.","jawda_quiz_question_answers":[{"jawda_a_text":"JavaScript directly executes PHP code within the browser.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"JavaScript directly executes PHP code within the browser.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"JavaScript is a client-side programming language, whereas PHP is a server-side scripting language; they interact indirectly, often via AJAX requests.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"JavaScript is a client-side programming language, whereas PHP is a server-side scripting language; they interact indirectly, often via AJAX requests.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"PHP compiles JavaScript code before sending it to the client.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"PHP compiles JavaScript code before sending it to the client.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"They are largely the same in PHP and can be used interchangeably.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"They are largely the same in PHP and can be used interchangeably.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"Explain the importance of a Parser in PHP.","jawda_q_type":"single","jawda_q_explanation":"A PHP parser is a crucial component that translates the human-readable PHP source code into machine-understandable instructions, allowing the computer to execute the script.","jawda_q_answers":[{"jawda_a_text":"The 'and' and '&&' operators are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The 'and' and '&&' operators are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output 'true' seeming to imply that the 'and' operator is behaving instead as an assignment operator.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output 'true' seeming to imply that the 'and' operator is behaving instead as an assignment operator.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"A PHP parser is software that converts source code into the code that a computer can understand.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"A PHP parser is software that converts source code into the code that a computer can understand.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both $a and $b will be equal to the string '21' after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both $a and $b will be equal to the string '21' after the above code is executed.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"Explain the importance of a Parser in PHP.","jawda_quiz_question_explanation":"A PHP parser is a crucial component that translates the human-readable PHP source code into machine-understandable instructions, allowing the computer to execute the script.","jawda_quiz_question_answers":[{"jawda_a_text":"The 'and' and '&&' operators are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The 'and' and '&&' operators are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output 'true' seeming to imply that the 'and' operator is behaving instead as an assignment operator.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output 'true' seeming to imply that the 'and' operator is behaving instead as an assignment operator.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"A PHP parser is software that converts source code into the code that a computer can understand.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"A PHP parser is software that converts source code into the code that a computer can understand.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both $a and $b will be equal to the string '21' after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both $a and $b will be equal to the string '21' after the above code is executed.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"What is the purpose of the '@' operator in PHP?","jawda_q_type":"single","jawda_q_explanation":"The '@' symbol in PHP is used as an error control operator. When prepended to an expression, any error messages that would normally be generated by that expression will be suppressed.","jawda_q_answers":[{"jawda_a_text":"The 'and' and '&&' operators are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The 'and' and '&&' operators are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"In PHP, '@' is used for suppressing error messages.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"In PHP, '@' is used for suppressing error messages.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output 'true' seeming to imply that the 'and' operator is behaving instead as an assignment operator.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output 'true' seeming to imply that the 'and' operator is behaving instead as an assignment operator.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both $a and $b will be equal to the string '21' after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both $a and $b will be equal to the string '21' after the above code is executed.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"What is the purpose of the '@' operator in PHP?","jawda_quiz_question_explanation":"The '@' symbol in PHP is used as an error control operator. When prepended to an expression, any error messages that would normally be generated by that expression will be suppressed.","jawda_quiz_question_answers":[{"jawda_a_text":"The 'and' and '&&' operators are largely the same in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"The 'and' and '&&' operators are largely the same in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"In PHP, '@' is used for suppressing error messages.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"In PHP, '@' is used for suppressing error messages.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output 'true' seeming to imply that the 'and' operator is behaving instead as an assignment operator.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$x = true and false; var_dump($x); Surprisingly to many, the above code will output 'true' seeming to imply that the 'and' operator is behaving instead as an assignment operator.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both $a and $b will be equal to the string '21' after the above code is executed.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"$a = '1'; $b = &$a; $b = \"2$b\"; Both $a and $b will be equal to the string '21' after the above code is executed.","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"Which method sends input to a script via a URL?","jawda_q_type":"single","jawda_q_explanation":"The GET method sends form data as URL parameters, making the data visible in the URL. This method is suitable for non-sensitive data and when users might want to bookmark the page with specific parameters.","jawda_q_answers":[{"jawda_a_text":"POST method","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"POST method","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"GET method","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"GET method","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"REQUEST method","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"REQUEST method","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"SESSION method","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"SESSION method","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"Which method sends input to a script via a URL?","jawda_quiz_question_explanation":"The GET method sends form data as URL parameters, making the data visible in the URL. This method is suitable for non-sensitive data and when users might want to bookmark the page with specific parameters.","jawda_quiz_question_answers":[{"jawda_a_text":"POST method","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"POST method","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"GET method","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"GET method","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"REQUEST method","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"REQUEST method","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"SESSION method","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"SESSION method","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"Which function is used for testing the type of a PHP variable?","jawda_q_type":"single","jawda_q_explanation":"PHP provides several `is_*` functions, such as `is_int()`, `is_string()`, `is_array()`, and `is_object()`, to check the specific data type of a variable.","jawda_q_answers":[{"jawda_a_text":"gettype()","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"gettype()","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"is_type()","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"is_type()","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"typeof()","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"typeof()","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"check_type()","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"check_type()","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"Which function is used for testing the type of a PHP variable?","jawda_quiz_question_explanation":"PHP provides several `is_*` functions, such as `is_int()`, `is_string()`, `is_array()`, and `is_object()`, to check the specific data type of a variable.","jawda_quiz_question_answers":[{"jawda_a_text":"gettype()","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"gettype()","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"is_type()","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"is_type()","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"typeof()","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"typeof()","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"check_type()","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"check_type()","jawda_quiz_answer_correct":"false"}]},{"jawda_q_text":"Which of the following is the correct syntax for declaring a variable in PHP?","jawda_q_type":"single","jawda_q_explanation":"In PHP, all variables must start with a dollar sign ($) followed by the variable name. This is a fundamental rule for variable declaration in the language.","jawda_q_answers":[{"jawda_a_text":"Variables always start with a '#' in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Variables always start with a '#' in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Variables always start with an '@' in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Variables always start with an '@' in PHP.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Variables always start with a '&' in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Variables always start with a '&' in PHP.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Variables always start with a '$' in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Variables always start with a '$' in PHP.","jawda_quiz_answer_correct":"false"}],"jawda_quiz_question_title":"Which of the following is the correct syntax for declaring a variable in PHP?","jawda_quiz_question_explanation":"In PHP, all variables must start with a dollar sign ($) followed by the variable name. This is a fundamental rule for variable declaration in the language.","jawda_quiz_question_answers":[{"jawda_a_text":"Variables always start with a '#' in PHP.","jawda_a_correct":"yes","jawda_a_points":"1","jawda_quiz_answer_text":"Variables always start with a '#' in PHP.","jawda_quiz_answer_correct":"true"},{"jawda_a_text":"Variables always start with an '@' in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Variables always start with an '@' in PHP.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Variables always start with a '&' in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Variables always start with a '&' in PHP.","jawda_quiz_answer_correct":"false"},{"jawda_a_text":"Variables always start with a '$' in PHP.","jawda_a_correct":"","jawda_a_points":"1","jawda_quiz_answer_text":"Variables always start with a '$' in PHP.","jawda_quiz_answer_correct":"false"}]}],"results":[]};Skip to content
JJawda DesignsFree online tools
HomeAll ToolsQuizzesFree Directory 545+Blog
Language:

PHP Quiz: Session, Variable &amp; Possible

Challenge your PHP expertise with our interactive quiz focusing on Sessions, Variables, and Operator Precedence. This assessment features 30 randomized questions from a bank of 100, designed to test your practical understanding. Click 'Start Quiz' now to evaluate your skills and discover your PHP proficiency rank!

PHP Quiz: Session, Variable &amp; Possible

Quick Assessment Snapshot

  • Assessment Format: Multiple Choice
  • Questions Per Attempt: 30 (randomly selected from 100+)
  • Estimated Time: 5-10 minutes
  • Scoring Mode: Correct Answers
  • Target Skill Level: Beginner to Expert PHP Developers

About the PHP Quiz: Session, Variable & Possible Quiz & What It Evaluates

This interactive PHP quiz is meticulously designed to test your foundational and advanced understanding of PHP's core mechanisms, specifically focusing on sessions, variable handling, and operator behavior (including 'possible' tricky scenarios). Whether you're a student preparing for a certification, a developer brushing up for a technical interview, or simply looking to self-evaluate your PHP knowledge, this quiz provides a robust assessment. It measures your ability to predict code output, identify common pitfalls, and apply best practices related to data persistence, variable scope, type juggling, and operator precedence in real-world PHP scenarios.

How the Quiz Works: Rules, Scoring & Retakes

Each attempt at this quiz presents you with 30 unique, randomized multiple-choice questions drawn from a comprehensive bank of over 100 questions. You'll select the best answer for each question and receive immediate feedback, including detailed explanations for both correct and incorrect responses. Your score is calculated based on the number of correct answers. There's no limit to how many times you can retake the quiz, allowing you to practice, learn from your mistakes, and strive for a perfect 100% score. Each retake offers a fresh set of questions, ensuring a thorough review of the topic.

Key Concepts Tested in This Quiz (Study Guide)

To excel in this quiz, a solid grasp of the following PHP concepts is essential:

PHP Variables

  • Declaration & Assignment: Understanding $var = 'value';
  • Variable Scope: Local, global, static, and superglobal variables ($_GET, $_POST, $_SESSION, etc.).
  • References: How & works with variables ($b = &$a;) and its implications.
  • Variable Variables: The use of $$var and its behavior.
  • Type Juggling & Coercion: PHP's automatic type conversion rules, especially with comparisons (== vs. ===).
  • String Manipulation: Basic string operations, character access ($text[index]), and strlen() behavior with sparse strings.

PHP Sessions

  • Session Lifecycle: Starting (session_start()), storing data ($_SESSION), and destroying sessions (session_destroy()).
  • Session Configuration: Understanding common php.ini directives related to sessions.
  • Security Considerations: Basic session hijacking prevention.

PHP Operators & Precedence

Understanding operator precedence is crucial for predicting code output. Pay close attention to:
Operator Descriptio Precedence Notes
= (Assignment) Assigns value Very low precedence. Evaluates right-hand side first.
and, or, xor Logical operators Lower precedence than =. Can lead to unexpected assignment.
&&, || Logical operators Higher precedence than =. Generally preferred for clarity.
+ (Addition) Adds numbers, or attempts to convert strings to numbers. Can cause type juggling issues with non-numeric strings.
== (Equality) Compares values after type juggling. Be aware of implicit type conversions (e.g., '0123' == 123).
=== (Identity) Compares values and types. Strict comparison, avoids type juggling.

Other Important Concepts

  • Error Handling: Understanding common PHP errors and warnings.
  • File Inclusion: Differences between include and require, and their _once variants.
  • HTTP Headers: Basic use of header() for redirects or content type.

Common Traps & Tricky Scenarios in the Questions

This quiz includes questions designed to test your attention to detail and understanding of PHP's nuances. Watch out for:
  • Operator Precedence: The classic $x = true and false; scenario where and has lower precedence than =, leading to $x being assigned true.
  • Reference Assignments: How changes to a referenced variable affect the original, especially with string concatenation or re-assignment.
  • Type Juggling: Questions involving loose comparisons (==) between different types (e.g., strings and integers, octal numbers). Remember that '0123' == 123 is true, but 0123 == 123 (octal vs decimal) is false.
  • Array Merging: The behavior of array_merge() when dealing with non-array values or numeric vs. associative keys.
  • String Offset Assignment: Assigning to a string offset beyond its current length (e.g., $text[10] = 'Doe';) and its effect on strlen().
  • Implicit Type Conversion with Arithmetic: What happens when you perform arithmetic operations on strings (e.g., $a = 'PHP'; $a = $a + 1;).

Score Interpretation: What Your Result Means

Your quiz score provides immediate feedback on your PHP proficiency:
Score Range Skill Tier What It Means & Next Steps
0-33 points Beginner You're just starting out or need a refresher on core PHP concepts. Focus on understanding variable types, basic operators, and how PHP handles data. Review the 'Key Concepts Tested' section thoroughly and retake the quiz.
34-99 points Intermediate You have a good grasp of PHP fundamentals but might be missing some nuances or tricky scenarios. Pay close attention to operator precedence, references, and type juggling. Analyze the explanations for your incorrect answers to pinpoint areas for improvement.
100 points Expert Congratulations! You demonstrate an excellent and comprehensive understanding of PHP sessions, variables, and operator behavior. You're well-prepared for advanced PHP development and technical interviews. Challenge your peers to beat your score!

How to Ace the Quiz & Retake Strategy

To achieve an Expert score and truly master these PHP concepts, follow these steps:
  1. Take the Quiz First: Don't study beforehand. Take it cold to get an honest baseline assessment.
  2. Review Explanations: For every question you get wrong (or even guess correctly), carefully read the provided explanation. Understand why the correct answer is correct and why the distractors are wrong.
  3. Targeted Study: Use the 'Key Concepts Tested' and 'Common Traps' sections above as a study guide. Focus your learning on the areas where you performed weakest.
  4. Experiment with Code: If an explanation isn't clear, open a PHP interpreter or a local development environment and run the code snippets yourself. See the output firsthand.
  5. Retake the Quiz: Since questions are randomized, each retake will present you with a new set of challenges from the 100+ question bank. This helps reinforce your learning across a broader range of scenarios.
  6. Aim for 100%: Keep retaking until you consistently achieve a perfect score. This indicates true mastery.
Ready to prove your PHP prowess? Scroll up and click 'Start Quiz' to begin your assessment!

Frequently Asked Questions

How many questions are in this quiz?
Each attempt of the quiz will present you with 30 randomized multiple-choice questions selected from a larger bank of over 100 unique questions.
What is considered a passing score?
While there isn't a formal 'passing' score, achieving 34 points or more places you in the 'Intermediate' tier, and a perfect 100 points signifies an 'Expert' level of understanding. We encourage aiming for 100% mastery!
Can I retake this quiz if I score low?
Absolutely! You can retake the quiz as many times as you like. Each retake will draw a new set of 30 questions from the bank, providing fresh challenges and opportunities to improve your score.
Are explanations provided for missed answers?
Yes, after you submit your answers, you will receive immediate feedback for each question, including detailed explanations for both correct and incorrect choices to help you learn and understand the concepts better.
Is this quiz suitable for technical interview or exam preparation?
Yes, this quiz is an excellent tool for preparing for technical interviews, certification exams, or general skill assessment. It covers core PHP concepts and common tricky scenarios frequently encountered in such evaluations.
How are questions selected on each attempt?
Questions are randomly selected from a comprehensive bank of over 100 questions. This ensures that each quiz attempt provides a unique set of 30 questions, allowing for thorough practice and exposure to various topics.

Related Quizzes