CS201LatestSolvedMCQs.pdf

Verified academic study resource for CS201 (Introduction to Programming) under the Computer Science at Virtual University of Pakistan. This PDF document (Mega Solved MCQs Question Bank) covers Full Course Curriculum 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
MCQ Bank
Coverage
Full Course Curriculum

Cross-verify solutions against official lecture handouts. Practice active recall before checking answers to ensure true concept retention.

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 CS201LatestSolvedMCQs.pdf for free?

You can preview and download "CS201LatestSolvedMCQs.pdf" (CS201 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201latestsolvedmcqs-pdf) with 100% free high-speed downloads and zero registration requirements.

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

This document covers Full Course Curriculum 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

                        CS201 Latest Solved MCQs
                        http://vustudents.ning.com
http://vustudents.ning.com

Quiz Start Time: 09:34 PM    Time Left     82
sec(s)

Question # 1 of 10 ( Start time: 09:34:54 PM )    Total Marks: 1
While developing a program; should we think about the user interface? //handouts main
reusability hay..us ki yahan option hi nahi hay
 Select correct option:

Yes

No

Quiz Start Time: 09:34 PM    Time Left     75
sec(s)

Question # 2 of 10 ( Start time: 09:35:20 PM )   Total Marks: 1
A character is stored in the memory in _________
Select correct option:

byte

integer

string

None of the given

http://vustudents.ning.com                                                              1

                        CS201 Latest Solved MCQs
                        http://vustudents.ning.com
Quiz Start Time: 09:34 PM

Question # 3 of 10 ( Start time: 09:36:21 PM )      Total Marks: 1
These functions seekg() and seekp() requires an argument of type ____________to let
them how many bytes to move forward or backward.
 Select correct option:

int

short

long

double

Quiz Start Time: 09:34 PM    Time Left     85
sec(s)

Question # 4 of 10 ( Start time: 09:37:30 PM )     Total Marks: 1
dereferencing operator is represented by _______
Select correct option:

*

+

–

None of the given

http://vustudents.ning.com                                                            2

                         CS201 Latest Solved MCQs
                         http://vustudents.ning.com
Quiz Start Time: 09:34 PM    Time Left     86
sec(s)

Question # 5 of 10 ( Start time: 09:38:55 PM )   Total Marks: 1
______________ transfers the executable code from main memory to hard disk.

Select correct option:

Loader

Debugger

Compiler

Linker

Quiz Start Time: 09:34 PM    Time Left     85
sec(s)

Question # 6 of 10 ( Start time: 09:40:21 PM )    Total Marks: 1
When the logical operator OR (||) combine two expressions exp1 and exp2 then the result
will be false only, //bitwise “or” applies here….
Select correct option:

When both exp1 and exp2 are true

When both exp1 and exp2 are false

When exp1 is true and exp2 is false

When exp1 is false and exp2 is true

http://vustudents.ning.com                                                            3

                         CS201 Latest Solved MCQs
                         http://vustudents.ning.com
Quiz Start Time: 09:34 PM     Time Left      79
sec(s)

Question # 7 of 10 ( Start time: 09:41:43 PM )     Total Marks: 1
suppose we have int y[10]; To access the 4th element of the array we write_________
 Select correct option:

y[4];

y[3];

y[2];

none of given

Quiz Start Time: 09:34 PM     Time Left      82
sec(s)

Question # 8 of 10 ( Start time: 09:43:10 PM )          Total Marks: 1
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___________
 Select correct option:

long

int

short

double

http://vustudents.ning.com                                                                4

                         CS201 Latest Solved MCQs
                         http://vustudents.ning.com
Quiz Start Time: 09:34 PM      Time Left    80
sec(s)

Question # 9 of 10 ( Start time: 09:44:42 PM )    Total Marks: 1
ofstream is used for________
Select correct option:

Input file stream

Output file stream

Input and output file stream

All of the given

Quiz Start Time: 09:34 PM      Time Left    80
sec(s)
 http://vustudents.ning.com

Question # 10 of 10 ( Start time: 09:46:11 PM )    Total Marks: 1
A structure is a collection of _____________under a single name.
Select correct option:

values

variables

data

None of the given

http://vustudents.ning.com                                          5

                         CS201 Latest Solved MCQs
                         http://vustudents.ning.com

Question No: 1 ( Marks: 1 ) - Please choose one
In C/C++ the string constant is enclosed ……………. corrected r red one
► In curly braces
    ► In small braces
    ► In single quotes
    ► In double quotes

Question No: 2 ( Marks: 1 )     - Please choose one
The size of int data type is
   ► 1 bytes
   ► 2 bytes
   ► 3 bytes
   ► 4 bytes

Question No: 3 ( Marks: 1 ) - Please choose one
In Flow chart process is represented by

    ► Rectangle
    ► Arrow symbol
    ► Oval
    ► Circle

Question No: 4 ( Marks: 1 ) - Please choose one
 If the break statement is missed in switch statement then,// a break statement with no
label always completes abruptly, the reason being a break with no label. If no switch,
while, do, or for statement in the immediately enclosing method, constructor or
initializer encloses the break statement, a compile-time error occurs.

    ► The compiler will give error
    ► This may cause a logical error
    ► No effect on program
    ► Program stops its execution

Question No: 5 ( Marks: 1 ) - Please choose one
 When we are using const keyword with a variable x then initializing it at the time of
declaration is,

    ► Must
    ► Optional
    ► Not necessary
    ► A syntax error

http://vustudents.ning.com                                                                6

                            CS201 Latest Solved MCQs
                            http://vustudents.ning.com
Question No: 6 ( Marks: 1 ) - Please choose one
Which of the following is the correct way to assign an integer value 5 to element of a
matrix say ‘m’ at second row and third column?

    ► m[2][3] = 5 ;

    ► m[3][2] = 5 ;

    ► m[1][2] = 5 ;
    ► m[2][3] = ‘5’;

Question No: 7 ( Marks: 1 ) - Please choose one
How many total elements must be in two-dimensional array of 3 rows and 2 columns?

    ►4
    ►5
    ►6
    ►7

Question No: 8 ( Marks: 1 ) - Please choose one
 Which of the following is the correct statement for the following declaration?
const int *ptr.
►ptr is a constant pointer

►ptr is constant integer pointer

►ptr is a constant pointer to int

More CS201 files

All CS201 files · Midterm Prep 2026 · MCQs Bank