Skip to content
VUBuddy

CS201 Solved Quiz 1 with References

Introduction to Programming PDF 170 KBUpdated 23 Oct 2026
Quiz CS201 Solved Quiz 1 with References PDF 170 KB
vubuddy.com
Type
Quiz
Course
CS201 Introduction to Programming
Size
PDF 170 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 170 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 1, 2, 3 of 7. Download the file for all 7 pages.

CS201: Introduction to Programming.

Quiz No. 1

24 November 2014.

  1. Return type of a function that does not return any value must be

char int

void

double

  1. A function’s prototype is written __________the function call. Select correct option:

After

Before

With At the end of

  1. What will be the size of the following character array? char name[] = “Adeel”; Select correct option:
  2. In switch statement there can be _______ default statements. Select correct option:
  3. _________ 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;

  1. 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);

  1. 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

  1. What will be the size of following array? int arr[29]
  2. Which of the following function call is “call by reference” for the following function

add(&x); add(int x); add(x);

add(*x); *

  1. The string in the array is terminated by a _______

nil

null *

on

  1. If statement is used to terminate the processing of a particular case and exit from switch structure.

if goto break continue break i think

  1. will be used for enclosing function statements into a block.
  2. 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

  1. 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

  1. Null character is represented by _________ in C++.

/0

\0 *

\n \t

All CS201 files →
CS201 Introduction to Programming All CS201 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.