Professional Documents
Culture Documents
A - All variables in PHP are denoted with a leading dollar sign ($).
C - Variables are assigned with the = operator, with the variable on the left-hand side and the
expression to be evaluated on the right.
Q 2 - Which of the following type of variables are special type that only has one value: NULL?
A - Strings
B - Doubles
C - Booleans
D - NULL
A - Numeric Array
B - Associative Array
C - Multidimentional Array
A - rsort()
B - sort()
C - shuffle()
D - reset()
Q 5 - Which of the following method can be used to close a MySqli database using PHP?
A - mysqli_connect()
B - mysqli_query()
C - mysql_close()
C - It is used to manage dynamic content, databases, session tracking, even build entire e-commerce
sites.
Q 7 - Using which of the following way can you embed PHP code in an HTML page?
A - false
B - true
A - All variables in PHP are denoted with a leading dollar sign ($).
C - Variables are assigned with the = operator, with the variable on the left-hand side and the
expression to be evaluated on the right.
A - Strings
B - Arrays
C - Objects
D - Resources
Q 11 - Which of the following type of variables are special variables that hold references to resources
external to PHP (such as database connections)?
A - Strings
B - Arrays
C - Objects
D - Resources
Q 12 - Which of the following array represents an array containing one or more arrays?
A - Numeric Array
B - Associative Array
C - Multidimentional Array
A-.
B-+
C - append
A - size()
B - strlen()
C - length
Q 15 - Which of the following variable is used to generate random numbers using PHP?
A - srand()
B - rand()
C - random()
A - redirect()
B - header()
C - reflect()
Q 17 - Which of the following is used to get information sent via get method in PHP?
A - $_GET
B - $GET
C - $GETREQUEST
A - array()
B - array_change_key_case()
C - array_chunk()
D - array_count_values()
Q 19 - If there is any problem in loading a file then the require() function generates a warning but the
script will continue execution.
A - true
B - false
A - fopen()
B - fread()
C - filesize()
D - file_exist()
A - true
B - false
Q 22 - Which of the following method can be used to create a MySql database using PHP?
A - mysql_connect()
B - mysql_query()
C - mysql_close()
A - class_name()
B - __construct
C - constructor
Q 24 - final keyword prevents child classes from overriding a method by prefixing the definition with
final?
A - true
B - false
Q 25 - Which of the following keyword causes the loop to skip the remainder of its body and
immediately retest its condition prior to reiterating?
A - break
B - continue