Sail E0 Webinar

MCQs

Total Questions : 103 | Page 1 of 11 pages
Question 1. What does PHP stand for?
1. Personal Home Page
2. Hypertext Preprocessor
3. Pretext Hypertext Processor
4. Preprocessor Home Page
  1.    Both 1 and 3
  2.    Both 2 and 4
  3.    Only 2
  4.    Both 1 and 2
 Discuss Question
Answer: Option D. -> Both 1 and 2
Question 2. PHP files have a default file extension of_______.
  1.    .html
  2.    .xml
  3.    .php
  4.    .ph
 Discuss Question
Answer: Option C. -> .php
Question 3. Which of the following is/are a PHP code editor?
1. Notepad
2. Notepad++
3. Adobe Dreamweaver
4. PDT
  1.    Only 4
  2.    All of the mentioned
  3.    1, 2 and 3
  4.    Only 3
 Discuss Question
Answer: Option B. -> All of the mentioned
Question 4. Which of the following must be installed on your computer so as to run PHP script?
1. Adobe Dreamweaver
2. PHP
3. Apache
4. IIS
  1.    All of the mentioned.
  2.    Only 2
  3.    2 and 3
  4.    2, 3 and 4
 Discuss Question
Answer: Option D. -> 2, 3 and 4
Question 5. Which version of PHP introduced Try/catch Exception?
  1.    PHP 4
  2.    PHP 5
  3.    PHP 5.3
  4.    PHP 6
 Discuss Question
Answer: Option B. -> PHP 5
Question 6. We can use _________ to comment a single line?
1. /?
2. //
3. #
4. /* */
  1.    Only 2
  2.    1, 3 and 4
  3.    2, 3 and 4
  4.    Both 2 and 4
 Discuss Question
Answer: Option C. -> 2, 3 and 4
Question 7. Which of the following php statement/statements will store 111 in variable num?
1. int $num = 111;
2. int mum = 111;
3. $num = 111;
4. 111 = $num;
  1.    Both 1 and 2
  2.    All of the mentioned
  3.    Only 3
  4.    Only 1
 Discuss Question
Answer: Option C. -> Only 3
Question 8. What will be the output of the following php code?
  1.    3
  2.    1+2
  3.    1.+.2
  4.    Error
 Discuss Question
Answer: Option B. -> 1+2
Question 9. What will be the output of the following php code?
  1.    3
  2.    1+2
  3.    Error
  4.    12
 Discuss Question
Answer: Option A. -> 3
Question 10. Which of following variables can be assigned a value to it?
1. $3hello
2. $_hello
3. $this
4. $This
  1.    All of the mentioned
  2.    Only 2
  3.    2, 3 and 4
  4.    2 and 4
 Discuss Question
Answer: Option D. -> 2 and 4

Latest Videos

Latest Test Papers