Professional Documents
Culture Documents
Quiz IPT
Quiz IPT
a. $GLOBALS
b. $local
c. $variable
d. $this
6. Which of the following is the correct way to assign a value to a variable in PHP?
a. $x = 5;
b. 5 = $x;
c. x = 5;
d. $5 = x;
7. What is the difference between single quotes (' ') and double quotes (" ") when defining strings
in PHP?
a. Single quotes allow variable interpolation, while double quotes do not.
b. Double quotes allow variable interpolation, while single quotes do not.
c. Single quotes and double quotes behave the same in PHP.
d. Single quotes automatically convert variables to strings, while double quotes do not.
15. Which of the following operators is used for strict equality in PHP?
a. =
b. ==
c. ===
d. !=
22. Which of the following is the "greater than or equal to" operator in PHP?
a. =>
b. <=
c. >=
d. ->
30. Which operator is used to determine if a variable is set and not null in PHP?
a. ?
b. ?:
c. ??
d. ?!