CS311-Midterm-2019.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-2019.pdf for free?

You can preview and download "CS311-Midterm-2019.pdf" (CS311 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs311-midterm-2019-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

          Rana Abubakar Khan
                        If you want to learn computer programming then contact with me

                                            truefriendlion@gmail.com

                        JOIN FB GROUP FOR VU HELP
                   www.facebook.com/groups/vu1234/
                                           CS311 Mid Term Past Paper

CS311 17-JUNE-2019

1-define entities < > & in reference relation in xml. 3 marks

2-in xml open() function has 3 arguments define each value and usage. 3 marks

3-write xml document for the following tree image uploaded. 5 marks

4- i)create element "bowler", ii)create attribute "age" set value 35. 5 marks

5- create xml document of following

<?xml version="1.0" encoding="UTF-8" ?>

<country>

<city> lahore</city><city>islamabad</city>

.......

</country>

here .... means more cities which are saved in php array $cities.

                                                         1

    1. What does XML stand for?
   eXtensible Markup Language
   eXtra Modern Link
   Example Markup Language
   X-Markup Language

    2. There is a way of describing XML data, how?
   XML uses a DTD to describe the data
   XML uses XSL to describe data
   XML uses a description node to describe data

    3. XML's goal is to replace HTML
   False
   True

    4. What is the correct syntax of the declaration which defines the XML version?
   <xml version="1.0" />
   <?xml version="1.0" />
   <?xml version="1.0"?>

    5. What does DTD stand for?
   Document Type Definition
   Dynamic Type Definition
   Do The Dance
   Direct Type Definition

    6. Is this a "well formed" XML document?
    <?xml version="1.0"?>
    <note>

                                                2

    <to>Tove</to>
    <from>Jani</from>
    <heading>Reminder</heading>
    <body>Don't forget me this weekend!</body>
    </note>
   Yes
   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>
   Yes
   No

    8. Which statement is true?
   All the statements are true
   All XML elements must be properly closed
   All XML documents must have a DTD
   All XML elements must be lower case

    9. Which statement is true?
   All the statements are true
   XML documents must have a root tag
   XML tags are case sensitive
   XML elements must be properly nested

    10. XML preserves white spaces

                                               3

   False
   True

    11. Is this a "well formed" XML document?
    <?xml version="1.0"?>
    <note>
    <to age="29">Tove</to>
    <from>Jani</from>
    </note>
   Yes
   No

    12. Is this a "well formed" XML document?
    <?xml version="1.0"?>
    <note>
    <to age=29>Tove</to>
    <from>Jani</from>
    </note>
   No
   Yes

    13. XML elements cannot be empty
   True
   False

    14. Which is not a correct name for an XML element?
   <h1>
   <1dollar>
   <Note>
   All 3 names are incorrect

                                                4

    15. Which is not a correct name for an XML element?
   All 3 names are incorrect
   <first name>
   <age>
   <NAME>

    16. Which is not a correct name for an XML element?
   All 3 names are incorrect
   <xmldocument>
   <7eleven>
   <phone number>

    17. XML attribute values must always be enclosed in quotes
   False
   True

    18. What does XSL stand for?
   eXtra Style Language
   eXtensible Stylesheet Language
   eXtensible Style Listing
   eXpandable Style Language

    19. What is a correct way of referring to a stylesheet called "mystyle.xsl" ?
   <?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?>
   <link type="text/xsl" href="mystyle.xsl" />
   <stylesheet type="text/xsl" href="mystyle.xsl" />

    20. For the XML parser to ignore a certain section of your XML document, which syntax is
    correct?
   <CDATA> Text to be ignored </CDATA>
   <xml:CDATA[ Text to be ignored ]>

                                                  5

   <PCDATA> Text to be ignored </PCDATA>
   <![CDATA[ Text to be ignored ]]>

    21. Which statement is true?
   Attributes must occur in defined order
   None of the statements are true
   Attributes must always be present
   Both statements are true

    22. What are XML entities used for?
   Entities define shortcuts to standard attributes
   Entities define shortcuts to standard text or special characters
   Entities define shortcuts to standard elements

    23. Which of the following XML fragments is well-formed?
   <customer id=3456><name>John Smith</name></customer>
   <customer id="3456"><address/><zip code="3456"/></customer>

    24. What is an XML instance?
   An XML element
   An XML attribute
   An XML document

    25. Which XML DOM object represents a node in the node tree?
   The nodeList object
   The node object
    The document object

    ………………………………………………….

                                                 6

Question no 1
During a server request, the readyState changes from 0 to 4:
Question no 2
replacement-entity of > , < , or &
Question no 3
Create new element node

What is Valid XML document Status of 404 and 200 difference batanna tha Difference between XML and xhtml
PHP ma xml ka code Tha wo diaply karwanna tha Ak last Tha new element or attribute create Karna thq

REPLY BY MUHAMMAD UMER ON DECEMBER 10, 2017 AT 8:14PM

  Question no 1

  During a server request, the readyState changes from 0 to 4:

  Question no 2

  replacement-entity of > , < , or &

  Question no 3

  Create new element node

                                                        7

8

More CS311 files

All CS311 files · Midterm Prep 2026 · MCQs Bank