CS201P Quiz 2 by Iqra Azhar
- Type
- Quiz
- Course
- CS201P Introduction to Programming (Practical)
- Size
- PDF 914 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, 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)
Related CS201P files
All CS201P files →- CS201P Final Term Current Paper by Masters Final term PDF 1.9 MB
- CS201P Quiz June 26 2025 by Lucky Quiz PDF 200 KB
- CS201P Quiz July 8 2025 by Lucky Quiz PDF 367 KB
- CS201P Lab Quiz 6 by Team Aiza Quiz PDF 344 KB
- CS201P Lab Quiz 7 by Iqra Azhar Quiz PDF 473 KB
- CS201P Lab Quiz 3 by Iqra Azhar Quiz PDF 607 KB
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.