CS201 1st Quiz 10 MCQs.docx
Verified academic study resource for CS201 (Introduction to Programming) under the Computer Science at Virtual University of Pakistan. This DOC 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
- DOC
- Type
- Quiz
- Coverage
- Quizzes & Objective Exam Scope
- Tags
- MCQ
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
- 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 1st Quiz 10 MCQs.docx for free?
You can preview and download "CS201 1st Quiz 10 MCQs.docx" (CS201 DOC, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-1st-quiz-10-mcqs-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 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
CS201 1st Quiz 10 MCQs
1. The result of 4 % 3 will be:
◦ 1.5
◦ 2
◦ 1.33
◦ 1
Answer: 1
Explanation: The modulus operator % returns the remainder when the left operand is divided by the right operand. In this case, 4 divided by 3 gives a remainder of 1.
2. Default mechanism of calling a function by passing it an array is:
◦ Call by Reference, Call by Reference
◦ Call by Value, Call by Value
◦ Call by Value, Call by Reference
◦ Call by Reference, Call by Value
Answer: Call by Reference, Call by Reference
Explanation: When an array is passed to a function in C, it is actually passed by reference. This means that the function receives a reference to the original array, allowing it to modify the array's contents.
3. In loops, the conditions are kind of:
◦ Primary expressions
◦ Boolean expressions
◦ Constant expressions
◦ Secondary expressions
Answer: Boolean expressions
Explanation: The conditions in loops, such as the for or while loops, are usually Boolean expressions. These expressions evaluate to either true or false and determine whether the loop should continue or terminate.
4. In the following nested For Loop, which loop will run most number of times?
for (int i = 0; i < 5; i++) {
for (int k = 0; k < 5; k++) {
// ...
}
}
◦ Outer loop
◦ Inner loop
◦ Depends upon the statements in the inner loop's body
◦ Both loops run an equal number of times
Answer: Both loops run an equal number of times
Explanation: In this nested for loop, both the outer and inner loops have the same termination condition (i < 5 and k < 5 respectively) and incrementation statement (i++ and k++ respectively). Therefore, both loops will run the same number of times, which is 5.
5. What is the output of the following code?
for (int i = 0; i < 5; i++) {
cout << i % 2 << " ";
}
◦ 1 0 1 0 1
◦ 0 1 0 1 0
◦ 0 1 2 3 4 5
◦ 0 2 4 6 8 10
Answer: 0 1 0 1 0
Explanation: The code snippet prints the result of i % 2 for each value of i. The % operator calculates the remainder when i is divided by 2. So, for even values of i, the remainder is 0, and for odd values, the remainder is 1.
6. A string in C is:
◦ 1-D array of integer
◦ 2-D array of integer
◦ 1-D array of character
◦ 2-D array of character
Answer: 1-D array of character
Explanation: In C, a string is represented as a 1-D array of characters. Each character in the string is stored in consecutive memory locations, terminated by a null character ('\0') to indicate the end of the string.
7. Which of the following will be the most appropriate data type to store the value 63.547?
◦ Short
◦ Integer
◦ Character
◦ Float
Answer: Float
Explanation: The most appropriate data type to store a decimal value like 63.547 is a floating-point data type. In C, the float data type is used to store decimal values with single precision.
8. What is the output of the following code, if the first case is true?
switch (var) {
case 'a':
cout << "apple" << endl;
case 'b':
cout << "banana" << endl;
case 'm':
cout << "mango" << endl;
default:
cout << "any fruit" << endl;
}
◦ apple any fruit
◦ apple
◦ apple banana mango any fruit
◦ none of the above
Answer: apple banana mango any fruit
Explanation: If the first case is true (the value of var is 'a'), the code will execute the case 'a' block. However, without a break statement, the execution will continue to the next case block. This is known as "falling through." Hence, the code will print "apple," "banana," "mango," and "any fruit" as there are no break statements until the default case.
9. Using a segment of source code again by adding new functionalities with minor or without modification is termed as:
◦ Code efficiency
◦ Code Generation
◦ Code Reusability
◦ Code modification
Answer: Code Reusability
Explanation: When a segment of source code is reused by adding new functionalities with minor or no modification, it is referred to as code reusability. This practice helps in avoiding code duplication and leveraging pre-existing solutions to enhance productivity and efficiency in software development.
10. C is widely known as the development language of _______ operating system.
◦ Unix
◦ Windows
◦ Mac OS
◦ Linux
Answer: Unix
Explanation: C is widely recognized as the development language of the Unix operating system. Unix was developed in the late 1960s and early 1970s, and the C programming language, created by Dennis Ritchie, played a significant role in its development. C's efficiency, portability, and low-level system access capabilities made it an ideal language for operating system development. Unix and its derivatives, such as Linux and macOS, heavily rely on the C language for system-level programming.
More CS201 files
- .trashed-1665071865-cs201p Lab quiz 13.pdf (PDF · Quiz)
- .trashed-1665071865-cs201p Lab quiz 13.pdf (PDF · Quiz)
- CS201 2nd Quiz By Qalb-e-Momin.pdf (PDF · Quiz)
- CS201 GRAND QUIZ FILE (NEW) BY NIMRA KHAN.pdf (PDF · Quiz)
- CS201 GRAND QUIZ FILE (NEW) BY NIMRA KHAN.pdf (PDF · Quiz)
- CS201 Grand QUIZ Solved BY Sonu.pdf (PDF · Quiz)
- CS201 Grand QUIZ Solved BY Sonu.pdf (PDF · Quiz)
- CS201 Grand Quiz (3) By AR.pdf (PDF · Quiz)