MCQ 1 Which of the following is correct about constants?

Correct Answer Choice C Both of the above
See Answer

MCQ 2 How do you get information from a form that is submitted using the "get" method?

Correct Answer Choice B $_GET[ ];
See Answer

MCQ 3 The correct way to end a PHP statement is ____________.

Correct Answer Choice B New line
See Answer

MCQ 4 When using the POST method, the variables are displayed in the URL of the page.

Correct Answer Choice A False
See Answer


MCQ 5 PHP can be run on Microsoft Windows IIS (Internet Information Server).

Correct Answer Choice A True
See Answer

MCQ 6 What is the correct way to add 1 to the $count variable?

Correct Answer Choice B ++count
See Answer

MCQ 7 PHP server scripts are surrounded by delimiters, which is used?

Correct Answer Choice A < ?php … ? >
See Answer

MCQ 8 What is the difference between GET and POST method when submitting a form?

Correct Answer Choice A GET displays the form values entered in the URL of the address bar where as POST does not.
See Answer


MCQ 9 What are the different levels of headings in HTML?

Correct Answer Choice A 1-6
See Answer

MCQ 10 Which of the subsequent is NOT a magic predefined constant?

Correct Answer Choice C __DATE__ D. __CLASS__
See Answer

MCQ 11 What is the difference between echo and print?

Correct Answer Choice C Echo can take multiple parameters where as print cannot
See Answer

MCQ 12 PHP is a ______________.

Correct Answer Choice D Loosely typed language
See Answer


MCQ 13 Who is the father of PHP?

Correct Answer Choice A Rasmus Lerdorf
See Answer

MCQ 14 LIFO stands for

Correct Answer Choice A First in Last Out
See Answer

MCQ 15 How many different ways are offered by PHP to manipulate a data type?

Correct Answer Choice B 3
See Answer

MCQ 16 Which of the following method sends input to a script via a URL?

Correct Answer Choice A get method
See Answer


MCQ 17 Between which tags is PHP code written?

Correct Answer Choice C < ? php Write your code here / >
See Answer

MCQ 18 Can we use include ("thisfilename.php") two times in a PHP page "filename.php"?

Correct Answer Choice A Yes
See Answer

MCQ 19 PHP allows you to send emails directly from a script.

Correct Answer Choice B True
See Answer

MCQ 20 How do you write "About Online Education for all" in PHP.

Correct Answer Choice A echo "About Online Education for all";
See Answer


MCQ 21 Which of the following is the way to create comments in PHP?

Correct Answer Choice D all of the above
See Answer

MCQ 22 Which one is not a data type in PHP?

Correct Answer Choice B Void
See Answer

MCQ 23 Choose the incorrect option.

Correct Answer Choice C < form action="knowledge.php" > redirects to the page home.php
See Answer

MCQ 24 Which one of the following should not be used while sending passwords or other sensitive information?

Correct Answer Choice D GET
See Answer


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

Correct Answer Choice B fopen("time.txt","r");  
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