CS201 Mcqs Searching File 2021-converted (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
PDF
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 Searching File 2021-converted (1).pdf for free?

You can preview and download "CS201 Mcqs Searching File 2021-converted (1).pdf" (CS201 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-mcqs-searching-file-2021-converted-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

                             CS201

             GRAND QUIZ FILE (NEW)

                  Mcqs Searching File

      Prepared By Muhammad Zeeshan

1. The Data Contained in the Structure, is defined in the________

            Curley Braces

2. The increment of a pointer depends upon its           Data Types

3. At the design phase we try to break upon the problem into________

   Functional Units

4. _______ operation is used to pass the address of a Variable in cell by

   reference method

                      &

5. What is use of ios; trunck mode?

   To truncate an executing file to zero

6. In while loop the Condition is checked ______ the Execution of loop

   Before

7.      What will be the value of variable “input” if the initial value of input

     is 67?

     if(input >= 50)

     input = input + 1;

     if(input <= 75)

     input = input + 2;

     else

     input = input - 1;

                                        68

8. In while loop the loop counter must be initialized

     Before Entering the Loop

9. What will be output of the following while loop?

     Int counter =0;

     While (counter< 15)

     Count << counter <<” “;

     Counter++;

                                Infinite Loop

10.How many bit integers type pointer intptr will jump in memory if the

   statement below if executed?

   Intptr += 2;

                                         8

11.In loop the Conditions are kind of __________ Boolean Operations

12.A Character is Store in memory in_________           Byte

13. 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);

                         17

14.In Three dimensional array, we can ______ ‘for loop(s)’ to populate the

   array.

       3

15.While programming how many skills should a programmer focus on?

                   5

16.The string in the array is Terminated by a__________        Null

17.X is an Integers Variable ; what does X++ means,

   Add 1 in X Value

18.Which of the following is a reverse word for data type in C/C++?

   Int

19.What Logical error exits in the following arithmetic expression?

   X = 50 / (2 % 2) + 9

                 Division by Zero will occur in the expression

20.allow us to have a memory location and use it as int or char

   interchangeably

                  Union

21.A hierarchy of classes which are used to deal with console and disk files

   are called

                 Stream classes

22.A repetition statement specifies that an action is to be Continued while

   some_______ remain true             Condition

23.For the Following Statement How Much memory will be allocated to my

   array [0]?

         Char* myarray = {“Arif”’, “Sadia”};

                5 Bytes

24.What is correct syntax to declare an array of 15 elements of type’s

   floats?           Float array[15];

25._____ is used for input file or for reading from the file.    Seekg()

26.A file Opened with the help of ________ can be used for both input and

   output.

                    fstream

27.If x is declare as an integer, what will be result of the given expression?

   X = 3*5% (2+2)/2?             1

28.From Given Option select the correct syntax of the “function call” to the

   following function float add (int&)                add(x);

29.X+=2 Means               x=x+2

30.In if the Structure the Block of Statement execute when the condition is

   _______ True

31. An object of _________ class can be created for saving the current

   position of any opened file before reading from the file.      Sternpos

32.What will be Output of the Following Programs

   Void car () {

   Cout << “Honda”;

   }

   Int main () {

   Car ();

   }

                              Syntax Error

33.In do While Loop the Condition is checked ______ One Execution of

   loop.     After

34.What will be Size of the Following Array?

   Int arr [29];

                                     29

35.A string C is                  1-D Array of Character

36.In C++, What will be the highest index of the following array?

   Int Array [15];           14

37.12 & 8 = (1000) 2 = _________ & is Used to AND two Number bit wise

   8

38.In _________ we Have different data members and all of these have

   their own spaces memory         Structure

39.At the design phase, we try to break up the problem into_______

   Functional Units

40.The ________ statement interrupts the flow of Control

   Break

41.In order to get 256 from the number 2568 we divide this number by

   10 and take,              Its quotient

42. Which of the following function(s) is/are included in stdlib.h header

   file?

           1 and 2 Only

43.What does 5 | 6, evaluate to in decimal where ‘|’ is bitwise OR

   operator?

               7

44.When a call to function statement is encountered,

   The control is transfer to its definition

45.The variables having a name, type and size are just like empty

   boxes. False

46.The return type of a function that do not return any value must be

   __________       Void

   47.Paying attention to detail in designing a program is _________

      Necessary

   48.Syntax of a union is identical to __________ .

structure

   49.A union is a user-defined data type that contains only _______from

      its list of members at a time.

one object

   50.Which of the given file handling modes are similar in their

      functionality?

ios::trunc, ios::ate

   51.Which one of the given option is not a mode for reading/writing the

      data from a file?

Trunk

   52.In C/C++, the header file used for string manipulation is

      __________. string.h

   53.A 2D array multi[5][10] can be accessed using the array name as

      **multi , this technique is called __________.

Double dereferencing

   54.C language was evolved from _____ language(s).

B and BCPL

   55.The __________ statement forces the immediate next iteration of the

        loop.

Continue

_________ are very good tools for code reuse.

Functions

More CS201 files

All CS201 files · Midterm Prep 2026 · MCQs Bank