- Type
- Quiz
- Course
- CS201 Introduction to Programming
- Size
- PDF 170 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 1, 2, 3 of 7. Download the file for all 7 pages.
CS201: Introduction to Programming.
Quiz No. 1
24 November 2014.
- Return type of a function that does not return any value must be
char int
void
double
- A function’s prototype is written __________the function call. Select correct option:
After
Before
With At the end of
- What will be the size of the following character array? char name[] = “Adeel”; Select correct option:
- In switch statement there can be _______ default statements. Select correct option:
- _________ will be used for enclosing function statements into a block. Select correct option:
Q6. From following; which one is the correct syntax of an array initialize: Array size is 10 and it is of double data type to value 0?
arr[10] = {0.0}; double arr[10]= 0.0;
double arr[10] = {0.0};
double arr[] = 0.0;
- Which of the function call is call by value for the following function prototype? float add(int); Select correct option:
add(&x);
add(x);
add(int x); add(*x);
- A function is a block of statements that can be defined once and used ________ in the program.
one time 2 time three time as many times as user wants
- What will be the size of following array? int arr[29]
- Which of the following function call is “call by reference” for the following function
add(&x); add(int x); add(x);
add(*x); *
- The string in the array is terminated by a _______
nil
null *
on
- If statement is used to terminate the processing of a particular case and exit from switch structure.
if goto break continue break i think
- will be used for enclosing function statements into a block.
- Default mechanism of calling a function by passing it array is call by ________ and in case of passing variable is call by ________
Reference, Reference
Reference, value *
Value, Reference Value, Value
- What is the output of the following code, if the first case is true switch (var) { case ‘a’:
apple apple anyfruit
apple banana mango *
none of above
- Null character is represented by _________ in C++.
/0
\0 *
\n \t
Related CS201 files
All CS201 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.