Skip to content
VUBuddy

CS201P Lab Quiz 6 by Team Aiza

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

1: In C++, all the string manipulation function are defined inside _______ header file. Select the correct option string.h stdio.h iostream conio.h 2: What will be the output of the following code?int main(){ int number[5] = {10,20,30,40,50}; cout << *(number+3);}Select the correct option

3: In C++, atof () function is used to convert ________.Select the correct option

Character string to short

4: What will be the output of the following code?int main (int argc, char **argv) {cout<<argc;}Select the correct option Null

5: From the following code, what will be the size of the array “name”?char name [] = “My full name”;Select the correct option 6: What will be the output of the following code?int main(){ char str1[] = “Hello ”; char str2[] = “World!”; cout << strcat(str1,str2);}Select the correct option World! HelloWorld! HelloHello World!

7: In C++, atoi () function is used to convert _______.Select the correct option

Character string to double 8: To perform I/O operations on file, we must use _____________ header file. Select the correct option Fstream Istream Cstream hstream

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.