CS311 midterm papers-1.pdf

Verified academic study resource for CS311 (Introduction to Web Services Development) under the Computer Science at Virtual University of Pakistan. This PDF document (Midterm Solved Past Paper & Revision File) covers Mid-Term Exam Scope (Lectures 1 to 22) spanning approximately 240 pages across 4 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.

Course
CS311 – Introduction to Web Services Development
Faculty
Computer Science
Format
PDF
Type
Midterm
Coverage
Mid-Term Exam Scope (Lectures 1 to 22)
Tags
MIDTERM

Focus on core definitions and repeated MCQs from Lectures 1–22. Remember that scoring in the First Half builds your safety buffer toward the mandatory 20% Two-Half passing rule in CS311.

What this file covers — CS311 syllabus roadmap

  1. Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
  2. Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
  3. Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
  4. Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)

Frequently asked questions

Where can I download CS311 midterm papers-1.pdf for free?

You can preview and download "CS311 midterm papers-1.pdf" (CS311 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs311-midterm-papers-1-pdf) with 100% free high-speed downloads and zero registration requirements.

What syllabus chapters and lectures are covered in this CS311 file?

This document covers Mid-Term Exam Scope (Lectures 1 to 22) across 4 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.

What is the passing criteria for CS311 under the VU 20% Two-Half Rule?

Under official Virtual University regulations, students must score at least 20% in the First Half (Quizzes, Assignments, GDBs, and Midterm combined) AND independently at least 20% in the Final-Term examination paper. Scoring under 20% in the final exam results in an automatic F grade regardless of earlier marks.

Are CS311 solved past papers and handouts verified for 2026 exams?

Yes. All CS311 materials on MIHORA VU—including Moaaz, Waqar Siddhu, and team archives—are reviewed against the current VU syllabus to help students prepare for 2026 Midterm, Final-Term, and online quiz examinations.

Inside this file

First quiz cs311 December 13-12-2022

1: What does XML stand for?

Answer Extensible Markup Language.
2: Which of the following is not part of XSL?

XSL consists of four parts:

   a) XSLT - a language for transforming XML documents
   b) XPath - a language for navigating in XML documents
   c) XSL-FO - a language for formatting XML documents (discontinued in 2013)
   d) XQuery - a language for querying XML documents

Is se alag koi ay to wo is ka answer nai hu ga because wo option mjy abi yad nai.

Which of following programming language is similar to XML?

Answer:
JavaScript is the programming language of HTML and the Web. It looks pretty different from
XML. HTML is the standard markup language for Web pages. It is very similar to XML, though
XML is more structured.

Use _________ keyword if you don't have an option for a default value ,but still want to force
the attribute to be present.

Answer

Use the #REQUIRED keyword if you don't have an option for a default value, but still want to
force the attribute to be present

_________ provides extra information about XML elements.

Answer

: Attributes provides extra information about XML elements.

In XML the term PCDATA Stands for _________.

Answer

Parsed Character Data (PCDATA) is a data definition that originated in Standard Generalized
Markup Language (SGML), and is used also in Extensible Markup Language (XML) Document
Type Definition (DTD) to designate mixed content XML elements.

Which of the following is the correct closing tag of <Message>?

Answer

XML tags are case sensitive. The tag <Letter> is different from the tag <letter>.

Opening and closing tags must be written with the same case:

<Message>This is incorrect</message>

<message>This is correct</message>

"Opening and closing tags" are often referred to as "Start and end tags". Use whatever you

prefer. It is exactly the same thing.

which of the following is representing the empty element tag?

Answer:

An element with no content is said to be empty.

In XML, you can indicate an empty element like this:

<element></element>

You can also use a so called self-closing tag:

<element />

Which of the following DTD statement indicates that an ELEMENT can contain any
combination of parsable data?

Please check answer to googal 

In xml, some characters have a special meaning those are called ______.

Answer:

 Some Characters have a special meaning in XML those are called as entities. Entities are the
placeholders in XML.

1. What does XML stand for?

   a. Extensible Markup Language

   b. Extra Modern Link

   c. Example Markup Language

   d. X-Markup Language

2. There is a way of describing XML data, how?

   a) XML uses a DTD to describe the data

   b) XML uses XSL to describe data

   c) XML uses a description node to describe data

3. XML's goal is to replace HTML

           a. False
           b. True

4. What is the correct syntax of the declaration which defines the XML?

Version?

   a) <xml version="1.0" />

   b) <?xml version="1.0" />

   c) <? Xml version="1.0"?>

5. What does DTD stand for?

   a) Document Type Definition

   b) Dynamic Type Definition

   c) Do The Dance

   d) Direct Type Definition

6. Is this a "well formed" XML document?

<? Xml version="1.0"?>

   a) <note>
   b) <to>Tove</to>
   c) <from>Jani</from>
   d) <heading>Reminder</heading>
   e) <Body>Don't forget me this weekend!</body>

</note>

   a) Yes

   b) No

7. Is this a "well formed" XML document?

<? Xml version="1.0"?>

<To>Tove</to>

<From>Jani<
/from>
<Heading>Reminder</heading>
<Body>Don't forget me this weekend!</body>
    a) Yes
    b) No
8. Which statement is true?
    a) All the statements are true
    b) All XML elements must be properly closed
    c) All XML documents must have a DTD
    d) All XML elements must be lower case
10. XML preserves white spaces
    a) False
    b) True
11. Is this a "well formed" XML document?
<? Xml version="1.0"?>
<Note>
<to age="29">Tove</to>
<From>Jani</from>
</note>
                     a) Yes
                     b) No
12. Is this a "well formed" XML document?
<? Xml version="1.0"?>
<Note>
<to age=29>Tove</to>
<From>Jani</from>
</note>
             a) No

          b) Yes
13. XML elements cannot be empty
          a. True
          b. False
14. Which is not a correct name for an XML element?
    a) <h1>
    b) <1dollar>
    c) <Note>
    d) c)All 3 names are incorrect

15. Which is not a correct name for an XML element?

   a) All 3 names are incorrect
   b) <first name>
   c) <age>
   d) <NAME>

16. Which is not a correct name for an XML element?

   a) All 3 names are incorrect
   b) <xmldocument>
   c) <7eleven>
   d) <phone number>

17. XML attribute values must always be enclosed in quotes

   a) False
   b) True

18. What does XSL stand for?

   a) extra Style Language
   b) extensible Style sheet Language
   c) extensible Style Listing
   d) expandable Style Language

19. What is a correct way of referring to a style sheet called "mystyle.xsl" ?

   a) <? Xml-style sheet type="text/xsl" href="mystyle.xsl" ?>
   b) <link type="text/xsl" href="mystyle.xsl" />
   c) <style sheet type="text/xsl" href="mystyle.xsl" />

20. For the XML parser to ignore a certain section of your XML document,

which syntax is correct?

   a) <CDATA> Text to be ignored </CDATA>
   b) <xml:CDATA[ Text to be ignored ]>
   c) <PCDATA> Text to be ignored </PCDATA>
   d) <![CDATA[ Text to be ignored ]]>

21. Which statement is true?

   a) Attributes must occur in defined order
   b) None of the statements are true
   c) Attributes must always be present
   d) Both statements are true

22. What are XML entities used for?

   a) Entities define shortcuts to standard attributes
   b) Entities define shortcuts to standard text or special Chirac
   c) Entities define shortcuts to standard elements

23. Which of the following XML fragments is well-formed?

   a) <customer id=3456><name>John Smith</name></customer>
   b) <customer id="3456"><address/><zip code="3456"/></customer>

24. What is an XML instance?

   a) An XML element
   b) An XML attribute
   c) An XML document

More CS311 files

All CS311 files · Midterm Prep 2026 · MCQs Bank