CS201P Lab Quiz 6 by Team Aiza
- Type
- Quiz
- Course
- CS201P Introduction to Programming (Practical)
- Size
- PDF 344 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
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
Related CS201P files
All CS201P files →Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.