MCQ Farah Toumi
MCQ Farah Toumi
MCQ Farah Toumi
a) JavaScript
b) HTML
c) CSS
d) Python
Answer: c) CSS
a) HTML
b) CSS
c) Python
d) JavaScript
Answer: d) JavaScript
5. What is the purpose of a front-end web development framework like React or Angular?
a) To manage databases and server-side logic
6. Which part of web development is responsible for handling data storage and retrieval?
a) Front-end development
b) Back-end development
c) Full-stack development
d) Middleware development
7. What is the primary function of a web server in the context of web development?
8. Which of the following is not a back-end programming language commonly used in web
development?
a) PHP
b) Ruby
c) Java
d) HTML
Answer: d) HTML
9. Which type of web development allows for both front-end and back-end development using a
single language?
a) Full-stack development
b) Cross-platform development
c) Multi-language development
d) Hybrid development
d) To create hyperlinks
11. What is the correct syntax for creating a CSS class called "highlight" with a red text color?
a) <a>
b) <link>
c) <h1>
d) <p>
Answer: a) <a>
13. What is the purpose of the "alt" attribute in an <img> tag?
b) It provides alternative text if the image fails to load ( additional description of the image ).
14. Which CSS property is used to control the spacing between elements in a layout?
a) padding
b) margin
c) spacing
d) border
Answer: b) margin
a) React
b) Angular
c) Vue.js
d) Django
Answer: b) Angular
16. Which of the following is a server-side scripting language commonly used for web
development?
a) HTML
b) CSS
c) Python
d) JavaScript
Answer: c) Python
17. What is the purpose of the "form" element in HTML?
a) It defines a hyperlink
18. Which CSS property is used to change the font size of text?
a) font-size
b) text-size
c) font-style
d) text-style
Answer: a) font-size
20. Which of the following is used to store and query data in a tabular format in web
development?
a) Database
b) API
c) JSON
d) XML
Answer: a) Database
21. What does the acronym "REST" stand for in the context of web development?
22. Which JavaScript function is used to change the content of an HTML element?
a) modify()
b) change()
c) update()
d) innerHTML()
Answer: d) innerHTML()
24. Which HTTP method is typically used to retrieve data from a web server?
a) GET
b) POST
c) PUT
d) DELETE
Answer: a) GET
25. Which of the following is an example of a front-end web development framework/library?
a) Express.js
b) Django
c) Flask
d) React.js
Answer: d) React.js
a) <table>
b) <div>
c) <form>
d) <img
>
Answer: a) <table>
28. Which of the following is NOT a commonly used web development framework for Python?
a) Flask
b) Django
c) Express.js
d) Pyramid
Answer: c) Express.js
29. What is the purpose of the "viewport" meta tag in HTML?
b) To set the width and initial scale of the web page for different devices
Answer: b) To set the width and initial scale of the web page for different devices
30. Which CSS property is used to create rounded corners for an HTML element?
a) border-radius
b) corner-radius
c) rounded-corners
d) box-radius
Answer: a) border-radius
*Which of the following technologies is primarily used for defining the structure and content
of a webpage?
a) HTML
b) CSS
c) JavaScript
Answer:
a) HTML
Question 1:
Answer:
Question 2:
Which HTML tag is used to link an external JavaScript file to an HTML document?
a) <script>
b) <link>
c) <js>
d) <javascript>
Answer:
a) <script>
Question 3:
a) text-color
b) color
c) font-color
d) text-style
Answer:
b) color
Question 4:
a) <list>
b) <ul>
c) <ol>
d) <li>
Answer:
b) <ul>
Question 5:
Answer:
Question 6:
Which CSS property is used to control the space between the elements' borders?
a) margin
b) padding
c) border-spacing
d) spacing
Answer:
a) margin
Question 7:
Answer:
Question 8:
Answer:
Question 9:
a) <link>
b) <href>
c) <a>
d) <hyperlink>
Answer:
c) <a>
Question 10:
Answer:
Question 11:
a) variable
b) var
c) declare
d) let
Answer:
b) var
Question 12:
Answer:
Question 13:
a) Element's width
b) Element's height
c) Element's position in the stacking order
d) Element's color
Answer:
Question 14:
a) <style>
b) <css>
c) <inlinestyle>
d) <link>
Answer:
a) <style>
Question 15:
Question 16:
c) Centers an element
Answer:
Question 17:
a) <script src="script.js"></script>
b) <javascript>...</javascript>
c) <script>...</script>
d) onclick="myFunction()"
Answer:
b) <javascript>...</javascript>
Question 18:
Answer: