PHP Questions and Answers Pdf - 1

Question: 1

Variable scope on which a variable does not loose its value when the function exists and uses that value if the function is called again is

(A) static

(B) function parameter

(C) local

(D) none of these

Ans: A

static

Question: 2

The left associative dot operator (.) is used in PHP for

(A) separate object and its member

(B) multiplication

(C) concatenation

(D) delimeter

Ans: C

concatenation

Question: 3

Which of the following printing construct/function accepts multiple parameters?

(A) Echo

(B) Print

(C) Printf

(D) all of these

Ans: A

Echo

Question: 4

In php string data are

(A) delimited by double quote

(B) delimited by a single quote

(C) delimited by <<< identifier

(D) all of these

Ans: D

all of these

Question: 5

Which of the following variables is not a predefined variable?

(A) $post

(B) $get

(C) $request

(D) $ask

Ans: D

$ask

Related Questions
Recent Articles
Trending Posts

REGISTER TO GET FREE UPDATES