Sail E0 Webinar

MCQs

Total Questions : 103 | Page 8 of 11 pages
Question 71. Which superglobal variable holds information about headers, paths, and script locations?
  1.    $GLOBALS
  2.    $_GET
  3.    $_SERVER
  4.    $_SESSION
 Discuss Question
Answer: Option C. -> $_SERVER
Question 72. What is the correct way to add 1 to the $count variable?
  1.    $count++
  2.    $count=+1
  3.    count++
  4.    ++$count
 Discuss Question
Answer: Option C. -> count++
Question 73. Which of the following is an associative array containing session variables available to the current script
  1.    $_COOKIE
  2.    $GLOBALS
  3.    $_SERVER
  4.    $_SESSION
 Discuss Question
Answer: Option D. -> $_SESSION
Question 74. What should be the correct syntax to write a PHP code?
 Discuss Question
Answer: Option D. -> $_SESSION
Question 75. Which of the following method is suitable when you need to send larger form submissions?
  1.    GET
  2.    POST
  3.    Both GET and POST
  4.    There is no direct way for larger form. You need to store them in a file and retrieve
 Discuss Question
Answer: Option B. -> POST
Question 76. A function name cannot start with a ____
  1.    alphabet
  2.    underscore
  3.    number
  4.    Both C and B
 Discuss Question
Answer: Option C. -> number
Question 77. Identify the invalid identifier ?
  1.    my-function
  2.    size
  3.    -some word
  4.    This&that
 Discuss Question
Answer: Option D. -> This&that
Question 78. Which is the right way of declaring a variable in PHP?
  1.    Only ii)
  2.    Only iii)
  3.    ii), iii) and iv)
  4.    ii) and iv)
 Discuss Question
Answer: Option D. -> ii) and iv)
Question 79. In PHP a variable needs to be declare before assign
  1.    True
  2.    False
  3.    Depends on website
  4.    Depends on server
 Discuss Question
Answer: Option B. -> False
Question 80. Which one of the following is a form element?
  1.    text box.
  2.    radio button.
  3.    submit button.
  4.    All of these.
 Discuss Question
Answer: Option D. -> All of these.

Latest Videos

Latest Test Papers