Skip to content
VUBuddy

CS201P Quiz 12 File 2 Jan 2024 by Miss Mehwish

Introduction to Programming (Practical) PDF 183 KBUpdated 23 Oct 2026
Quiz CS201P Quiz 12 File 2 Jan 2024 by Miss Mehwish PDF 183 KB
vubuddy.com
Type
Quiz
Course
CS201P Introduction to Programming (Practical)
Size
PDF 183 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 183 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 page 1 of 2. Download the file for all 2 pages.

Past Papers for Mids./Finals are also Available

  1. `calloc()` functions allocates multiple blocks of memory, and each block has:
  • A) Different length
  • B) Different size
  • C) Same size
  • D) Same length

Correct option: C) Same size

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

Correct option: B) NULL

Q3. Which one is the correct syntax for the declaration of a function that can return a reference?

  • A) &function_name datatype (parameter list)
  • B) datatype (parameter list) &function_name
  • C) datatype& function_name (parameter list)
  • D) &datatype function_name (parameter list)

Correct option: C) datatype& function_name (parameter list)

  1. The data members that are visible only from inside the class and hidden from the outside are known as:
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.