Skip to content
VUBuddy

CS201P Quiz by Iqra Azhar

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

Q1. In C++, which operator is used for memory allocation?

  •  Allocate_memory
  • New ✅
  •  Calloc
  •  Allocate

Q2. Which one is the correct syntax to declare the friend function?

  •  FRIEND friend_function_name(int, char);

 friend return_type friend_function_name(int, char); ✅

  •  FRIEND return_type friend_function_name(int, char);
  •  Friend return_type (int, char);
  1. The data members that are visible only from inside the class and hidden from the outside are known as:
  • Private ✅
  •  Public
  •  Private and Public
  •  Friend
  1. An entry in an online encyclopedia that refers to another entry whose title has been changed is an example of:

 Dangling pointer ✅

  •  This pointer
  •  Reference pointer

5. In C/C++ language, memory at runtime is allocated from:

  •  Stack
  •  Hard disk
  •  ROM

 Free store (heap) ✅

  1. If the memory in the free store is not sufficient enough to fulfill the request, malloc() function returns:
  • NULL ✅
  •  -1
  •  0
  •  1
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.