GEMS WORLD COLLEGE
NAME:
CLASS:12th SUBJECT:COMPUTER
:SECTION-A:
Q: CHOOSE THE CORRECT OPTION (10)
1: The function of Arguments are separated with______
a: colon(:) b: comma(,) c: semicolon(;) d: None of these
2: Which of the following identifies the first element in array named
temp?
a: temp[1] b: temp(1) c: temp[0] d:temp(0)
3: We declare a funtion with ____ if it does have any return type
a: double b: void c: int d: long
4: Variables inside parenthesis of functions declarations have __ level
access
a: global b: local c: universal d: module
5: Given the following:
int k[3][5]=
{{3,10,12,27,12},
{21,20,18,25,1},
{15,16,17,44,4}};
what is in k[1][3]?
a: 12 b: 18 c:15 d:25
6: What is the index number of the last element of an array with 5
elements?
a: 0 b: 5 c: 6 d: 4
7: ____ variables are those variables which are preceded by the
keyword static while declaring them
a: local b: static c: parmeters d: global
8: Which of the following is correct declaration of array?
a: int arr: b: int arr{10}; int arr[10]; c: int arr(10);
9: Observe the following function declaration
int divide ( int a, int b = 2 )
a: Variable b is of integer type and will always have value 2
b: Variable a and b are of int type and the intial value of both variables is 2
c: Variable b is international scope and will have value two
d: Variable b will have value two if not specified when calling function
10: Which of the following functions is used to append a string onto
the end of another string
a: strcpy b: strcat c: strlen d: strcmp
:SECTION-B:
Q2: SHORT QUESTIONS
ATTEMPT ALL QUESTIONS (30)
1: Define default arguments?
OR
Give two advantages and disadvantages of defaul argument.
2: Differentiate between strlen and strcat functions.
OR
Differentiate between strcpy and strcmp.
3: Write a note on function components with example.
OR
Define different types of functions used in C++ with example.
4: Define string.
OR
Define cin.get function.
5: How string is stored in computer memory.
OR
Write a note on function.
6: What are parameters?
OR
What is function signature?
7: What is one dimensional array?
OR
What is two dimensional array?
8: Define array.
OR
Give two examples of sizeof() function.
9: What is the purpose of sizeof() function.
OR
Give some advantages of array in programming.
10: Which of the following are different parts of function signature.
OR
Define types of parameters with example.
: SECTION-C:
Q3: LONG QUESTIONS
ATTAMPT ALL QUESTIONS (20)
1: Explain the term of function overloading? Give example? How a
function can be overloaded in C++?
OR
Explain function with types,advantages and also explain scope of
variables in function?
2: Explain all the types of Parameters and Function with examples.
OR
Explain strings? How string are defined in C++? Also give examples.
~BEST OF LUCK~