Top 350+ Solved Web Technology MCQ Questions Answer
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)
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
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
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
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
Q. Which of following variables can be assigned a value to it?i) $3helloii) $_helloiii) $thisiv) $This
a. All of the above
b. Only ii)
c. ii), iii) and iv)
d. ii) and iv)
Q. What will be the output of the following PHP code?<?php $a = "clue"; $a .= "get"; echo "$a"; ?>
a. get
b. true
c. false
d. clueget
Q. A----- is whatever you’re using to interact with the internet
a. client
b. HTTP
c. serer
d. navigation
Q. A-----is a computer that responds to requests by serving responses
a. client
b. HTTP
c. serer
d. navigation
Q. The-------is about communication between web clients and web servers.
a. client
b. HTTP
c. serer
d. www
Q. The example of--------are often browsers (Chrome, Edge, Safari).
a. client
b. HTTP
c. serer
d. navigation