Cs201 Quiz File 2 by Attiq Kundi.... Knowledge For Us..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 File 2 by Attiq Kundi.... Knowledge For Us..pdf for free?

You can preview and download "Cs201 Quiz File 2 by Attiq Kundi.... Knowledge For Us..pdf" (CS201 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-quiz-file-2-by-attiq-kundi-knowledge-for-us-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

                                CS-201 Quiz File
                              Knowledge For Us
                                 By Attiq Kundi

1. Reference is a thing by which we can create____of any data type.

   Answer: synonym

2. Encapsulation means___.

   Answer: That the data of a class cannot be accessed from outside.

3. The___data type always represents an empty set values in C++.

   Answer: void

4. Let suppose
   a=b=c
   In such situation, it is necessary to return a reference of an object from assignment
   operator function.

   Answer: True.

5. Once an object is declared as a friend, ____.

   Answer: It has access to all non-public members as if they were public

6. When the compiler overloads the assignment (=) operator by default then____.

   Answer: Complier does member wise assignment.

7. _____ Operator are the ones that require two operands on both side of the operator.

   Answer: Binary

8. For accessing data members we use____operator.

   Answer: Dot (.)

9. Header files provide_____so the program running on one operating system can run
   without an error on the other system.

   Answer: Portability

10. i+=2 is equivalent to___.

11. In C language, the region of memory allocated at runtime is called_____.

12. Memory allocated from heap or free store_____.

13. The malloc function takes_____arguments.

   Answer: One

14. New operator can be used for____.

   Answer: integer, float, char and double data types.

15. The function will return a reference to the global variable that exists throughout the
    program and thus there will be no danger of____.

16. Constructor is itself a___of C++ and____.

   Answer: function and can be overloaded.

17. The____of called automatically when an object destroys.

18. if (day== daysOfMath (*this))
    {
    //this is the last day of the month
    }
    In the above condition, we have checked that day’s is equal to the number of days in the
    month or not.
    If the condition returns true it means loop will means loop will make its____iteration
    with____day of the month.

   Answer:

19. #undef is used for_____.

   Answer: making a symbol undefined.

20. Which one of the following is the declaration of overloaded pre-increment operator
    implemented as member function?

    Answer: class-name operator ++ ();
21. A class is a user defined data type it takes____.

   Answer: no space in memory unless we create an object from it.

22. The heap memory structure_____.

   Answer: constantly changes in size.

23. Which of the following Dec permits function overloading in C++.

   Answer: both type and arguments

24. The data members of the class are initialized___.

   Answer: at runtime

25. Which one of the following is mandatory preprocessor directive for C++?

   Answer: #include <iostream>

26. Function declared with the____specifier in a class member list are called friend functions
    of that class.

   Answer: Friend

27. Default constructor takes____.

   Answer: No parameters.

28. The members of a class declared without any keyword are____by default.

   Answer: Private

29. In a class we can have___constructor(s).

   Answer: Many

30. _____for parameters is also done for inline functions.

   Answer: Automatic type checking.

31. An address is a___, while a pointer is a____.

   Answer: variable, constant

32. The compiler generates____automatically.

   Answer: constructors.

33. When an operator function is defined as member function for a binary Plus (+) operator
    then the number of extra arguments it takes is/are:

   Answer: Two

34. Date+=1; is equivalent to____.

   Answer: date+1

35. While operating system may itself takes memory from____.

   Answer: Stack

36. Identify the correct method of adding two strings, s1 and s2.

   Answer: strcat (s1, s2)

37. Name the function whose definition can be substituted at a place where its function call is
    made___.

   Answer: inline function

38. If class A is a friend of class B, and class B is a friend of class C. if class A wants class C
    to be a friend, ____.

   Answer: it has to declare, class C as a friend.

39. New operator automatically determines the size of memory required to store that object,
    so it does not need____.

   Answer: sizeof operator

40. Object code is machine code but it is not____and____.

   Answer: relocated, executable.

41. While using____operator e do not need to supply number of bytes allocated.

   Answer: New

42. The memory allocation functions return a chunk of memory with a pointer of type____.

   Answer: void

43. The syntax of declaration of a function that returns the reference to an integer’s is____.

   Answer: int & myfunc ();

44. For console input and output we use____.

   Answer: conio.h header file

45. A pointer is____.

   Answer: a variable for storing address.

46. For the joining of two strings in string class, we may use “+” operator, can we use “-
    “operator the same way for subtracting strings?

   Answer: No

47. A friend function of a class is a function defined____.

   Answer: outside that class and that has the right to access protected members of the
   class only.

48. The reference data types are used as___variables without any___operator.

   Answer: Ordinary, deference

49. The concept of friend function negates the concept of_____.

   Answer: encapsulation

50. Overloaded assignment operator must be____.

   Answer: member function of class

51. Consider the following code segment. Which of the following will be called while
    executing code at line 2?
    String s1, s2;
    s1=s2;

   Answer: Assignment operator

52. _____will return the number of bytes reserved for a variable or data type.

   Answer: sizeof operator

53. Once we have defined a symbolic constant value using #define, that value___during
    program execution.

   Answer: Can be changed.

54. Which one of the following is the correct statement about operator overloading?

   Answer: Arithmetic operators can be overloaded only.

55. We cannot increment____.

   Answer: References.

56. Friend functions are____.

More CS201 files

All CS201 files · Midterm Prep 2026 · MCQs Bank