Aptitude
Reasoning
Verbal Ability
GK
Programming
Puzzles
Online Test
Programming
PHP
General Questions
Programming - PHP
26.
What is a+ mode in
fopen()
used for ?
A.
Read/Write - creates a new file, returns FALSE and an error if file already exists
B.
Write only - creates a new file, returns FALSE and an error if file already exists
C.
Read/Write - preserves file content by writing to the end of the file
D.
Read only - starts at the beginning of the file
Answer
Answer :
Option C
27.
The function
func_num_args()
returns
A.
the number of arguments passed to the function
B.
the total length of the arguments
C.
the number of lines in the program
D.
the number of variables used in the program
Answer
Answer :
Option A
28.
The ________ magic constant returns the name of the current function.
A.
_LINE_
B.
_FILE_
C.
_FUNCTION_
D.
_CLASS_
Answer
Answer :
Option C
29.
What does
sprintf()
function do in PHP ?
A.
it sends output to a variable
B.
it prints the output of program
C.
it sends output to a variable converting into string
D.
it prints the output of program converting into string
Answer
Answer :
Option A
30.
Which statement sets the default timezone to Asia/Kolkata ?
A.
date_set_timezone(‘Asia/Kolkata’);
B.
date_default_timezone_set('Asia/Kolkata’);
C.
date_set_default_timezone(‘Asia/Kolkata’);
D.
date_default_timezone(‘Asia/Kolkata’);
Answer
Answer :
Option B
Jump to page number :
1
2
3
4
5
6
(current)
7
8
9
10
General Questions
Find Output of Program