0 of 72 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 72 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Average score |
|
Your score |
|
Pos. | Name | Entered on | Points | Result |
---|---|---|---|---|
Table is loading | ||||
No data available | ||||
Which is correct about the php.ini file?
Which of the following variables is an instance of a programmer-defined class?
Which of the following statements about constants vs variables in PHP is correct?
Which of the following arrays represents a numeric-indexed array?
In PHP, which of the following variables is used to obtain information about the user’s browser and operating system?
How will you concatenate two strings?
What does PHP stand for?
Which of the following provides the size of the uploaded file in PHP?
PHP server scripts are surrounded by delimiters, which?
In PHP, how do you type “Hello World”?
Which symbol does each variable in PHP begin with?
What is the correct way to end a PHP statement?
The PHP syntax is most closely related to:
How do you get information from a form that is submitted using the “get” method?
When using the POST method, variables are displayed in the URL:
In PHP you can use both single quotes ( ‘ ‘ ) and double quotes ( ” ” ) for strings:
Include files must have the file extension “.inc”
What is the correct way to include the file “time.inc” ?
What is the correct way to create a function in PHP?
PHP allows you to send emails directly from a script
Which superglobal variable holds information about headers, paths, and script locations?
What is the correct way to add 1 to the $count variable?
What is a correct way to add a comment in PHP?
PHP can be run on Microsoft Windows IIS(Internet Information Server):
The die() and exit() functions do the exact same thing.
Which one of these variables has an illegal name?
How do you create a cookie in PHP?
In PHP, the only way to output text is with echo.
How do you create an array in PHP?
The if statement is used to execute some code only if a specified condition is true
Which operator is used to check if two values are equal and of same data type?
Which of the following is the incorrect way to declare a PHP variable?
Are the following two variables the same:
$yValue = 7;
$YValue = 7;
All variables in PHP start with a $(dollar) sign?
Which of the following is the incorrect way to declare a PHP variable?
What data type will PHP automatically convert the following variable to: $aVariable = “Robert”;
Are the following two variables the same:
$randomString = “YouTubers”;
$randomString = “Google”;
What data type will PHP automatically convert the following variable to:?
$aVariable = 99;
Which of the following is the incorrect way to declare a PHP variable?
PHP variables need to be declared before adding a value to it?
When a variable is declared, it can only be used 1 time in your PHP source file?
Are PHP variables case-sensitive?
Which of the following is used to declare a constant
What gets printed?
$var = ‘false’;
if ($var) {
echo ‘true’;
} else {
echo ‘false’;
}
Which of the following is the way to create comments in PHP?
What will be the value of $var?
How do we access the value of ‘d’ later?
$a = array(
‘a’,
3 => ‘b’,
1 => ‘c’,
‘d’
);
Which of the following is NOT a valid PHP comparison operator?
What gets printed?
class MyException extends Exception {}
try {
throw new MyException(‘Oops!’);
} catch (Exception $e) {
echo “Caught Exception
“;
} catch (MyException $e) {
echo “Caught MyException
“;
}
Which statement about the code below is correct?
class A {}
class B {}
class C extends A, B {}
Which of the following is NOT a magic predefined constant?
What gets printed?
What is the strpos() function used for?
Which of the following differences are valid between PHP 4 and PHP 5?
Can we use include (â€test.phpâ€) two times in a PHP page “test1.PHPâ€?
What is the difference between GET and POST method?
____________ function in PHP Returns a list of response headers sent (or ready to send)
What is array_keys() used for?
How do I create PHP arrays in a HTML
What is the difference between echo and print?
What is the default size of a file set in upload_max_filesize ?
What is Joomla in PHP?
What is the default execution time set in set_time_limit()?
Is strstr and strchr aliases?
Can I generate DLL files from PHP scripts like i can in Perl ?
In which variable is the users IP address stored?
Can I run several versions of PHP at the same time?
Which function is used to Strip whitespace (or other characters) from the beginning and end of a string?
What is PHP heredoc used for?
Can echo in php accept more than 1 parameter?
What is the purpose of $_SESSION[]?