CS311 Midterm Quiz File By Danish Hanif.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 Quiz File By Danish Hanif.pdf for free?

You can preview and download "CS311 Midterm Quiz File By Danish Hanif.pdf" (CS311 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs311-midterm-quiz-file-by-danish-hanif-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

                     ‫‪CS311 Quiz File‬‬
                                                            ‫االسلمومکیلع!‬

  ‫ادیمرکاتوہںہکآپبسریختیےسوہںےگاکیفدونںیکتنحمےکدعبادمحلہلل‬

  ‫وروچلئویوینریٹسےکڈمرٹمااحتمنےکےیلافزلئایتررکیلںیہادیمرکاتوہںےکآپ‬

  ‫بسوٹسڈسٹنےکااحتمانتںیمتہبافدئہدنموہںیگ۔افزلئںیمیسکمسقیکئو ییھ‬

‫یطلغوہیئگوہوتاسےکےیلذعمرتوخاہںیہااشنءاہللذمدیتنحمےسانافزلئئورتہبانبںیئ‬

 ‫ےگ‪-‬آپبسوٹسڈسٹنےسزگارشےہہکامہرےویویٹبلنیچاورویبساٹیئئوافول‬

                                ‫رکںیل‪-‬‬

                     ‫لمکمرپیپزآوکپریمیویبساٹیئہپںیلمےگکنلےچیندایایگےہ‪-‬‬

           ‫‪Here is Website Link:‬‬             ‫‪https://hbdanish.me/‬‬

                ‫‪Here is YouTube Channel Link:‬‬

‫‪https://www.youtube.com/@Danish_Khagga‬‬
                      ‫ئنم‬
   ‫ارگآپولگاانپ الی‪-‬امی‪-‬اسیڈنیہلرکوااناچےتہںیہایااس نبسئوزئزرکوااناچےتہ‬

                                            ‫ںیہوتاسربمنہپواسٹاپیرکںی‪-‬‬

            ‫‪📱+923231731413‬‬
       ‫‪https://wa.me/message/7GG2TH2MZV3OL1‬‬

Question #1:

_________ provides extra information about XML elements.

A) Tags

B) Delimiter

C) Attributes

D) Entities

Answer: C) Attributes

Question #2:

If the DTD is included in your XML source file, it should be wrapped in a DOCTYPE
definition with the following syntax:

A) <DOCTYPE root-element [element-declarations]>

B) <!DOCTYPE [element-declarations]>

C) <DOCTYPE root-element (element-declarations)>

D) <!DOCTYPE root-element [element-declarations]>

Answer: D) <!DOCTYPE root-element [element-declarations]>

Question #3:

Which one is correct syntax to declare zero or one occurrences of child element
“message”:

A) <!ELEMENT note (message+)>

B) <!ELEMENT note (message?)>

C) <!ELEMENT note (message*)>

D) None

Answer: B) <!ELEMENT note (message?)>

Question #4:

Name conflicts in XML elements can easily be avoided using ___________.

A) xml schema

B) name prefix

C) empty elements

D) entities

Answer: B) name prefix

Question #5:

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

A) <! ELEMENT element-name EMPTY>

B) None of the given

C) <! ELEMENT element-name ANY>

D) <! ELEMENT element-name (#PCDATA)>

Answer: C) <! ELEMENT element-name ANY>

Question #6:

Which of the following is not the building block of XML documents?

A) Elements

B) Lists

C) Attributes

D) Entities

Answer: B) Lists

Question #7:

___________ provides methods for creating internal and external links within XML documents.

A) Xpath

B) XLink

C) Xquery

D) Xpointer

Answer: B) XLink

Question #8:

Which of the following is not part of XSL?

A) XQuery

B) XPath

C) XSLT

D) XPointer

Answer: A) XQuery

Question #9:

In DTD, empty elements are declared with the keyword ________.

A) IDLE

B) EMPTY

C) NULL

D) VOID

Answer: B) EMPTY

Question #10:

In XML, the term PCDATA stands for _________.

A) Predefined Character Data

B) Pure Character Data

C) None of the given options

D) Parsed Character Data

Answer: D) Parsed Character Data

Question 1: XML DOM is:

A. Dynamic in nature
B. All of the given
C. Traversable
D. Platform independent

Answer: B. All of the given

Question 2: Parsed Character Data (PCDATA) is a term used about _______ data that
will be parsed by the XML parser.

A. Character
B. Text
C. Element
D. None of the given options

Answer: B. Text

Question 3: Which of the following specifies the type of node?

A. nodeType
B. nodeValue
C. nodeName
D. None of the given options

Answer: A. nodeType

Question 4: __________ evaluates XML document as DOM structure.

A. Compiler
B. Interpreter
C. Parser
D. Translator

Answer: C. Parser

Question 5: Which of the following is used to request data from a server?

A. XMLHttpRequest object
B. DTD
C. XLink
D. XML Schema

Answer: A. XMLHttpRequest object

Question 6: XML files can be stored on an Internet server exactly the same way as
________ files.

A. Java files
B. PHP files
C. HTML files
D. C++ files

Answer: C. HTML files

Question 7: On a server request, the readyState changes from ______.

A. 1 to 4
B. 1 to 5
C. 0 to 4
D. 0 to 3

Answer: D. 0 to 3

Question 8: Which one of the following is not an advantage of XML DOM?

A. It is modifiable
B. Language and Platform independent
C. It is traversable
D. Operational speed is slower than SAX

Answer: D. Operational speed is slower than SAX

Question 9: During a server request, the readyState = 3 means:

A. Request finished and response is ready
B. Server connection established
C. Processing request
D. Request received

Answer: C. Processing request

Question 10: By using the _________, we can loop through a node list.

A. node type
B. title
C. length property
D. None of the given options

Answer: C. length property

More CS311 files

All CS311 files · Midterm Prep 2026 · MCQs Bank