Q.1. What does HTTP stand for?
- Hypertext Translation Protocol
- Hypertext Transfer Program
- Hypertext Transfer Protocol
- Hypertext Transmission Protocol
Answer: 3) Hypertext Transfer Protocol.
HTTP is a protocol used for transferring data over the internet, and is the foundation of the World Wide Web.
Q.2. What is the primary purpose of HTML?
- To create dynamic web pages
- To style web pages
- To structure web pages
- To program web applications
Answer: 3) To structure web pages.
HTML (Hypertext Markup Language) is used to structure the content of web pages using tags and elements that define the layout, headings, paragraphs, links, images, and other elements.
Q.3. What does CSS stand for?
- Creative Style Sheets
- Cascading Style Sheets
- Colorful Style Sheets
- Combined Style Sheets
Answer: 2) Cascading Style Sheets.
CSS is used to style the layout and presentation of web pages, including colors, fonts, backgrounds, borders, and other visual elements.
Q.4. Which of the following is not a programming language?
Answer: 1) HTML.
HTML is a markup language, not a programming language. It is used to structure the content of web pages, but does not provide any logic or interactivity.
Q.5. Which programming language is used to add interactivity to web pages?
- Ruby on Rails
Answer: 1) AngularJS.
Q.7. Which of the following is a popular web development framework for PHP?
- Ruby on Rails
Answer: 3) Laravel.
Laravel is a popular back-end web development framework for building web applications using PHP.
Q.8. What is the purpose of the alt attribute in an HTML image tag?
- To specify the location of the image file
- To specify the size of the image
- To specify the caption of the image
- To specify a text description of the image
Answer: 4) To specify a text description of the image.
The alt attribute is used to provide a text description of the image for accessibility purposes, and is displayed in place of the image if it cannot be loaded or viewed.
Q.9. What is the difference between a div and a span in HTML?
- A div is a block-level element, while a span is an inline element
- A div is an inline element, while a span is a block-level element
- A div is used for text, while a span is used for images
- A div and a span are the same thing in HTML
Answer: 1) A div is a block-level element, while a span is an inline element.
Div elements are used to group larger sections of content together, while span elements are used to group smaller portions of text or content within larger elements.
Q.10. What is the file extension for a Cascading Style Sheet (CSS) file?
Answer: 3) .css.
The file extension for a CSS file is .css.
If you have any doubts, ask us on Instagram or comment below.