Skip to content
VUBuddy

CS201P Quiz 2 by Iqra Azhar

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

In the call by reference method, which operator is used to get the address of a variable?

So, the correct option is .

In C++, all the string manipulation function are defined inside _______ header file.

stdio.h string.h conio.h iostream The correct answer is <string>.

What will be the output of the following code?

int main() Character string to integer Character string to long integer Character string to short Character string to float Therefore, the correct option is:Character string to float

___ character is used to terminate a string. Select the correct option Full Stop Null End Null

In C++, the precise way to declare a pointer is.

int ptr*; int & ptr; int ptr; int * ptr; int *ptr;

Which of the following is the correct way to initialize all the elements of array with 0?

int arr[5]=All_Zero; int arr[5]={5&0} int arr[5]={5(0)}; int arr[5]={0};

The correct way to initialize all elements of an array with 0 in C++ is: int arr[5] = {0};

n C++, what is the correct syntax for accessing the fifth element of an array?

a(5) a(4)

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.