0% found this document useful (0 votes)
7 views

Past-MidTerm Paper

The document is a mid-term examination paper for the course Web Systems and Technologies (ITEC-518) consisting of multiple-choice questions and coding tasks related to HTML and CSS. It includes questions on HTML tags, CSS properties, and coding exercises for creating HTML content and CSS styles. The exam assesses knowledge of web development fundamentals and practical coding skills.

Uploaded by

devvenome
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)
7 views

Past-MidTerm Paper

The document is a mid-term examination paper for the course Web Systems and Technologies (ITEC-518) consisting of multiple-choice questions and coding tasks related to HTML and CSS. It includes questions on HTML tags, CSS properties, and coding exercises for creating HTML content and CSS styles. The exam assesses knowledge of web development fundamentals and practical coding skills.

Uploaded by

devvenome
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/ 2

Name:_______________________________Roll No: _______________ Session : Morning / Evening

Web Systems and Technologies (ITEC-518)


MID TERM (2023)

Q1. HTML is an acronym for


a) Hyper Terminal Markup Language b) Hyper Text Markup Language
c) Hyper Text Manipulation Language d) Hyper Text Modern Language

Q2. Which CSS property controls the text size?


a) font-style b) text-size c) text-style d)font-size

Q3. Background property in CSS is used for


a) Background color b) Background Text c) Background sound d) Background Image

Q4. The tag used for creating hypertext links is:


a) <br> b) <a> c) <hr> d) <dl>

Q5. Which of the following is the underline tag?


a) <EM> b) <UL> c) <PRE> d) <U>

Q6. What will be the output of following Code?


<HTML>
<BODY>
<HEAD> <Center> Welcome Pakistan </Center> </HEAD>
</BODY>
</HTML>
a) Error in the Code. It will not execute b) Nothing Will be Displayed as HEAD tag is within the body
c) <HEAD> <Center> Welcome Pakistan </Center> </HEAD>, will be printed
d) ‘Welcome Pakistan’ will be printed at the center of page.

Q7. What will be the output of the following HTML code fragment.
<a href="#">MyLink</a>
a) ‘MyLink’ is displayed as a hyperlink, when clicked brings up the ‘Page not Found’ message in the browser.
b) The text ‘MyLink’ is displayed as a hyperlink.
c) The text ‘MyLink’ is displayed as normal text (not as a hyperlink).
d) The text ‘<a href="#">MyLink</a>’ is displayed as it is.
e) Nothing is displayed as a result of this code fragment.

Q8. To create an internal CSS file embedded inside html, which of the following tag?
a) <style> b) <script> c) <link> d) <head> e)<meta>

Q9. In CSS, how to use select an div tag that has class name “heading”
a) div.heading {} b) heading.div { } c) heading { }
d) div:heading {} e) #heading { }

Q10. What is the correct HTML for referring to an external style sheet?
b) <style src=”mystyle.css” rel="text/css" type="stylesheet">
c) <link href="style.css" type="text/css" rel="stylesheet">
d) <style href="style.css" type="text/css" rel="stylesheet">
e) <link src="style.css" rel="text/css" type="stylesheet">

Q11. Where in an HTML document is the correct place to refer to an external style sheet?
a) In <head> tag b) In <body> tag c) In <style> tag d) In <script> tag

Q12. To change background color of a <div> tag, whick CSS style would be used
a) background.div{ background-color:RED} b) div:background{ background-color:RED}
c) div{ background-color:RED} d) div{ color-bk:RED}

Q13. Consider the following two URLs.


1) http://www.google.com/images/logo.gif
2) /images/logo.gif
Identify the correct statement(s) from among the following statements.
a) The first URL is an absolute URL. b) The second URL is an absolute URL
c) The first URL is a relative URL. d) None of the Above

Q14. What does CSS stands for?


a) Cascading Style Sheet b) Computer Style Sheet
c) Cascading Sever Sheet d) Computer Server Socket
Name:_______________________________Roll No: _______________ Session : Morning / Evening
Q15. Which of the following is valid CSS style
a) body Tag {color: black} b) body :: {color = black}
c) body:color {color : black } d) body {color: black}

Q16. The tag used to create a new list item is


a) <li> b) <dl> c) <dd> d) <ul>

Q17. What is the colour of text in a paragraph of an HTML document that uses the above style sheet?
P {color: blue; background-color: white; border-color: red; border-left: solid}
BODY {color: black; border-color: green}
a) blue b) white c) red d) black e) green

Q18. Which CSS property is used to add spaces before the content data
a) Margin b) Padding c) Float d) Border e) DIV

Q19. The space between the content border and the data is set using ___
a) Margin b) Padding c) Float d) Border e) DIV

Q20. To remove underline from a hyperlink text, which property/properties can be used in a Cascading Style Sheet?
a) text-line b) text-decoration c) font-style d) font e) <u>

For each question below select the appropriate answer from the list given on the right (5 Marks)

Q # 21 Use _____ to create a horizontal line on page A) <h> G) <ul>


Q # 22 To have large font with bold heading use ____ B) <hr> H) <picture>
Q # 23 To insert an image in a paragraph tag we use___ C) <h1> I) <img>
Q # 24 To create an unordered list we use ______ D) <h6> J) <ol>
Q # 25 To create a numbered list in html we use ____ E) <heading> K) <li>
F) <p> L) <list>

Q26: Write a HTML code displaying a text “Hello BSIT Student” in the center of the page with Blue in
color (2.5 marks)
____________________________________________________________________________________________________

____________________________________________________________________________________________________

____________________________________________________________________________________________________

____________________________________________________________________________________________________

____________________________________________________________________________________________________

____________________________________________________________________________________________________

____________________________________________________________________________________________________

Q27: Write CSS code to create a Menu button (2.5 marks),


____________________________________________________________________________________________________

____________________________________________________________________________________________________

____________________________________________________________________________________________________

____________________________________________________________________________________________________

____________________________________________________________________________________________________

____________________________________________________________________________________________________

____________________________________________________________________________________________________

____________________________________________________________________________________________________

You might also like