T4Tutorials .PK

Past Papers CS101 – VU Computer Science Importants MCQs on Module, HTML, XML, and Layered Internet Software

Q#1: What is the purpose of enclosing a word in anchor tags (<a> and </a>) in HTML?
(A) To change the font style of the word
(B) To create a hyperlink to another webpage
(C) To highlight the word in color
(D) To make the word bold
Answer: (B) To create a hyperlink to another webpage

Q#2: What is the function of the href parameter within anchor tags in HTML?
(A) It changes the text color of the enclosed word
(B) It specifies the font size of the enclosed word
(C) It defines the URL of the linked webpage
(D) It sets the background color of the enclosed word
Answer: (C) It defines the URL of the linked webpage

Q#3: In the HTML code for including an image, what does the “src” attribute specify?
(A) The image’s width in pixels
(B) The image’s file format (e.g., JPEG)
(C) The source code of the webpage
(D) The URL of the image file
Answer: (D) The URL of the image file

Q#4: If you want to display an image at the top of an HTML document, where should you insert the <img> tag?
(A) Immediately after the </head> tag
(B) Just before the </body> tag
(C) At the beginning of the <body> tag
(D) At the end of the <body> tag
Answer: (C) At the beginning of the <body> tag

Q#5: What is the primary purpose of XML in representing data as text files?
(A) To define the appearance of data
(B) To store binary data efficiently
(C) To represent data in a readable format
(D) To create markup languages for data representation
Answer: (D) To create markup languages for data representation

Q#6: Which markup language is based on the XML standard and is used for representing web pages?
(A) SGML
(B) XHTML
(C) HTML5
(D) XML2HTML
Answer: (B) XHTML

Q#7: What does the XML standard primarily emphasize in the design of markup languages?
(A) Data compression
(B) Data encryption
(C) Data semantics
(D) Data visualization
Answer: (C) Data semantics

Q#8: In the layered approach to Internet software, how many layers does the Internet software have?
(A) Two layers
(B) Three layers
(C) Four layers
(D) Five layers
Answer: (C) Four layers

Q#9: What is the primary function of the transport layer in the layered approach to Internet software?
(A) Handling physical connections to the network
(B) Managing data transmission between devices
(C) Formatting data for display in web browsers
(D) Creating hyperlinks between webpages
Answer: (B) Managing data transmission between devices

Q#10: Which layer in the layered approach to Internet software is responsible for preparing a message for transmission?
(A) Application layer
(B) Network layer
(C) Transport layer
(D) Link layer
Answer: (C) Transport layer

Q#11: What is the role of the link layer in the layered approach to Internet software?
(A) Initiating the message transmission
(B) Receiving the message at the destination
(C) Preparing the message for transmission
(D) Managing the application layer
Answer: (B) Receiving the message at the destination

Q#12: When an HTML page contains a hyperlink, what does clicking on the link typically do?
(A) Changes the font style of the text
(B) Highlights the text in color
(C) Retrieves and displays another webpage
(D) Makes the text bold
Answer: (C) Retrieves and displays another webpage

Q#13: What is the purpose of the “href” attribute in anchor tags?
(A) To specify the font size of the text
(B) To define the hyperlink’s color
(C) To indicate the URL of the linked webpage
(D) To create a pop-up message
Answer: (C) To indicate the URL of the linked webpage

Q#14: Which HTML tag is used to display images on a webpage?
(A) <img>
(B) <image>
(C) <picture>
(D) <graphics>
Answer: (A) <img>

Q#15: Where should the <img> tag be placed in an HTML document to display an image at the bottom of the webpage?
(A) Immediately after the </head> tag
(B) Just before the </body> tag
(C) At the beginning of the <body> tag
(D) At the end of the <body> tag
Answer: (B) Just before the </body> tag

Q#16: Which of the following is a primary use of XML?
(A) Defining visual styles for webpages
(B) Storing binary data efficiently
(C) Representing data in a structured format
(D) Creating hyperlinks between webpages
Answer: (C) Representing data in a structured format

Q#17: What is HTML based on, and what is its purpose in web development?
(A) HTML is based on XML, and it focuses on data representation
(B) HTML is based on SGML, and it emphasizes data compression
(C) HTML is based on JavaScript, and it enables server-side scripting
(D) HTML is based on XHTML, and it enhances data encryption
Answer: (B) HTML is based on SGML, and it emphasizes data compression

Q#18: In the context of data representation, what does XML prioritize over appearance?
(A) Data visualization
(B) Data compression
(C) Data semantics
(D) Data encryption
Answer: (C) Data semantics

Q#19: How many layers are there in the layered approach to Internet software?
(A) Two layers
(B) Three layers
(C) Four layers
(D) Five layers
Answer: (C) Four layers

Q#20: Which layer in the layered approach to Internet software is responsible for managing data transmission between devices?
(A) Application layer
(B) Transport layer
(C) Network layer
(D) Link layer
Answer: (B) Transport layer

Exit mobile version