MCQ 1 What does PHP stand for?

Correct Answer Choice B Private home page
See Answer

MCQ 2 What does HTML stand for?

Correct Answer Choice B Hyper text markup language
See Answer

MCQ 3 The PHP syntax is most similar to

Correct Answer Choice C Perl and C
See Answer

MCQ 4 Which superglobal variable holds information about headers, paths, and script locations?

Correct Answer Choice C $_SERVER
See Answer


MCQ 5 What is a correct way to add a comment in PHP?

Correct Answer Choice A /*...............*/
See Answer

MCQ 6 Which of following is used to add multiple line comments in PHP?

Correct Answer Choice D /* */
See Answer

MCQ 7 We can use _____________ tag to comment a single line?

Correct Answer Choice D //
See Answer

MCQ 8 When you use the $_POST variable to collect data, the data is visible to ______________.

Correct Answer Choice B only you
See Answer


MCQ 9 Choose the correct option.

Correct Answer Choice D All of the above
See Answer

MCQ 10 What is the purpose of $_SESSION[ ] ?

Correct Answer Choice C Used to store variables of the current session
See Answer

MCQ 11 Which of the following differences are valid between PHP 4 and PHP 5?

Correct Answer Choice D Both A and C
See Answer

MCQ 12 Include files must have the file extension ".inc"

Correct Answer Choice B False
See Answer


MCQ 13 What is the correct way to include the file "filename.inc" ?

Correct Answer Choice D < ? php include "filename.inc"; ? >
See Answer

MCQ 14 What is Joomla in PHP?

Correct Answer Choice B An open source CMS
See Answer

MCQ 15 How many basic data types are offered by PHP?

Correct Answer Choice D 8
See Answer

MCQ 16 The attack which involves the insertion of malicious code into a page frequented by other users is known as ________________.

Correct Answer Choice A cross-site scripting
See Answer


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

Correct Answer Choice A GET
See Answer

MCQ 18 Which one of these variables has an illegal name?

Correct Answer Choice B $my-Var
See Answer

MCQ 19 Can we generate DLL files from PHP scripts like we can in Perl language?

Correct Answer Choice A No
See Answer

MCQ 20 Can echo in php accept more than 1 parameter?

Correct Answer Choice A Yes
See Answer


MCQ 21 MD5 takes input string and makes it down into a fixed length string of.

Correct Answer Choice A 32 hexadecimal values
See Answer

MCQ 22 Which data type is not valid in PHP for type casting?

Correct Answer Choice D Both a and b
See Answer

MCQ 23 1. What does PHP stand for?

  • i) Personal Home Page
  • ii) Hypertext Preprocessor
  • iii) Pretext Hypertext Processor
  • iv) Preprocessor Home Page
  • <

    Correct Answer Choice C Both (i) and (ii)
    See Answer

MCQ 24 PHP files have a default file extension of.

Correct Answer Choice C php
See Answer


MCQ 25 Which of the following is used to declare a constant.

Correct Answer Choice C define
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