cs201 mcqs by izhar (1).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
- Type
- MCQ Bank
- Coverage
- Full Course Curriculum
- Tags
- MCQ
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
- Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
- Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
- Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
- Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)
- Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
- Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
- Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
- 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 mcqs by izhar (1).pdf for free?
You can preview and download "cs201 mcqs by izhar (1).pdf" (CS201 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-mcqs-by-izhar-1-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
1. How many times the following loop will execute?
int j = 3; while(j > 0) { cout << "Statements" << endl; j
-= 2; }
1. 0
2. 1
3. 2
4. 3
2. In C++, a variable can be declared anywhere in the
program this will increase ________.
1. writability
2. readability
3. portability
4. efficiency
3. In Flow Chart, flow of control is represented by
________.
1. Rectangle
2. Circle
3. Diamomd
4. Arrow
4. The only operator that the compiler overloads for user
define data type by default is
1. Plus (+) operator
2. MInus (-) operator
3. Assignment (=) operator
4. Equal (==) operator
5. Once we have defined a symbolic constant value using
#define, that value ________ during program execution
1. can be changed
2. cannot be changed
3. varies
4. becomes zero
6. The function write() takes ________ as parameter(s).
1. String of pointer type
2. String of variable lengths, no. of bytes to be read and
flags
3. Poimter array of characters and a delimiter
4. String and no. of bytes to be written
7. ________ will be used for enclosing function
statements into a block.
1. " "
2. ()
3. []
4. {}
8. What will be the result of the expression k = ++m; if
initially k = 0 and m = 4?
1. 0
2. 5
3. 6
4. 4
9. What will be the correct syntax for initialization of a
pointer ptr with string "programming"?
1. char ptr = 'programming';
2. char *ptr = "programming";
3. char *ptr = 'programming';
4. *ptr = "programming";
10. < and > both are ________ operators.
1. Arithmetic
2. Relational
3. Logical
4. Mathematical
11. ________ are not available in C language.
1. User defned functions
2. Built in functions
3. Library functions
4. Inline functions
12. How many bytes an integer type pointer intPtr will
jump in memory if the statement below is executed?
intPtr += 2 ;
1. 2
2. 4
3. 8
4. 12
13. ostream is a ________ operator.
1. dependent
2. member
3. standalone
4. None of the given
14. ________ variables are those that are defined
outside of main.
1. Local
2. Dynamic
3. Global
4. Static
15. ________ will return the number of bytes reserved
for a variable or data type.
1. sizeof operator
2. free operator
3. void pointer
4. new operator
16. What will be the output of the following c++ code?
#include<iostream.h>
#define max 100
main()
{
#ifdef max
Cout<<"Hellow;
}
1. Hello
2. "Hellow"
3. Max is 100
4. Error
17. What will be the result of the expression k = ++m;
if initially k = 0 and m = 5?
1. 0
2. 5
3. 6
4. 4
18. The memory address of the first element of an
array is called ________.
1. floor address
2. foundation address
3. first address
4. base address
19. Symbolic constant PI can be defined as:
1. #define PI 3.14 ;
2. #define PI 3.14
3. #define PI=3.14
4. # include pi= 3.14
20. Body of any function is enclosed within ________.
1. { }
2. ( )
3. [ ]
4. " "
21. How many nested loops would be required to
manipulate n-dimensional array?
1. n
2. n + 1
3. n - 1
4. 2n
22. The loop which is most suitable to be used when
the number of iterations is known is called ________.
1. for
2. while
3. do-while
4. all looping processes require that the iterations be
known.
23. A pointer is ________.
1. the address of a variable
2. an indication of the variable to be accessed next
3. a variable for storing address
4. the data type of an address variable
24. ________ will explain the function of a program.
1. Comments
2. Debugger
3. Compiler
4. Linker
25. In C/C++, the default command line arguments
passed to the main function are ________.
1. float argc, char **argv
2. int argc, char **argv
3. int *argc, char *argv
4. int argc, float **argv
26. The memory allocation functions return a chunk of
memory with a pointer of type ________.
1. integer
2. float
3. ptr
4. void
27. Encapsulation means ________.
1. that the data of a class cannot be accessed from outside
2. that the data of a class can be accessed from outside
3. the data becomes public
4. that the data can be accessible anywhere within a main
program
28. A function is a block of statements that can be
defined once and used ________ in the program.
1. One time
2. Two times
3. Three times
4. As many times as user wants
29. The malloc function takes ________ argument(s).
1. two
2. three
3. four
4. one
30. Return type of a function that does not return any
value must be ________.
1. char
2. int
3. void
4. double
31. The parameter passed to isdigit() function is
________.
1. a character variable
2. a boolean variable
3. an integer variable
4. a character string
32. Operating System is a type of a/an ________.
1. application software
2. system software
3. computer language
4. interpreter
33. Array is a data structure that stores ________.
1. Memory addresses
2. Variables
3. Data type
4. Data
34. What will be the result of arithmetic expression
6+48/4*3?
1. 10
2. 40.5
3. 42
4. 41
35. In computer systems there are mainly ________
type of softwares.
1. 1
2. 2
3. 3
4. 4
36. The members of a class declared with the keyword
struct are ________ by default.
1. static
2. Private
3. protected
4. public
37. NULL has been defined in ________ header file.
1. Iostream.h
2. Stdlib.h
3. Stdio.hMore CS201 files
- 49192415-Almost-300-Solved-MCQs-of-CS201-Introduction-To-Pro (PDF · MCQ Bank)
- CS201 10+ Current Papers 2022 .pdf (PDF · MCQ Bank)
- CS201 10+ Current Papers 2022 .pdf (PDF · MCQ Bank)
- CS201 All term paperz in 1 file (pages 1 to 63) eagle_eye.pd (PDF · MCQ Bank)
- CS201 Current Papers 2018 To 2020.pdf (PDF · MCQ Bank)
- CS201 Current Papers Shared By Students.pdf (PDF · MCQ Bank)
- CS201 Current Papers Shared By Students.pdf (PDF · MCQ Bank)
- CS201 Mcqs Searching File 2021-converted (1).pdf (PDF · MCQ Bank)