πŸ“Š Web Technology
Q. What will be the output of the following php code? <?php $num = "1"; $num1 = "2"; print $num+$num1; ?>
  • (A) 3
  • (B) 1+2
  • (C) Error
  • (D) 12
πŸ’¬ Discuss
βœ… Correct Answer: (A) 3
πŸ“Š Web Technology
Q. Who is the father of PHP?
  • (A) Rasmus Lerdorf
  • (B) Willam Makepiece
  • (C) Drek Kolkevi
  • (D) List Barely
πŸ’¬ Discuss
βœ… Correct Answer: (A) Rasmus Lerdorf
πŸ“Š Web Technology
Q. If $a = 12 what will be returned when ($a == 12)? 5: 1 is executed?
  • (A) 12
  • (B) 1
  • (C) Error
  • (D) 5
πŸ’¬ Discuss
βœ… Correct Answer: (D) 5
πŸ“Š Web Technology
Q. Which of the looping statements is/are supported by PHP? i) for loop ii) while loop iii) do-while loop iv) foreach loop
  • (A) i) and ii)
  • (B) i), ii) and iii)
  • (C) All of the above
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) All of the above
πŸ“Š Web Technology
Q. Which of the conditional statements is/are supported by PHP?
i) if statements
ii) if-else statements
iii) if-elseif statements
iv) switch statements
  • (A) Only i)
  • (B) i), ii) and iv)
  • (C) ii), iii) and iv)
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of the above
πŸ“Š Web Technology
Q. Which of the below symbols is a newline character?
  • (A) \r
  • (B) \n
  • (C) /n
  • (D) /r
πŸ’¬ Discuss
βœ… Correct Answer: (B) \n
πŸ“Š Web Technology
Q. Which of the below statements is equivalent to $add += $add ?
  • (A) $add = $add
  • (B) $add = $add +$add
  • (C) $add = $add + 1
  • (D) $add = $add + $add + 1
πŸ’¬ Discuss
βœ… Correct Answer: (B) $add = $add +$add
πŸ“Š Web Technology
Q. We can use ___ to comment a single line? i) /? ii) // iii) # iv) /* */
  • (A) Only ii)
  • (B) i), iii) and iv)
  • (C) ii), iii) and iv)
  • (D) Both ii) and iv)
πŸ’¬ Discuss
βœ… Correct Answer: (C) ii), iii) and iv)
πŸ“Š Web Technology
Q. Which version of PHP introduced Try/catch Exception?
  • (A) PHP 4
  • (B) PHP 5
  • (C) PHP 5.3
  • (D) PHP 6
πŸ’¬ Discuss
βœ… Correct Answer: (B) PHP 5
πŸ“Š Web Technology
Q. Which of the following is/are a PHP code editor? i) Notepad ii) Notepad++ iii) Adobe Dreamweaver iv) PDT
  • (A) Only iv)
  • (B) Only iii)
  • (C) i), ii) and iii)
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) Only iii)