0% found this document useful (0 votes)
11 views6 pages

Web Paper

Read

Uploaded by

Sadia Jahangir
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)
11 views6 pages

Web Paper

Read

Uploaded by

Sadia Jahangir
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/ 6

SIALKOT COLLEGE OF COMMERCE

Department of Computer Science


Pre-University Examination 2024
Discipline: CS Semester: 06
Allowed time: 3 hours Course Code: CSI-401
Max Marks: 100 Web Design and Development

Name: Roll No:

Q:1) Multiple choice questions.

1) Which of these elements is used to create a numbered list?

a) <ul>

b) <ol>

c) <li>

d) <dl>

2) Which CSS property is used to set the space between lines of text?

a) line-height

b) text-spacing

c) letter-spacing

d) word-spacing

3) What is the default value of the position property in CSS?

a) relative

b) absolute

c) fixed

d) static
4) Which HTML tag is used to include an external JavaScript file?

a) <script src="file.js"></script>

b) <js src="file.js"></js>

c) <script file="file.js"></script>

d) <link href="file.js" type="text/javascript">

5) What is the purpose of the <meta> tag in HTML?

a) To define the character set

b) To include JavaScript

c) To create links

d) To add style sheets

6) Which HTML element represents a section of navigation links?

a) <nav>

b) <section>

c) <header>

d) <footer>

7) Which of the following is the correct syntax for a media query in CSS?

a) @media screen and (max-width: 600px) { }

b) @media (screen: max-width: 600px) { }

c) @media (max-width: 600px) { }

d) @media (width: 600px) { }

8) What is the primary purpose of XML?

a) To define the layout of a webpage

b) To structure data in a readable format

c) To handle multimedia content

d) To style documents
9) What is the role of an application server in web application development?

a) To serve static files

b) To process server-side scripts and handle business logic

c) To manage web traffic

d) To create and manage user sessions

10) What is a key feature of Web 2.0?

a) Static web pages

b) User-generated content and interactivity

c) Server-side scripting

d) SSL encryption

11) Which CSS property is used to create a flexible layout structure?

a) display: block;

b) float: left;

c) display: flex;

d) position: absolute;

12) What is a common method for optimizing website performance?

a) Using large, uncompressed images

b) Minimizing CSS and JavaScript files

c) Increasing server response time

d) Adding excessive animations

13) What is the purpose of the <div> tag in HTML?

a) To define a section or division in a document

b) To create a link

c) To insert an image

d) To make text bold


14) Which HTML tag is used to define a table header?

a) <td>

b) <th>

c) <tr>

d) <table>

15) Which tag is used to include a comment in HTML code?

a) <!-- comment -->

b) <comment>

c) /* comment */

d) // comment

16) What does the target="_blank" attribute do in a hyperlink?

a) Opens the link in a new window or tab

b) Opens the link in the same frame

c) Specifies the link to be downloaded

d) Highlights the link text

17) What does the <a> tag in HTML define?

a) An anchor or hyperlink

b) An image

c) A paragraph

d) A form

18) What is the purpose of the <iframe> tag?

a) To embed another document within the current HTML document

b) To create a form field

c) To include a video

d) To define a block of text


19) Which HTML attribute specifies the URL of the document to link to?

a) src

b) href

c) link

d) url

20) What does the alt attribute in an <img> tag represent?

a) Alternate source for the image

b) Alternate text for the image

c) Alternate image style

d) Alternate color of the image

Q:2) (a) What are the main differences between HTTP and HTML?

(b) What are the primary functions of web servers and application servers in web application
deployment? How do they interact with each other?

Q:3) Define these Terms shortly XHTML, XML and CGI?

Q:4) Write HTML and CSS Code to design this Template Below.
Q:5) Write HTML and CSS Code to Design this Template Below.

You might also like