Skip to content
VUBuddy

CS201P Quiz 3 by HB

Introduction to Programming (Practical) PDF 457 KBUpdated 23 Oct 2026
Quiz CS201P Quiz 3 by HB PDF 457 KB
vubuddy.com
Type
Quiz
Course
CS201P Introduction to Programming (Practical)
Size
PDF 457 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 457 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 2, 3 of 4. Download the file for all 4 pages.

In C++, which of the following option is used to declare a class?

  1. cLAss
  2. class
  3. CLASS
  4. Class

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

a. Dynamic · b. Null Value · c. Static · d. Built-in

In C++, the default constructor takes _______.

a. More than two arguments · b. Only one argument · c. Only two arguments · d. No arguments

Which of the following is not true about Destructor?

  1. Destructors take no arguments
  2. Destructors don’t return a value.
  3. Destructors cannot be overloaded.
  4. Destructors cannot be used for memory manipulation.

The bit manipulation operator ______________ is used to check whether a specific bit is set or not.

a. | · b. & · c. ^ · d. *

In C++, when accessing files randomly, which function is used to get current pointer position inside a file?

  1. tellg()
  2. seekg()
  3. seekp()
  4. tellp()

In C++, which operator is used to access the data members of the class?

  1. Plus
  2. Not
  3. And
  4. Dot

What will be the output of the given program?

int main(){ · void * p; · p = calloc(10,sizeof(int));

cout<<"The number of bytes reserved are " << 10*sizeof(int); free (p);

return 0; · a. The number of bytes reserved are 20 · b. Memory error · c. The number of bytes reserved are 40 · d. A compile error

In C++, default visibility of structure is ______.

a. Pass · b. Public · c. Private · d. Protected

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.