0% found this document useful (0 votes)
40 views8 pages

cs202 Midterm Mcqs With Reference Solved by Arslan 1

This document is a midterm solved paper reference for CS-202 fundamentals of front end development, containing multiple-choice questions related to HTML. It covers topics such as HTML elements, attributes, and their correct usage. The questions include definitions, syntax, and functionalities of various HTML components.

Uploaded by

sadiqnimra101
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views8 pages

cs202 Midterm Mcqs With Reference Solved by Arslan 1

This document is a midterm solved paper reference for CS-202 fundamentals of front end development, containing multiple-choice questions related to HTML. It covers topics such as HTML elements, attributes, and their correct usage. The questions include definitions, syntax, and functionalities of various HTML components.

Uploaded by

sadiqnimra101
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

CS-202 fundamentals of front end development

Midterm Solved Paper Reference

1. What does HTML stand for?

 Hyper Text Markup Language


 Hyperlinks and Text Markup Language
 Home Tool Markup Language
2. Who is making the Web standards?

 Microsoft
 The World Wide Web Consortium
 Google
 Mozilla
3. Choose the correct HTML element for the largest heading:

 <h1>
 <h6>
 <head>
 <heading>
4. What is the correct HTML element for inserting a line break?

 <lb>
 <br>
 <break>
5. What is the correct HTML for adding a background color?

 <background>yellow</background>
 <body style="background-color:yellow;">
 <body bg="yellow">

VU APEX CAMPUS vuapex.com.pk vuapex.pk


Contact Us: 0322-8877744
6. Choose the correct HTML element to define important text

VU APEX CAMPUS vuapex.com.pk vuapex.pk


Contact Us: 0322-8877744
 <strong>
 <important>
 <b>
 <i>
7. Choose the correct HTML element to define emphasized text

 <i>
 <em>
 <italic>
8. What is the correct HTML for creating a hyperlink?

 <a name="http:// www.vukiduniya.blogspot.com"> VuKiDuniya.com</a>


 <a>http:// www.vukiduniya.blogspot.com </a>
 <a url="http://www.vukiduniya.blogspot.com"> VuKiDuniya.com</a>
 <a href="http:// www.vukiduniya.blogspot.com ">Vu Ki Duniya</a>
9. Which character is used to indicate an end tag?

 ^
 /
 <
 *
10. How can you open a link in a new tab/browser window?

 <a href="url" target="new">


 <a href="url" new>
 <a href="url" target="_blank">
11. Which of these elements are all <table> elements?

 <table><tr><tt>
 <thead><body><tr>

VU APEX CAMPUS vuapex.com.pk vuapex.pk


Contact Us: 0322-8877744
 <table><tr><td>
 <table><head><tfoot>

VU APEX CAMPUS vuapex.com.pk vuapex.pk


Contact Us: 0322-8877744
12. How can you make a numbered list?

 <list>
 <dl>
 <ol>
 <ul>
13. How can you make a bulleted list?

 <ol>
 <dl>
 <ul>
 <list>
14. What is the correct HTML for making a checkbox?

 <input type="checkbox">
 <check>
 <input type="check">
 <checkbox>
15. What is the correct HTML for making a text input field?

 <textfield>
 <input type="textfield">
 <input type="text">
 <textinput type="text">
16. What is the correct HTML for making a drop-down list?

 <input type="list">
 <list>
 <select>
 <input type="dropdown">
17. What is the correct HTML for making a text area?

 <input type="textarea">

VU APEX CAMPUS vuapex.com.pk vuapex.pk


Contact Us: 0322-8877744
 <textarea>
 <input type="textbox">
18. What is the correct HTML for inserting an image?

 <img src="image.gif" alt="MyImage">


 <image src="image.gif" alt="MyImage">
 <img alt="MyImage">image.gif</img>
 <img href="image.gif" alt="MyImage">
19. What is the correct HTML for inserting a background image?

 <body style="background-image:url(background.gif)">
 <body bg="background.gif">
 <background img="background.gif">
20. Which HTML element defines the title of a document?

 <head>
 <title>
 <meta>
21. Which HTML attribute specifies an alternate text for an image, if the image cannot be
displayed?

 longdesc
 title
 src
 alt
22. Which doctype is correct for HTML5?

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN"


"http://www.w3.org/TR/html5/strict.dtd">
 <!DOCTYPE html>
 <!DOCTYPE HTML5>

VU APEX CAMPUS vuapex.com.pk vuapex.pk


Contact Us: 0322-8877744
23. Which HTML element is used to specify a footer for a document or section?

VU APEX CAMPUS vuapex.com.pk vuapex.pk


Contact Us: 0322-8877744
 <section>
 <bottom>
 <footer>
24. What is the correct HTML element for playing video files?

 <movie>
 <media>
 <video>
25. What is the correct HTML element for playing audio files?

 <audio>
 <sound>
 <mp3>
26. The HTML global attribute, "contenteditable" is used to:

 Specify whether the content of an element should be editable or not


 Return the position of the first found occurrence of content inside a string
 Specifies a context menu for an element. The menu appears when a user right-clicks on
the element
 Update content from the server
27. In HTML, onblur and onfocus are:

 Event attributes
 HTML elements
 Style attributes

VU APEX CAMPUS vuapex.com.pk vuapex.pk


Contact Us: 0322-8877744

You might also like