Section 1: MCQs
- Inside which tag is each item of an HTML list written?
a) <it> b) <li> c) <item> d) <ld> - Which symbol does an ID selector begin with in CSS?
a) . b) & c) * d) # - Which tag defines a row in an HTML table?
a) <td> b) <tr> c) <th> d) <row> - What is the process of building websites and web applications called?
a) Web development b) Data mining c) Networking d) Troubleshooting - Which tag is used to place an image on a web page?
a) <picture only> b) <photo> c) <img> d) <image file> - What is the range of HTML heading tags?
a) <h1> to <h6> b) <h1> to <h10> c) <h0> to <h5> d) <h2> to <h8> - Which tag sets the title that appears on the browser tab?
a) <title> b) <h6> c) <p> d) <img> - With which declaration does every HTML document begin?
a) <html end> b) <start html> c) <doc html> d) <!DOCTYPE html> - Which is the correct syntax of a CSS rule?
a) selector {property: value;} b) selector: {property=value;} c) selector {property=value} d) selector: {property: value;} - In which tag is the visible content of a web page placed?
a) <body> b) <head> c) <title> d) <meta> - In how much time did Brendan Eich create JavaScript?
a) 10 days b) 10 years c) 100 days d) 5 hours - Which HTML attribute is used to apply inline styles?
a) class b) style c) font d) styles - What does the src attribute specify in the <img> tag?
a) The path of the image b) The sound of the page c) The page speed d) The font size - Which markup is used for writing comments in HTML?
a) /* */ b) /–/ c) <– d) <!– –> - Which keywords are used to declare variables in JavaScript?
a) var, let, const b) int, float, char c) dim, set, get d) new, old, temp - Which of the following is not a valid HTML tag?
a) <div> b) <span> c) <head> d) <foot> - What is a developer who works on both the front-end and back-end called?
a) Half developer b) Designer only c) Tester only d) Full-stack developer - What does the alt attribute of the <img> tag provide?
a) A text description of the image b) The image color c) The border size d) The link address - Which symbol does a class selector begin with in CSS?
a) # b) @ c) $ d) . - Which HTML tag creates an unordered list?
a) <ol> b) <ul> c) <li> d) <list> - Which tag is used to insert a line break in HTML?
a) <lb> b) <break> c) <br> d) <nl> - Inside which HTML tag is JavaScript code written?
a) <style> b) <js> c) <java> d) <script> - What does HTML stand for?
a) Hyper Text Markup Language b) High Tech Modern Language c) Home Tool Markup Language d) Hyperlink Text Making Language - Which extension is used when saving an external CSS file?
a) .css b) .html c) .js d) .doc - Which CSS method is written directly inside an HTML tag?
a) Inline style b) External style c) Internal style d) Imported style - Which part of web development deals with what users see and interact with?
a) Front-end development b) Back-end development c) Database only d) Server only - CSS Flexbox is a layout tool that helps arrange items in what way?
a) In printed pages only b) In flexible rows and columns c) In databases d) In emails only - Which company later acquired Hotmail, one of the earliest web-based email services?
a) Microsoft b) Google c) Apple d) Amazon - What does back-end development manage?
a) Only colors b) Only images c) Only fonts d) Servers, databases, and application logic - Which attribute of the <a> tag specifies where a link points to?
a) href b) src c) alt d) style - What is the full form of CSS?
a) Cascading Style Sheets b) Computer Style Sheets c) Creative Style Sheets d) Colorful Style Sheets - Which tag is used to write a paragraph in HTML?
a) <par> b) <pg> c) <p> d) <text> - Which tag displays a horizontal line in HTML?
a) <br> b) <hr> c) <line> d) <hline> - Which tag defines a data cell in an HTML table?
a) <tr> b) <td> c) <table> d) <cell> - Which tag creates an ordered (numbered) list?
a) <ul> b) <ol> c) <dl> d) <li> only - Inside which tag in the head section is internal CSS written?
a) <style> b) <css> c) <script> d) <design> - Which tag is used to create a hyperlink in HTML?
a) <link> b) <a> c) <href> d) <nav> - Which of the following is a text editor used for writing HTML?
a) MS Paint b) Notepad++ c) Calculator d) Media Player - Which JavaScript function shows a popup message box?
a) print() b) show() c) popup() d) alert()
Short Questions
Write short answers of any 25 parts of the question. (2×8=16)
(i) How do you add a comment in HTML?
(ii) How do you declare a variable in JavaScript? Give an example.
(iii) What is the purpose of the <title> tag?
(iv) Explain the difference between an ordered list and an unordered list in HTML.
(v) Write any three reasons to learn web development.
(vi) What is a function in JavaScript?
(vii) What is the difference between the <th> and <td> tags?
(viii) What is the purpose of the alt attribute in the <img> tag?
(ix) Write the use of the <p> and <br> tags.
(x) What is the function of the <div> tag in HTML?
(xi) How is an image inserted into a web page? Write an example.
(xii) What is external CSS? How is it linked to an HTML file?
(xiii) What is HTML? Why is it called a markup language?
(xiv) What is the difference between the <ol> and <ul> tags?
(xv) What is inline CSS? Give an example.
(xvi) What is the purpose of the <head> tag in HTML?
(xvii) What are the different ways to apply CSS to an HTML document?
(xviii) Write the general syntax of a CSS rule.
(xix) Describe the syntax for creating a hyperlink in HTML.
(xx) What is back-end development?
(xxi) What is an ID selector in CSS?
(xxii) How many heading levels are there in HTML? Which is the largest?
(xxiii) What is internal CSS?
(xxiv) Explain the box model in CSS.
(xxv) How can you include JavaScript in an HTML file?
(xxvi) Which tags are used to create a table in HTML?
(xxvii) What is front-end development?
(xxviii) Who is a full-stack developer?
(xxix) Name any two text editors and any two web browsers used in web development.
(xxx) What is JavaScript? Why is it used in web pages?
(xxxi) What is the purpose of the <!DOCTYPE html> declaration?
(xxxii) What is CSS? Why is it important?
(xxxiii) What is the difference between the <head> and <body> tags?
(xxxiv) What is a class selector in CSS?
(xxxv) Define web development.
(xxxvi) What does the alert() function do in JavaScript?
(xxxvii) What is CSS Grid?
(xxxviii) Write the basic structure of an HTML document.
(xxxix) What is CSS Flexbox used for?
(xl) Write the HTML code to create a link to www.example.com.
(xli) What is the use of the <table> tag in HTML?
Long Questions
- Explain the process of setting up a development environment for web development. By disscussing the necessary softwares and tools.
- Explain the process of creating a responsive web page using java script with the help of an examples.
- Create a basic HTML page that includes a header, a paragraph, an image, and a hyperlink.
- Create a table using HTML which contains 3 rows and 2 column?
- Describe any three CSS selectors and provide examples of each.
Answer Key
- b) <li>
- d) #
- b) <tr>
- a) Web development
- c) <img>
- a) <h1> to <h6>
- a) <title>
- d) <!DOCTYPE html>
- a) selector {property: value;}
- a) <body>
- a) 10 days
- b) style
- a) The path of the image
- d) <!– –>
- a) var, let, const
- d) <foot>
- d) Full-stack developer
- a) A text description of the image
- d) .
- b) <ul>
- c) <br>
- d) <script>
- a) Hyper Text Markup Language
- a) .css
- a) Inline style
- a) Front-end development
- b) In flexible rows and columns
- a) Microsoft
- d) Servers, databases, and application logic
- a) href
- a) Cascading Style Sheets
- c) <p>
- b) <hr>
- b) <td>
- b) <ol>
- a) <style>
- b) <a>
- b) Notepad++
- d) alert()
