MCQ 1 Can we use both single quotes ( ' ' ) and double quotes ( " " ) for strings in PHP language.

Correct Answer Choice B True
See Answer

MCQ 2 What does PHP stand for?

Correct Answer Choice C Hypertext Preprocessor
See Answer

MCQ 3 Can I run several versions of PHP at the same time?

Correct Answer Choice A Yes
See Answer

MCQ 4 What is PHP heredoc used for?

Correct Answer Choice B allows creating multiple lines of string without using quotations
See Answer


MCQ 5 Which one of the following does not hold true regarding GET method in HTML?

Correct Answer Choice A Use of GET method in HTML is more secured.
See Answer

MCQ 6 Which keyword is used to refer to properties or methods within the class itself?

Correct Answer Choice B $this
See Answer

MCQ 7 How many validation filters like FILTER_VALIDATE_EMAIL are currently available?

Correct Answer Choice C 7
See Answer

MCQ 8 In PHP a variable needs to be declare before assign

Correct Answer Choice C False
See Answer


MCQ 9 Which variable is used to collect form data sent with both the GET and POST methods?

Correct Answer Choice D $_REQUEST
See Answer

MCQ 10 Some characteristics of MD5 is

Correct Answer Choice D All of the above
See Answer

MCQ 11 What is the default size of a file set in upload_max_filesize ?

Correct Answer Choice B 2 MB
See Answer

MCQ 12 Is strstr and strchr aliases?

Correct Answer Choice A Yes
See Answer


MCQ 13 www-authenticate mechanism works only under the

Correct Answer Choice C Apache web server
See Answer

MCQ 14 Which one of the following does not hold true regarding POST method in HTML?

Correct Answer Choice B Use of POST method enables us to bookmark the page.
See Answer

MCQ 15 What does the PHP Interpreter do?

Correct Answer Choice A It processes the HTML and PHP files
See Answer

MCQ 16 Which of the following is used to add comments in PHP?

Correct Answer Choice D Only A and B
See Answer


MCQ 17 "PHP is a case sensitive". Is the statement is True or False.

Correct Answer Choice A True
See Answer

MCQ 18 Which of the below symbols is a newline character?

Correct Answer Choice A \n
See Answer

MCQ 19 Which sign is used to access variable of variable in PHP?

Correct Answer Choice A $$
See Answer

MCQ 20 Who provides the size of the uploaded file in PHP?

Correct Answer Choice C $_FILES['file']['size']
See Answer


MCQ 21 What is the correct way to open the file "time.txt" as readable?

Correct Answer Choice B fopen("time.txt","r");  
See Answer

MCQ 22 In which variable is the users IP address stored?

Correct Answer Choice D $REMOTE_ADDR
See Answer

MCQ 23 A PHP script should start with _____________ and end with ___________:

Correct Answer Choice B < ? php ? >
See Answer

MCQ 24 A period of time during which a particular person, views a number of web pages at a particular machine is called as

Correct Answer Choice C Session
See Answer


MCQ 25 Which one of the following lines need to be uncommented or added in the php.ini file so as to enable mysqli extension?

Correct Answer Choice A extension=php_mysqli.dll
See Answer

NTSE, NEET, AIEEE, Olympiad & Other Competive Exams Preparation

Publish Your Article / Write for Us

Article Writing Guide/Help

Trending Questions


Advantages Of NCERT, CBSE & State Boards Solutions For All Subjects

  • All the NCERT Solutions have been prepared by academic experts having 10+ years of teaching experience.
  • They have prepared all the solutions in simple and easy language, so that each and every student can understand the concepts easily.
  • All the solutions have been explained step to step wise in details with better explainations.
  • Students can also use these question and answers for your assignments and in homework help.
  • All the solutions have been explained in detail and the answers have been compiled in a step-wise manner.
  • All the question and asnwers are commonly prepared according to the Latest Syllabus of Board Education and Guidelines.
  • Students can know about the various types of questions asked in the exams with the help of these solutions.

Top Course Categories