1. Which of the following is a fundamental principle of Web
Development?
A. Accessibility
B. Complexity
C. Unresponsiveness
D. Obscurity
Answer: a) Accessibility
Rationale: Accessibility is a fundamental principle in web development,
ensuring websites can be used by individuals with disabilities.
2. What does HTML stand for?
A. HyperText Markup Language
B. HighText Markup Language
C. HyperLink Markup Language
D. None of the above
Answer: a) HyperText Markup Language
Rationale: HTML stands for HyperText Markup Language, which is
the standard markup language for creating web pages.
3. Which of the following is used to style a webpage?
A. HTML
B. CSS
C. JavaScript
D. PHP
Answer: b) CSS
Rationale: CSS (Cascading Style Sheets) is used to style and format the
layout of web pages.
4. Which HTTP method is used to submit data to be processed to a
server?
A. GET
,B. POST
C. PUT
D. DELETE
Answer: b) POST
Rationale: The POST method is used to send data to the server for
processing, such as submitting form data.
5. Which of the following is an example of a server-side scripting
language?
A. HTML
B. CSS
C. JavaScript
D. PHP
Answer: d) PHP
Rationale: PHP is a server-side scripting language used to create
dynamic web pages.
6. What is the purpose of JavaScript in web development?
A. To add structure to a webpage
B. To style a webpage
C. To add interactivity to a webpage
D. To store data in a database
Answer: c) To add interactivity to a webpage
Rationale: JavaScript is used to create dynamic and interactive elements
on a webpage.
7. Which of the following is NOT a valid HTML tag?
A.
B.
C.
D.
, Answer: c)
Rationale: is not a valid HTML tag. The correct tag would be
or another semantic tag like .
8. Which CSS property is used to change the background color of an
element?
A. background-color
B. color
C. bg-color
D. fill-color
Answer: a) background-color
Rationale: The background-color property is used in CSS to change the
background color of an element.
9. What does the "box model" in CSS describe?
A. The structure of a website's HTML code
B. The layout of an HTML element's content, padding, border, and
margin
C. The process of styling HTML elements
D. The method to store data in a database
Answer: b) The layout of an HTML element's content, padding, border,
and margin
Rationale: The box model defines the layout of an HTML element in
terms of content, padding, border, and margin.
10. Which of the following is a valid JavaScript variable declaration?
A. var 1name;
B. let $name;
C. const #name;
D. function name;
Answer: b) let $name;
Rationale: JavaScript variables can start with a dollar sign ($) or an
Development?
A. Accessibility
B. Complexity
C. Unresponsiveness
D. Obscurity
Answer: a) Accessibility
Rationale: Accessibility is a fundamental principle in web development,
ensuring websites can be used by individuals with disabilities.
2. What does HTML stand for?
A. HyperText Markup Language
B. HighText Markup Language
C. HyperLink Markup Language
D. None of the above
Answer: a) HyperText Markup Language
Rationale: HTML stands for HyperText Markup Language, which is
the standard markup language for creating web pages.
3. Which of the following is used to style a webpage?
A. HTML
B. CSS
C. JavaScript
D. PHP
Answer: b) CSS
Rationale: CSS (Cascading Style Sheets) is used to style and format the
layout of web pages.
4. Which HTTP method is used to submit data to be processed to a
server?
A. GET
,B. POST
C. PUT
D. DELETE
Answer: b) POST
Rationale: The POST method is used to send data to the server for
processing, such as submitting form data.
5. Which of the following is an example of a server-side scripting
language?
A. HTML
B. CSS
C. JavaScript
D. PHP
Answer: d) PHP
Rationale: PHP is a server-side scripting language used to create
dynamic web pages.
6. What is the purpose of JavaScript in web development?
A. To add structure to a webpage
B. To style a webpage
C. To add interactivity to a webpage
D. To store data in a database
Answer: c) To add interactivity to a webpage
Rationale: JavaScript is used to create dynamic and interactive elements
on a webpage.
7. Which of the following is NOT a valid HTML tag?
A.
B.
C.
D.
, Answer: c)
Rationale: is not a valid HTML tag. The correct tag would be
or another semantic tag like .
8. Which CSS property is used to change the background color of an
element?
A. background-color
B. color
C. bg-color
D. fill-color
Answer: a) background-color
Rationale: The background-color property is used in CSS to change the
background color of an element.
9. What does the "box model" in CSS describe?
A. The structure of a website's HTML code
B. The layout of an HTML element's content, padding, border, and
margin
C. The process of styling HTML elements
D. The method to store data in a database
Answer: b) The layout of an HTML element's content, padding, border,
and margin
Rationale: The box model defines the layout of an HTML element in
terms of content, padding, border, and margin.
10. Which of the following is a valid JavaScript variable declaration?
A. var 1name;
B. let $name;
C. const #name;
D. function name;
Answer: b) let $name;
Rationale: JavaScript variables can start with a dollar sign ($) or an