Sail E0 Webinar

MCQs

Total Questions : 67 | Page 4 of 7 pages
Question 31. What will be the output of the following PHP code ?
  1.    hello
  2.    infinite loop
  3.    hihello
  4.    error
 Discuss Question
Answer: Option A. -> hello
Question 32. What will be the output of the following PHP code ?
  1.    Hi is printed 8 times, hello 7 times and then hi 2 times
  2.    Hi is printed 10 times, hello 7 times
  3.    Hi is printed once, hello 7 times
  4.    Hi is printed once, hello 7 times and then hi 2 times
 Discuss Question
Answer: Option D. -> Hi is printed once, hello 7 times and then hi 2 times
Question 33. What will be the output of the following PHP code ?
  1.    4hello4hello4hello4hello4hello…..infinite
  2.    5hello5hello5hello5hello5hello…..infinite
  3.    no output
  4.    error
 Discuss Question
Answer: Option A. -> 4hello4hello4hello4hello4hello…..infinite
Question 34. What will be the output of the following PHP code ?
  1.    5
  2.    555555555…infinitely
  3.    54321
  4.    error
 Discuss Question
Answer: Option B. -> 555555555…infinitely
Question 35. What will be the output of the following PHP code ?
  1.    54321111111….infinitely
  2.    555555555…infinitely
  3.    54321
  4.    5
 Discuss Question
Answer: Option A. -> 54321111111….infinitely
Question 36. What will be the output of the following PHP code ?
  1.    1234567891011121314….infinitely
  2.    01234567891011121314…infinitely
  3.    1
  4.    0
 Discuss Question
Answer: Option A. -> 1234567891011121314….infinitely
Question 37. What will be the output of the following PHP code ?
  1.    1234567891011121314….infinitely
  2.    01234567891011121314…infinitely
  3.    no output
  4.    error
 Discuss Question
Answer: Option C. -> no output
Question 38. What will be the output of the following PHP code ?
  1.    00000000000000000000….infinitely
  2.    -1-1-1-1-1-1-1-1-1-1…infinitely
  3.    no output
  4.    error
 Discuss Question
Answer: Option A. -> 00000000000000000000….infinitely
Question 39. What will be the output of the following PHP code ?
  1.    210
  2.    10
  3.    no output
  4.    infinite loop
 Discuss Question
Answer: Option A. -> 210
Question 40. What will be the output of the following PHP code ?
  1.    210
  2.    10
  3.    no output
  4.    infinite loop
 Discuss Question
Answer: Option D. -> infinite loop

Latest Videos

Latest Test Papers