Skip to content
VUBuddy

CS201P Final Term Quiz 10 July 2023 by Miss Mehwish

Introduction to Programming (Practical) PDF 543 KBUpdated 23 Oct 2026
Final term past paper CS201P Final Term Quiz 10 July 2023 by Miss Mehwish PDF 543 KB
vubuddy.com
Type
Final term past paper
Course
CS201P Introduction to Programming (Practical)
Size
PDF 543 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 543 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 1, 2, 3 of 4. Download the file for all 4 pages.

We also provide Past papers for Mids. and Finals Cross Check your answers before submitting directly from the file. We are not responsible for 100% correction as human error exists

Q1. The statement `char arr[10];` is an example of a type of ____________ memory allocation. Options:

  1. Static
  2. Dynamic
  3. Null Value
  4. Built-in

Correct option: Static

Q2. Which function is automatically called when an object of a class is initiated? Options:

  1. Destructor
  2. Constructor
  3. Friend function
  4. Utility function

Correct option: Constructor

Q3. What will be the output of the following code?

```cpp void sampleFunction(int = 5, float = 4.1, char = 'A'); int main() { sampleFunction(50, 3.2);

void sampleFunction(int one, float two, char three) { cout << one << ", " << two << ", " << three;

a) 50, 3.2, A b) 5, 4.1, A c) 50, 4.1, A d) 5, 3.2, A

Correct option: 50, 3.2, A

Q4. In C++, the name of the _________ is the same as that of a class with a preceding tilde (~) sign.

  1. Destructor
  2. Constructor
  3. Friend function
  4. Utility function

Correct option: Destructor

Q5. Which is not a preprocessor directive of C-language? Options:

  1. #endif
  2. #if
  3. #else
  4. #startif

Correct option: #startif

Q6. Representing logical depiction of the solution to the problem is known as a ______________. Options:

  1. Loop
  2. Flowchart
  3. Structure
  4. Sequence

Correct option: Flowchart

Q7. _________ is a user-defined data type.

  1. Function
  2. Class
  3. Constructor
  4. Pointer
All CS201P files →
CS201P Introduction to Programming (Practical) All CS201P handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.