Exam Bank: PHP Exam: Final Exam: PHP
# of Question: 35
Essentials 57 % Essentials
1 Which of the following is/are a database function?
mysql_database()
mysql_connect_db()
mysql_connect_query()
f A and B
None of the above
2 Which of the following is/are function naming conventions?
Must start with a letter or underscore (_)
Must not start with a number
Must not contain spaces
A and B
All of the above
3 Which of the following statements is/are true?
When a session initiates for a user, that particular user's browser is assigned a
session ID.
Session variables are retained until a session times out.
Data in a cookie is usually in the form of arrays.
A and B
All of the above
4 Which of the following statements is/are true?
The global variables are pre-fixed with the GLOBAL keyword.
If a variable with the same name is declared both inside and outside a function,
PHP treats them as two separate variables.
Any change to the value of a local variable is reflected on all the variables with
the same name.
A and B
All of the above
# of Question: 35
Essentials 57 % Essentials
1 Which of the following is/are a database function?
mysql_database()
mysql_connect_db()
mysql_connect_query()
f A and B
None of the above
2 Which of the following is/are function naming conventions?
Must start with a letter or underscore (_)
Must not start with a number
Must not contain spaces
A and B
All of the above
3 Which of the following statements is/are true?
When a session initiates for a user, that particular user's browser is assigned a
session ID.
Session variables are retained until a session times out.
Data in a cookie is usually in the form of arrays.
A and B
All of the above
4 Which of the following statements is/are true?
The global variables are pre-fixed with the GLOBAL keyword.
If a variable with the same name is declared both inside and outside a function,
PHP treats them as two separate variables.
Any change to the value of a local variable is reflected on all the variables with
the same name.
A and B
All of the above