CS201 QUIZ 1 by VU Answer.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 1 by VU Answer.pdf for free?

You can preview and download "CS201 QUIZ 1 by VU Answer.pdf" (CS201 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-quiz-1-by-vu-answer-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

               VISIT ANY MORE SOLUTIONS
                   www.vuanswer.com

                CS201 SOLVED QUIZ 1
                 Effort by Sarim (VUANSWER)

Question # 1

< and > both are              operators.

Arithmetic
Relational
Logical
Mathematical

Question # 2

Find out the logical error in following lines of code. If (x = 10)
cout “x is 10”;

10 should be enclosed in quotations
There is no semicolon at the end of if condition
Assignment operator should not be used for Comparison
Variable x should not be inside parenthesis

                   JOIN OUR WHATSAPP
  https://chat.whatsapp.com/CD2snTdbdZt7YgXQNUAoOQ

               LIKE OUR FACEBOOK PAGE

        https://www.facebook.com/vuanswer

               VISIT ANY MORE SOLUTIONS
                   www.vuanswer.com

Question # 3

What will be the result of the expression j = i++; if initially j =
0 and i = 5?

0
5
6
4

Question # 4

Default mechanism of calling a function by passing it array is
call by         and in case of passing variable is call by
         .

Reference, Reference
Reference, value
Value, Reference
Value, Value

Question # 5

                  JOIN OUR WHATSAPP
    https://chat.whatsapp.com/CD2snTdbdZt7YgXQNUAoOQ

                LIKE OUR FACEBOOK PAGE

        https://www.facebook.com/vuanswer

               VISIT ANY MORE SOLUTIONS
                 www.vuanswer.com

When the break statement is encountered in a loop’s body, it
transfers the control        from the current loop.

Inside
Outside
To break statement
To continue statement

Question # 6

          statement is used to terminate the processing of a
particular case and exit from switch structure.
If
Goto
Break
Continue

Question # 7

If we pass more than one arguments to a function then they
are separated by       .

                 JOIN OUR WHATSAPP
  https://chat.whatsapp.com/CD2snTdbdZt7YgXQNUAoOQ

               LIKE OUR FACEBOOK PAGE

       https://www.facebook.com/vuanswer

               VISIT ANY MORE SOLUTIONS
                 www.vuanswer.com

Comma, Lecture 9

Semicolon;
Colon:
Brackets ()

Question # 8

What will be the value of the variable output in the given piece
of code? double output = 0; output = (2 + 2) * 4 + 2 / (4 – 2);

15
17
 12
 1

Question # 9

If we assign 2.06721 to an integer variable x, what will be the
output if we print x using cout statement?

                 JOIN OUR WHATSAPP
  https://chat.whatsapp.com/CD2snTdbdZt7YgXQNUAoOQ

               LIKE OUR FACEBOOK PAGE

         https://www.facebook.com/vuanswer

                VISIT ANY MORE SOLUTIONS
                  www.vuanswer.com

2
2.1
2.06
2.07

Question # 10

            will be used for clarity and to force the order of
evaluation in an expression.
 ""
() PG32
 ''
 []

Question # 11

What will be the size of following array? int arr[29];

0
30 PAGE 105-106

                  JOIN OUR WHATSAPP
    https://chat.whatsapp.com/CD2snTdbdZt7YgXQNUAoOQ

                LIKE OUR FACEBOOK PAGE

        https://www.facebook.com/vuanswer

                VISIT ANY MORE SOLUTIONS
                  www.vuanswer.com

29
28

Question # 12

If a function has not been declared before its definition, It is
logical error
syntax error LECTURE NO 9
logical Error
run time error
none of these

Question # 13

When the break statement is encountered in a loop‟s body, it
transfers the control from the current loop.

Inside
Outside By using break the loop will terminate.

                  JOIN OUR WHATSAPP
  https://chat.whatsapp.com/CD2snTdbdZt7YgXQNUAoOQ

                LIKE OUR FACEBOOK PAGE

         https://www.facebook.com/vuanswer

                VISIT ANY MORE SOLUTIONS
                    www.vuanswer.com

To break statement
To continue statement

Question # 14

When we access a multidimensional array, each array index
is surrounded by_ .
Single quotes ' '
Double quotes " "
Brackets[] Lecture 11
None of the given

Question # 14

char name [] = “Hello World” ; In the above statement, a
memory of       characterswill be allocated

12 Lecture 12

                    JOIN OUR WHATSAPP
  https://chat.whatsapp.com/CD2snTdbdZt7YgXQNUAoOQ

                LIKE OUR FACEBOOK PAGE

        https://www.facebook.com/vuanswer

                VISIT ANY MORE SOLUTIONS
                  www.vuanswer.com

10
11
13

Question # 15

A variable declared within a code block becomes   variable
for that block.

Static
Integer
Local Lecture 9

Global

Question # 16

                  JOIN OUR WHATSAPP
  https://chat.whatsapp.com/CD2snTdbdZt7YgXQNUAoOQ

                LIKE OUR FACEBOOK PAGE

          https://www.facebook.com/vuanswer

                VISIT ANY MORE SOLUTIONS
                  www.vuanswer.com

When the if statement consists of more than one statement
then enclosing these statement in braces is          .

Compulsory
Optional
Not required
Relevant

Question # 17

Characters of a string stored in an array can be accessed
directly using array    .

Manipulation
Superscript
Subscript Page No 123

                  JOIN OUR WHATSAPP
  https://chat.whatsapp.com/CD2snTdbdZt7YgXQNUAoOQ

                LIKE OUR FACEBOOK PAGE

       https://www.facebook.com/vuanswer

                VISIT ANY MORE SOLUTIONS
                  www.vuanswer.com

Postscript

Question # 18

A variable declared within a code block becomes        variable
for that block.
Static
Integer
Local Lecture 9
Global

Question # 19

The data type before a function name represents its,

Return Type

                  JOIN OUR WHATSAPP
  https://chat.whatsapp.com/CD2snTdbdZt7YgXQNUAoOQ

                LIKE OUR FACEBOOK PAGE

          https://www.facebook.com/vuanswer

                   VISIT ANY MORE SOLUTIONS
                      www.vuanswer.com

Function data
Function arguments
Function name

Question # 19

From following; which one is the correct syntax of an array
initialize: Array size is 10 andit is of double data type to value
0?

arr[10] = {0.0};
double arr[10]= 0.0;
Double arr[10] = {0.0}; Lecture 12
double arr[] = 0.0;

Question # 20

                     JOIN OUR WHATSAPP
  https://chat.whatsapp.com/CD2snTdbdZt7YgXQNUAoOQ

More CS201 files

All CS201 files · Midterm Prep 2026 · MCQs Bank