CS201 Quiz-4 By Vu Topper RM.pdf

Verified academic study resource for CS201 (Introduction to Programming) under the Computer Science at Virtual University of Pakistan. This PDF document (Live Quiz Dumps & Solved Objective Bank) covers Quizzes & Objective Exam Scope spanning approximately 180 pages across 8 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.

Course
CS201 – Introduction to Programming
Faculty
Computer Science
Format
PDF
Type
Quiz
Coverage
Quizzes & Objective Exam Scope

Quiz questions often repeat with modified parameter values in both Midterm and Final exams. Practice with our 45-second timed simulator to master exam pacing.

What this file covers — CS201 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)
  5. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  6. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  7. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  8. Final-Term Examination Dossier & Capstone Synthesis — Lectures 42 to 45 (Pages 511 to 585). Final-Term Exam Synthesis (Lectures 23–45 Scope)

Frequently asked questions

Where can I download CS201 Quiz-4 By Vu Topper RM.pdf for free?

You can preview and download "CS201 Quiz-4 By Vu Topper RM.pdf" (CS201 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-quiz-4-by-vu-topper-rm-pdf-2) with 100% free high-speed downloads and zero registration requirements.

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

This document covers Quizzes & Objective Exam Scope across 8 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22, Lectures 23 to 29, Lectures 30 to 36, Lectures 37 to 41, Lectures 42 to 45), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.

What is the passing criteria for CS201 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 CS201 solved past papers and handouts verified for 2026 exams?

Yes. All CS201 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

CS-201 Introduction To Programming
Update MCQS For Quiz-4 File
Solve By Vu Topper RM

        85 To 100% Marks

For More Help Contact What’s app 03224021365

A structure is a collection of _____________under a single name.
  A. Array
  B. Pointer
  C. Datatype
  D. Variables              Page 229

The memory allocation functions return a chunk of memory with a
pointer of type_______________.
  A. Ptr
  B. Void          Page 281
  C. Float
  D. Integer

A file opened with the help of ______________ can be used for both
input and output.
   A. Fstream          Page 220
   B. Ofstream
   C. Iostream
   D. Ifstream

Macros are categorized into _________ type(s).
  A. One
  B. Two           Page 275
  C. Five
  D. Three

    For More Help Contact What’s app 03224021365

All the preprocessors directives starts with ________.
  A. -
  B. &
  C. #           Page 279
  D. $

When we include the header file in the angle brackets the compiler
searches for it in ______________.
   A. All the drives
   B. Current folder
   C. Current directory          Page 269
   D. Specific directory

For accessing data members we use _________ operator
  A. .dot
  B. Plus+
  C. Division /
  D. multiplication *

The dynamic memory allocation uses ___________ whereas static
memory allocation uses _________.
  A. stack , lists
  B. array , stack
  C. Heap,stack
  D. classes , array

     For More Help Contact What’s app 03224021365

A file opened with ________________ is used for input and cannot be
used for output.
   A. Ifstream             Page 220
   B. Ostream
   C. Istream
   D. Fstream

The data, contained in the structure, is defined in the ______________.
  A. None
  B. Parenthesis
  C. Curly braces               Page 229
  D. Inverted commas

student s[100]; means that ‘s’ is an array of hundred students of type
‘student’ structure. What will be the correct statement to access the
‘name’ data element of the fifty sixth student from the array?
   A. s.name[56];
   B. s[55].name;
   C. s.name[55];
   D. s[56].name;

Which of the following code segment represents a left shift operator?
 A. cout<<1;
 B. cin >> number ;
 C. result = number >> 1 ;
 D. result = number << 1 ;         Google

     For More Help Contact What’s app 03224021365

Array indexes start from __________.
  A. 1
  B. 0       Page 266
  C. 2
  D. 3

An instance of a class is called ________________.
  A. Object         Page 324
  B. Structure
  C. Data type
  D. Member function

Which header file is required to use file I/O operations?
 A. <fstream>            Google
 B. <ifstream>
 C. <ostream>
 D. <iostream>

Name the function whose definition can be substituted at a place where
its function call is made _________.
    A. inline function        Google
    B. static function
    C. friend function
    D. volatile function

Default constructor takes _________.
  A. no parameters          Page 315
  B. one parameter
  C. two parameters

     For More Help Contact What’s app 03224021365

  D. character type parameter

_______________function gives the position of the next character to be
read from that file.
   A. Tellp()
   B. Tellg()        Page 215
   C. Seekp()
   D. Seekg()

the sizeof operator is used to determine the size of _____________.
   A. Data
   B. Variable
   C. Data type           Page 235
   D. None of the given

Shifting the binary numbers is similar to shifting the _____ numbers.
  A. Octal
  B. Base 7
  C. Decimal           Page 252
  D. Hexadecimal

__________________function is used to determine the next position to
write a character while writing into a file.
   A. Tellg()
   B. Tellp()        Page 215
   C. Seekp()
   D. Seekg()

     For More Help Contact What’s app 03224021365

We have opened a file stream myfile for reading (getting), myfile.tellg ()
gives us the current get position of the file pointer. It returns a whole
number of type___________
   A. Int
   B. Long         Page 215
   C. Short
   D. Double

What is the use of ios::trunc mode?
 A. To open a file in input mode
 B. To open a file in output mode
 C. To truncate an existing file to half
 D. To truncate an existing file to zero           Google

Structures use ________ for memory allocation.
   A. Heap        Google
   B. Stack
   C. Queue
   D. Cache

Which of the following is not a file opening mode_________________?
 A. Ios::in
 B. Ios::out
 C. Ios::ate
 D. ios::truncate

Structures are syntactically defined with the word_____________.
   A. Struc
   B. Struct         Page 229
   C. Structure

     For More Help Contact What’s app 03224021365

  D. None of the given

Which of the following syntax is best used to delete an array of 5 objects
named ‘string’ allocated using new operator.
  A. Delete string;
  B. Delete [] string;
  C. Delete string [1];
  D. Delete string [5];

Consider the following code segment. Which of the following will be
called while executing code at line 2?
String s1,s2;
S1=s2;
   A. Default operator
   B. Copy constructor
   C. Assignment operator
   D. Parameterized constructor

free function is available in _______________ header file.
   A. stdlib.h
   B. conio.h
   C. string.h
   D. iostream.h

C++ offers ____________ levels of data access control inside a class
  A. Two
  B. Five
  C. Four
  D. Three        Google

     For More Help Contact What’s app 03224021365

The stream-insertion operator is >> and the stream-extraction operator is
<<.
True
False

The concept of ________________ allows us to separate the interface
from the implementation of the class.
   A. Pointers
   B. Inheritance
   C. Polymorphism
   D. Encapsulation           Google

Which of the following is unary operator?
 A. I++
 i-    -
 B. ++i
 C. All of the Given

Identify the correct syntax for making a class friend of other class
   friend ClassOne
   {
   OtherClass;
   private;
   //here we write the data members of ClassOne
   };
lassOne
{friend OtherClass ;
private:
//here we write the data members of ClassOne

     For More Help Contact What’s app 03224021365

};
class ClassOne
{
friend OtherClass ;
private:
//here we write the data members of ClassOne

More CS201 files

All CS201 files · Midterm Prep 2026 · MCQs Bank