PPSC Computer Science Chapter 9 PHP Online Test With Answers

PPSC Computer Science Chapter 9 PHP Online Test

Sr. # Questions Answers Choice
1 Trace the function that does continue the script execution even if the file inclusion fails. Include () requre(0 Both of abvoe None
2 Which function includes the specified file even the statement evaluates to false in which block the function is placed. Include () require (0 Both of above None
3 Which of the following functions require the allow -rul -fopen must the enabled. Include () Require () Both above None
4 The left associative dot operator (0 is used in PHP for. Multiplication Concatenation Separate object and its member Delimeter
5 The left association operator % s used in PHP for Percentage bit wise or Division Modulus
6 Variable scope on which a variable does not loose its value when the function exists and use that value if the function is called again is. Local Function parameter Static None
7 Identify the variable scope that is not supported by PHP Local variables Function parameters Hidden variables Global variables
8 Which of the following variable assignment is by value assignment in PHP $value 1 = $ value? $value 1 = & $ value? $value 1 = & $value? None
9 Identify the invalid identifier my -function size -some word This & That
10 Casting operator introduced in PHP 6 IS. (array) (in 64) (real) or (double) or (float) (object)
11 Which of following are compound data type. array Objects Both None
12 Which data types are treaded as arrays. Integer Float String Booleans
13 Which of the following delimiting method is known as string interpolation. Delimited by single uote Delimited by double uote Delimited by <<< identifier All of above
14 In PHP string data are Delimited by single uote Delimited by double uoto Delimited by <<< identifier All of above
15 Which of the following are valid float values. 4.5678 4.0 7 e4 All of above
16 Trace the odd data type Floats Integer Double Real number
17 For integer data type PHP 6 introduced. 8 bit integer value 16 bit integer value 32 bit integer value 64 bit integer value
18 If Boolean variable $ alive =5 $ alive is false $ alive is true $ alive is overflow None of above
19 Which of the following data type is not seal or datA type supported by PHP Array String Float Boolean
20 Which of the following function can assign the output to a string variable. echo () print (0 print f(0 s print f ()
Download This Set

Is this page helpful?