Web Application Development MCQs with Answers

Practice important Web Application Development MCQs with answers and explanations.

Multiple Choice Questions

Q11: The file extension for PHP pages is _______.
  • A: .html
  • B: .php
  • C: .phpx
  • D: .htm
View Answer
B

Q12: PHP is not limited to outputting HTML; it can also output _______.
  • A: images and PDF files
  • B: text files only
  • C: videos only
  • D: text and graphics
View Answer
A

Q13: Which tool in the WAMP package handles MySQL administration?
  • A: Apache
  • B: PHP
  • C: PhpMyAdmin
  • D: MySQL
View Answer
C

Q14: What is the main difference between echo and print in PHP?
  • A: echo is faster than print
  • B: print can take multiple arguments
  • C: echo has a return value of 1
  • D: print is faster than echo
View Answer
A

Q15: Which PHP statement is used to output text and can take multiple parameters?
  • A: print
  • B: echo
  • C: var_dump
  • D: include
View Answer
B

Q16: In PHP, which of the following is case-insensitive?
  • A: Keywords, classes, and functions
  • B: Variable names
  • C: Function names
  • D: All of the above
View Answer
A

Q17: What will the following code output? <?php $x = 5; $y = 10; echo $x + $y; ?>
  • A: 15
  • B: 510
  • C: 5+10
  • D: Error
View Answer
A

Q18: Fill in the blank: Variables in PHP start with the _______ sign.
  • A: @
  • B: $
  • C: #
  • D: &
View Answer
B

Q19: What will be the output of the following PHP code? <?php $txt = "Hello!"; echo $txt; ?>
  • A: Hello!
  • B: Hello World!
  • C: Error
  • D: Nothing
View Answer
A

Q20: Which of the following is a valid PHP variable name?
  • A: $1variable
  • B: $_variable
  • C: $variable!
  • D: $Variable Name
View Answer
B

Test Your Knowledge

Take a timed quiz on Web Application Development

🚀 Start Quiz Now