PHP MCQ Questions with Answers Download PDF – PHP Programming Language


11) Which of the following is not the scope of Variable in PHP?

A) Local

B) Global

C) Static

D) Extern

View Answer
Option – D.

12) PHP is _______ scripting language.

A) Server-side

B) Clint-side      

C) Middle-side

D) Out-side

View Answer
Option – A.

13) Which of the following is not true?

A) PHP can be used to develop web applications.

B) PHP makes a website dynamic

C) PHP applications can not be compile

D)PHP can not be embedded into html.

View Answer
Option – D.

14) When you need to obtain the ASCII value of a character which of the following function you apply in PHP?

A) chr( );

B) asc( );

C) ord( );

D) val( );

View Answer
Option – C.

15) How many types of loops are supported in PHP?

A) 2

B) 3

C) 4

D) 5

View Answer
Option – C.

16) Which method is used to check the validation of a email address

A) validateAddress

B) ValidateMail

C) CheckAddress

D) CheckMail

View Answer
Option – A.

17) A variable name can only contain ____________?
A) alphanumeric characters
B) underscores
C) Both A and B
D) None of the above

View Answer
Option – C.

18) How many variable scope are there in php?
A) 2
B) 3
C) 1
D) 4

View Answer
Option – B.

19) What is the default execution time set in set_time_limit()?

A) 20 secs

B) 30 secs

C) 40 secs

D) 35 secs

View Answer
Option – B.

20) Which one of the following keywords is used to define an abstract class?

A) extends

B) implements

C) abstract

D) new

View Answer
Option – C.

Thank You for Visiting Our Website!!