Skip to content
VUBuddy

CS201P Final Term Quiz 7 July 2023 by Miss Mehwish

Introduction to Programming (Practical) PDF 588 KBUpdated 23 Oct 2026
Final term past paper CS201P Final Term Quiz 7 July 2023 by Miss Mehwish PDF 588 KB
vubuddy.com
Type
Final term past paper
Course
CS201P Introduction to Programming (Practical)
Size
PDF 588 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 588 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 6. Download the file for all 6 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

MCQ 1: Question: What will be the output of the following code?

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, 4.1, A B) 5, 4.1, A C) 5, 3.2, A D) 50, 3.2, A

Correct option: D) 50, 3.2, A

MCQ 2: Question: If the memory in the free store is not sufficient enough to fulfill the request, `malloc()` function returns ________. A) 0 B) 1 C) -1 D) NULL

Correct option: D) NULL

MCQ 3: Question: In the following code, what will be the output of `i`?

#include<iostream> using namespace std; int main() { int i; int &j = i; i = 123; cout << " The value of i = " << i;

A) 012345 B) x C) 123 D) 321

Correct option: C) 123

MCQ 4: Question: In C++, `sizeof` operator is used to determine ____________. Options: A) Number of words B) Length of string C) Length of words D) Size of data type

Correct option: D) Size of data type

MCQ 5: Question: The data members that are visible only from inside the class and hidden from the outside are known as: A) Public B) Friend C) Private D) Public and Private

Correct option: C) Private

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.