y[4];
y[3];
y[2];
none of given
From the following; which one is the range of Random number generator function rand()?
0 – 32768
1 – 32768
0 – 32767
1 – 32767
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;
The string in the array is terminated by a _____
zero
nil
null
one
In C/C++; by default arguments are passed by _____ to a function.
Reference
Value
Type
Data
1
char name [] = “Hello World” ; In the above statement, a memory of _______ characters will be allocated
13
11
12
10
_______ Keyword is used to return some value from a function.
break
return
continue
goto
Which of the function call is call by value for the following function prototype? float add(int);
add(&x);
add(x);
add(int x);
add(*x);
The increment of a pointer depends on its_________.
variable
value
data type
None of the given
The ASCHI code of null character is_________
000
010
111
110
Pointers are a special type of __________in which a memory address is stored
Select correct option:
variables
Location
Characters
None of the given
Transpose of a matrix means that when we interchange rows and columns_____________
Select correct option:
the first row becomes the Last column
the first row becomes the first column
the Last row becomes the first column
the first column becomes the first row
Pointers store the ____________________
Select correct option:
value of a variable
memory address
characters
None of the given
Which of the following function call is “call by reference” for the following function prototype? int add (int *);
Select correct option:
add(&x);
add(int x);
add(x);
add(*x);
The name of the array is a constant pointer which contains the memory address of the ____________of the array.
Select correct option:
first element
Last element
second element
None of the given
array name always contains the memory address of the ___________of the array
Select correct option:
entire elements
last element
first element
None of the given
At the___________, we try to break up the problem into functional units
Select correct option:
analysis phase
design phase
Implementation phase
None of the given