Professional Documents
Culture Documents
Learning by Quiz KEY
Learning by Quiz KEY
PHP Programming
Date: _________________
You answered:
Correct Answer!
You answered:
Correct Answer!
IB Computer Science Student_______________
PHP Programming
Date: _________________
You answered:
Correct Answer!
You answered:
Correct Answer!
You answered:
Perl and C
Correct Answer!
7. How do you get information from a form that is submitted using the "get" method?
You answered:
$_GET[];
Correct Answer!
8. When using the POST method, variables are displayed in the URL:
You answered:
False
IB Computer Science Student_______________
PHP Programming
Date: _________________
Correct Answer!
9. In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:
You answered:
True
Correct Answer!
You answered:
False
Correct Answer!
You answered:
Correct Answer!
You answered:
function myFunction()
Correct Answer!
13. What is the correct way to open the file "time.txt" as readable?
IB Computer Science Student_______________
PHP Programming
Date: _________________
You answered:
fopen("time.txt","r");
Correct Answer!
You answered:
True
Correct Answer!
15. Which superglobal variable holds information about headers, paths, and script
locations?
You answered:
$_SERVER
Correct Answer!
You answered:
$count++;
Correct Answer!
You answered:
/*...*/
IB Computer Science Student_______________
PHP Programming
Date: _________________
Correct Answer!
You answered:
True
Correct Answer!
19. The die() and exit() functions do the exact same thing.
You answered:
True
Correct Answer!
You answered:
$my-Var
Correct Answer!
21. The setcookie() function must appear BEFORE the <html> tag.
You answered:
True
Correct Answer!
You answered:
False
Correct Answer!
You answered:
Correct Answer!
24. The if statement is used to execute some code only if a specified condition is true
You answered:
True
Correct Answer!
25. Which operator is used to check if two values are equal and of same data type?
You answered:
===
Correct Answer!