MCQ 1 Which one of the following methods is used to recuperating prepared statements resources?

Correct Answer Choice D close ( )
See Answer

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

Correct Answer Choice B 30 secs
See Answer

MCQ 3 Where session_start() function must appear in PHP?

Correct Answer Choice D Before tag
See Answer

MCQ 4 What does fopen() function do in PHP?

Correct Answer Choice B It used to open files in PHP
See Answer


MCQ 5 What is the use of strlen( ) function in PHP?

Correct Answer Choice B It returns the length of a string
See Answer

MCQ 6 What will be the output of the following PHP code?

< ? php
$team = "M"
switch ($team) {
case "M": echo "Today is Monday";
case "T": echo "Today is Tuesday";
case "W": echo "Today is Wednesday";
}
? >

Correct Answer Choice B Today is Monday
See Answer

MCQ 7 Which function is used to remove all HTML tags from a string passed to a form?

Correct Answer Choice B strip_tags()
See Answer

MCQ 8 When a session ia active, PHP provides a special constant called

Correct Answer Choice A SID
See Answer


MCQ 9 What will be the output of the following PHP code?

< ? php
$fruits = array ("apple", "mango", "peach", "pear", "orange");
$subset = array_splice ($fruits, 2);
print_r ($fruits);
? >

Correct Answer Choice C Array ( [0] => apple [1] => mango )
See Answer

MCQ 10 cookies are set by using the ______________ in PHP language.

Correct Answer Choice B setcookie ( ) function
See Answer

MCQ 11 Which method rolls back the present transaction?

Correct Answer Choice D rollback()
See Answer

MCQ 12 How do you create a cookie in PHP Language?

Correct Answer Choice B setcookie()
See Answer


MCQ 13 Which operator is used to check if two values are equal and of same data type?

Correct Answer Choice A ===
See Answer

MCQ 14 Which of the following function is used to get the size of a file?

Correct Answer Choice C filesize()
See Answer

MCQ 15 What is the description of Error level E_ERROR?

Correct Answer Choice C Fatal run-time error
See Answer

MCQ 16 Which function initializes the constants necessary for using the openlog(), clodelog(), and syslog() functions?

Correct Answer Choice B define_syslog_variable()
See Answer


MCQ 17 Which of the following are correct ways of creating an array?

  • (i) state[0] = array "Rajasthan";
  • (ii) $state[] = array("Rajasthan");
  • (iii) $state[0] = "Rajasthan";
  • (iv) $state = array("Rajasthan");
  • <

    Correct Answer Choice C (iii) and (iv)
    See Answer

MCQ 18 Which version introduced the function error_get_last()?

Correct Answer Choice C PHP 5.2
See Answer

MCQ 19 Output of Md5 is.

Correct Answer Choice C 32 hexa digest characters
See Answer

MCQ 20 What will be the output of the following PHP code?

< ?php
function calc($price, $tax="")
{
$total = $price + ($price * $tax);
echo "$total";
}
calc(42);
? >

Correct Answer Choice B 42
See Answer


MCQ 21 What is the strpos() function used for?

Correct Answer Choice D None of the above
See Answer

MCQ 22 The ______________ function in PHP returns a list of response headers sent (or ready to send).

Correct Answer Choice B headers_list()
See Answer

MCQ 23 Which function is used to Strip whitespace (or other characters) from the beginning and end of a string?

Correct Answer Choice D trim
See Answer

MCQ 24 Which function in PHP is used to get the length of string variable?

Correct Answer Choice D strlen
See Answer


MCQ 25 Which of the following methods is used to execute the statement after the parameters have been bound?

Correct Answer Choice A bind_param()
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