MCQ 1 What kind of session will maintain its identity as long as user stays within a site?

Correct Answer Choice B Variable based session
See Answer

MCQ 2 Which two predefined variables are used to retrieve information from forms?

Correct Answer Choice B $_GET & $_SET
See Answer

MCQ 3 When you use the $_GET variable to collect data, the data is visible to.

Correct Answer Choice A everyone
See Answer

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

Correct Answer Choice B only you
See Answer


MCQ 5 How PHP files can be accessed?

Correct Answer Choice C Through Web Server
See Answer

MCQ 6 How to define a variable in PHP?

Correct Answer Choice C $variable_name = value
See Answer

MCQ 7 Which of the following is not PHP Loops?

Correct Answer Choice C do for
See Answer

MCQ 8 How do you create an array of fruits in PHP?

Correct Answer Choice A $fruits = array("Apple", "Banana", "Cherries","Grapes", "Honeydew melon,","Kiwi","Lime");
See Answer


MCQ 9 Which of the looping statements is/are supported by PHP language?

  • i) for loop
  • ii) while loop
  • iii) do-while loop
  • iv) foreach loop
  • <

    Correct Answer Choice C Both (A) and (B)
    See Answer

MCQ 10 Which method retrieves each row from the prepared statement result and assigns the fields to the bound results?

Correct Answer Choice C fetch()
See Answer

MCQ 11 What does the hash (#) sign mean in PHP?

Correct Answer Choice D It indicates lines that are commented out.
See Answer

MCQ 12 How do I create PHP arrays in a HTML < form >?

Correct Answer Choice D < input MyArray[] / >
See Answer


MCQ 13 For changing arrays into strings, which function is used?

Correct Answer Choice B implode ( )
See Answer

MCQ 14 How do we access the value of 'd' later?
$a = array('a', 3 => 'b', 1 => 'c', 'd' );

Correct Answer Choice D $a[4]
See Answer

MCQ 15 Which of the functions is used to sort an array in descending order?

Correct Answer Choice B rsort()
See Answer

MCQ 16 PHP's numerically indexed array begin with position _______________ .

Correct Answer Choice C 0
See Answer


MCQ 17 What does explode ( ) function do?

Correct Answer Choice B Converts a string into arrays
See Answer

MCQ 18 Which of the methods are used to manage result sets using both associative and indexed arrays?

Correct Answer Choice B fetch_array() and fetch_row()
See Answer

MCQ 19 As compared to associative arrays vector arrays are much

Correct Answer Choice A Faster
See Answer

MCQ 20 Functions that returns a new array without disturbing their old arguments might be called as

Correct Answer Choice D Both A and C
See Answer


MCQ 21 What is array_keys() used for?

Correct Answer Choice C Returns all the keys of an array
See Answer

MCQ 22 Compact ( ) function is used to create an array from

Correct Answer Choice D Both a and b
See Answer

MCQ 23 Array_flip ( ) function changes keys of an array into

Correct Answer Choice B Values
See Answer

MCQ 24 Which of the following type of variables are instances of programmer-defined classes?

Correct Answer Choice C Objects
See Answer


MCQ 25 Which of the methods are used to manage result sets using both associative and indexed arrays?

Correct Answer Choice B fetch_array() and fetch_row()
See Answer

MCQ 26 Which function is responsible for sending a custom message to the system log?

Correct Answer Choice D syslog()
See Answer

MCQ 27 HTTP response error "Not Found", code is

Correct Answer Choice B 404
See Answer

MCQ 28 Which of the following method of Exception class returns formated string of trace?

Correct Answer Choice D getTraceAsString()
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