CS201--Quizz-No-2-Notes---vucorner.com-----16569a8f577584.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--Quizz-No-2-Notes---vucorner.com-----16569a8f577584.pdf for free?

You can preview and download "CS201--Quizz-No-2-Notes---vucorner.com-----16569a8f577584.pdf" (CS201 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-quizz-no-2-notes-vucorner-com-16569a8f577584-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 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 - Introduction to Programming (Quiz No. 2)by Iqra Azhar

CS201 - Introduction to Programming (Quiz No. 2)by Iqra Azhar

'\0' takes ________ space in the memory.

single byte,

A ________is an array of characters that can store number of character specified.

string

har **argv can be read as__________________.

char **argv can be read as a pointer to a pointer to a character

Dereferencing operator is represented by _______.

asterisk symbol (*).

While handling files, one can have _____________ options

All of option

When an identifier is declared with keyword const then,

When an identifier is declared with the const keyword, it means that the identifier represents a constant,

Given a two dimensional array of integers, what would be the correct way of assigning the value 6 to the
element at third row and fourth column?

array[2][3] = 6;

Pointer points to a particular___________.

A pointer in programming points to a particular memory address.

Transpose of a matrix means that when we interchange rows and columns_____________

Select the correct option

the first row becomes the Last column

CS201 - Introduction to Programming (Quiz No. 2)by Iqra Azhar

the first column becomes the second column

the first row becomes the first column

the Last row becomes the first column

the first row becomes the first column

The value of a pointer can be __________.

The value of a pointer can be an address in memory

eof is used to check for the _________ of file when a file is being read.

end

We can read, write and manipulate the same file using _______

To read, write, and manipulate the same file in a program, you typically use a file handle or file object.

Following is an array of ________ rows and ________ columns. int num[3][4];

Following is an array of 3 rows and 4 columns.

The increment of a pointer depends on its___________.

The increment of a pointer depends on the type of data it is pointing to

______________ returns true if c is a letter and false otherwise.

Select the correct option

int is digit( int c )

int is digit( int c

int is a num( int c )

int is alpha( int c )

CS201 - Introduction to Programming (Quiz No. 2)by Iqra Azhar

int isalpha(int c)

Whenever some number is added in an array name, it will jump as many _____________as the added
number.

Column

row

 bite

memory

Whenever some number is added to an array name, it will jump as many bytes as the added number.

For the following statement, how much memory will be allocated to myarray[0]?

char * myarray[] = {"Arif", "Sadia"};

either 4 or 8 bytes.

Each array declaration must provide the information about all these things except _________

Following is the declaration of a __________ array.

int arr[2][2][2];

Select the correct option

3-Dimensional

1-Dimensional

None of the given

2-Dimensional

3-Dimensional array.

What will be the output of the following code snippet?

char dest[50] = "Using strncat function,";

char src[50] = " this part is added and this is ignored";

CS201 - Introduction to Programming (Quiz No. 2)by Iqra Azhar

strncat(dest, src, 19); cout << dest ;

 Using strncat function this part is added

We must include the header file ________to convert the value of one type into another type using built-
in functions.

<typeinfo> header

For the following statement, how much memory will be allocated to myarray[1]?char * myarray[] =
{"Arif", "Sadia"};

4 bytes,

Character strings are terminated by ___________.

\0. null character

To get the value stored at a memory address, we use the________________

dereference operator (*).

A string which is assigned to a string variable is terminated by\

null character ('\0').

What will be the output of following program?

int data[10] = {10,20,30,40,50,60,70,80,90,100};

int *yptr = &data[5];

cout<<*++yptr;

70.

Suppose we have a file with name “myfile.txt”. What will be the correct syntax of file opening for input?

To open a file named "myfile.txt" for input in various programming languages, you can use the following

myFile.open(“myfile.txt”, ios::in);

CS201 - Introduction to Programming (Quiz No. 2)by Iqra Azhar

Which header file must be included to use the functions tolower() and toupper()?

In C and C++, the functions tolower() and toupper() are part of the <cctype> header file.

We must include the header file ________to convert the value of one type into another type using built-
in functions.

<cstdlib> or <stdlib.h> header file.

Each array declaration must provide the information about all these things except __________.

Data Type: The type of elements the array will hold (e.g., int, float, char).no

Size/Number of Elements: The number of elements the array can hold.no

Initialization: The initial values of the elements (optional).no

If we have a pointer on the left hand side then the right hand side should have a/an__________.

If you have a pointer on the left-hand side, then on the right-hand side, there should be an address
(memory location) or another pointer.

In Analysis, we try to have a______________.Select the correct option

Break up of problem

Determined the inputs

Precise problem statement

Mixture of multiple problems

following is the declaration of a 2D array, how many rows are declared for this array.int arr[3][2];

3 rows and 2 columns.

CS201 - Introduction to Programming (Quiz No. 2)by Iqra Azhar

What is output of following code?

int data[10] = {10,20,30,40,50,60,70,80,90,100};

int *xptr = &data[4];

int *yptr = &data[6];

cout<<xptr + yptr++;

error

Each array declaration must provide the information about all these things except __________.

Data Type: The type of elements the array will hold (e.g., int, float, char).

Array Name: The identifier used to reference the array in the program.

Size/Number of Elements: The number of elements the array can hold.

Initialization: The initial values of the elements (optional).

What is output of following code?

int data[10] = {10,20,30,40,50,60,70,80,90,100};

int *xptr = &data[4];

int *yptr = &data[6];

cout<<xptr + yptr++;

error

More CS201 files

All CS201 files · Midterm Prep 2026 · MCQs Bank