PPSC Computer Science Full Book test With Answers

PPSC Computer Science Full Book test

Sr. # Questions Answers Choice
1 Electronic spread sheets are most useful n a situation where relatively data must be input but calculations are required. Little, simple Large, simple Large, complex Little, complex
2 Trace the function that does continue the script execution even if the file inclusion fails. Include () requre(0 Both of abvoe None
3 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
4 Which of the following functions require the allow -rul -fopen must the enabled. Include () Require () Both above None
5 The left associative dot operator (0 is used in PHP for. Multiplication Concatenation Separate object and its member Delimeter
6 The left association operator % s used in PHP for Percentage bit wise or Division Modulus
7 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
8 Identify the variable scope that is not supported by PHP Local variables Function parameters Hidden variables Global variables
9 Which of the following variable assignment is by value assignment in PHP $value 1 = $ value? $value 1 = & $ value? $value 1 = & $value? None
10 Identify the invalid identifier my -function size -some word This & That
11 Casting operator introduced in PHP 6 IS. (array) (in 64) (real) or (double) or (float) (object)
12 Which of following are compound data type. array Objects Both None
13 Which data types are treaded as arrays. Integer Float String Booleans
14 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
15 In PHP string data are Delimited by single uote Delimited by double uoto Delimited by <<< identifier All of above
16 Which of the following are valid float values. 4.5678 4.0 7 e4 All of above
17 Trace the odd data type Floats Integer Double Real number
18 For integer data type PHP 6 introduced. 8 bit integer value 16 bit integer value 32 bit integer value 64 bit integer value
19 If Boolean variable $ alive =5 $ alive is false $ alive is true $ alive is overflow None of above
20 Which of the following data type is not seal or datA type supported by PHP Array String Float Boolean
21 Which of the following function can assign the output to a string variable. echo () print (0 print f(0 s print f ()
22 Which of the following type specifier is invalid in print f ( ) functions. % a % b % c % d
23 Which of the following statement is more suitable if you want to output a blend of static text and dynamics information stored within one or several variables. Echo() Print () print f() None
24 Which of the following function return 1 when output is successful. echo() Print () Both None
25 Which of following commenting is supported by PHP Single line c++syntax -ii Shell syntax -# Both of above None
26 PHP supports all four different ways of delimiting in this context identify the false statement. You can use any of the delimiting style. You can use different delimiting style in same page You can use any delimiting style but must use a single style consistently for a page. Variables declared in previous blocks are remembered on later blocks tool
27 When uploading a file if the UPLOAD_ERR-OK contains value 0 it means. Upload is not successful error occurred The file uploaded with success Uploaded file size is 0 File upload progress is 0% completed
28 Which of the following is not a session function. Session _decode Session _ destroy Session _id Session _ pw
29 In mail ($param2, $ param 2, $param3, $param 4), the $param 2 contains. The message The recipient The header The subject
30 f open ($file_doc."r+& rduo opens a file for. reading writing both above None
Download This Set

Is this page helpful?