cs201 mcqs file by S.S.docx

Verified academic study resource for CS201 (Introduction to Programming) under the Computer Science at Virtual University of Pakistan. This DOC 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
DOC
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

  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 mcqs file by S.S.docx for free?

You can preview and download "cs201 mcqs file by S.S.docx" (CS201 DOC, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-mcqs-file-by-s-s-docx) 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. When the if statement consists more than one statement then enclosing these statement in curly braces is,
        1. Not required
        2. Good programming
        3. Relevant
        4. Must
    2. ________ operators are the ones that require two operands on both sides of the operator.
        1. Double
        2. Tow sided
        3. Binary
        4. None of the given
    3. Matrix is defined as ________.
        1. Single dimensional array
        2. Multi-dimensional array
        3. Vector product
        4. Scalar product
    4. 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
    5. When a variable is defined as static in a class then ________.
        1. Separate copy of this variable is created for each object
        2. Only one copy is created for all objects of this class
        3. A copy of this variable is created for only static objects
        4. None of the given
    6. In statement a+b+c, at first
        1. a+b is executed first
        2. b+c is executed first
        3. All executed at the same time
        4. None of the given
    7. The destructor is used to ________.
        1. allocate memory
        2. deallocate memory
        3. create objects
        4. allocate static memory
    8. While programming, it is good to provide an easy to understand and easy to use interface; this programming skill is called ________.
        1. scalability
        2. usability
        3. reliability
        4. sustainability
    9. Which of the following is an example of logical operator?
        1. &&,||
        2. <,>
        3. +,*
        4. /,%
    10. If the request of new operator is not fulfilled due to insufficient memory in the heap ________.
        1. the new operator returns 2
        2. the new operator returns 1
        3. the operator returns 0
        4. free operator returns nothing
    11. Which of the following is the correct syntax to access the value of first element of an array using pointer ptr?
        1. ptr[0]
        2. *(ptr+1)
        3. ptr[1]
        4. *ptr[0]
    12. What will be the output of following statement?
cout<<setfill('0')<<setw(7)<< 128;
        1. 0128128
        2. 0000128
        3. 1280000
        4. 0012800
    13. The most suitable data type for number 325.25 is ________.
        1. char
        2. int
        3. short
        4. float
    14. cout << i << " ";
cout << d <<" ";
cout << f;

Above statements can be written within statement of one line as:
        1. cout << i <<" "<< d " "<< f << ;
        2. cout << i << << d << << f <<;
        3. cout << i <<" "<< d <<" "<< f;
        4. cout << i << " "<< d <<" " f<<;
    15. Which of the following is the starting index of an array in C++?
        1. 0
        2. 1
        3. -1
        4. 2
    16. Which of the following function call is "call by reference" for the following function prototype?
int add (int *);
        1. add(&x);
        2. add(int x);
        3. add(x);
        4. add(*x);
    17. The keyword ________ is used to get some value back from a function.
        1. return
        2. break
        3. continue
        4. goto
    18. In case of single dereferencing, the value of the ________ is the address of the ________.
        1. pointer, variable
        2. pointer, constant
        3. variable, pointer
        4. constant, pointer
    19. What will be the correct syntax for the following function call?
float add (int &);
        1. add(int x);
        2. add(&x);
        3. add(x);
        4. add(*x);
    20. The main advantage of function overloading is ________.
        1. The program becomes portable
        2. The program becomes complex
        3. The function becomes inline
        4. The program becomes more readable
    21. Which one of the following is mandatory preprocessor directive for c++?
        1. #undef
        2. #include
        3. #undef
        4. All of the given
    22. A 2D array multi[5][10] can be accessed using the array name as **multi, this technique is called ________.
        1. Single referencing
        2. Single dereferencing
        3. Double referencing
        4. Double dereferencing
    23. The remainder (%) operator is a ________ operator.
        1. Logical
        2. Arithmetic
        3. Relational
        4. Conditional
    24. Syntax of a union is identical to ________.
        1. structure
        2. class
        3. function
        4. loop
    25. Individual characters in a string stored in an array can be accessed directly using array ________.
        1. superscript
        2. script
        3. subscript
        4. value
    26. NULL has been defined in ________ header file.
        1. Iostream.h
        2. Stdlib.h
        3. Stdio.h
        4. String.h
    27. !( x < 3) means in C++ that
        1. x is less than 3
        2. x is greater than or equal to 3
        3. x is greater than 3
        4. x is equal to 3
    28. The default mode for writing into a file using ofstream object is ________.
        1. out
        2. bin
        3. app
        4. ate
    29. In computer systems there are mainly ________ type of softwares.
        1. 1
        2. 2
        3. 3
        4. 4
    30. An address is a ________, while a pointer is a ________.
        1. constant, variable
        2. variable, constant
        3. global, variable
        4. non static variable, constant
    31. In C/C++, which of the following data type is used to store real numbers?
        1. float
        2. char
        3. boolean
        4. int
    32. Which of the following if missing would result in infinite recursion in case of recursive function?
        1. Recursive call
        2. Base case
        3. Function parameters
        4. Local variables
    33. < and > both are ________ operators.
        1. Arithmetic
        2. Relational
        3. Logical
        4. Mathematical
    34. What will be the output of following code segment?

for (int i = 2; i<10; i++) {
if ( i == 5) continue;
cout << i << "," ;
}
        1. 2,3,7,8,9
        2. 2,3,4,6,7,8,9

More CS201 files

All CS201 files · Midterm Prep 2026 · MCQs Bank