Programming - PHP
You Are Here :: Home > Programming > PHP- General Questions
43.
What will be the output of the following code?
echo 30*5 . 7;?
A.
150.7
B.
1507
C.
150.7
D.
you can't concatenate integers
Answer: Option B
Explanation:
44.
In your PHP application you need to open a file. You want the application to issue a warning
and continue execution, in case the file is not foun The ideal function to be used is:?
A.
include()
B.
require()
C.
nowarn()
D.
getFile(false)
Answer: Option A
Explanation:
45.
What will be the output of the following code??
A.
int(3*4)
B.
int(12)
C.
3*4
D.
12
Answer: Option B
Explanation:
46.
You need to count the number of parameters given in the URL by a POST operation. The correct
way is:?
A.
count($POST_VARS);
B.
count($POST_VARS_PARAM);
C.
count($_POST);
D.
count($HTTP_POST_PARAM);
Answer: Option C
Explanation:
47.
Which of the following is correct with regard to echo and print??
A.
echo is a construct and print is a function
B.
echo is a function and print is a construct
C.
Both are functions
D.
Both are constructs
Answer: Option D
Explanation:
48.
Which of the following functions output text??
A.
echo()
B.
print()
C.
println()
D.
display()
Answer: Option A,B
Explanation:
« prev
next »