1.
What is right way to Initialize array?
ans:- A
2.What will be the output of the program ?
ans:- A
3.What will be the output of following program code?
ans:- C
4.An array elements are always stored in ________ memory locations.
ans:- A
5.Let x be an array. Which of the following operations are illegal?
I. ++x
II. x+1
III. x++
IV. x*2
I. ++x
II. x+1
III. x++
IV. x*2
ans:- D
6.What will be printed after execution of the following code?
ans:- D
7.What does the following declaration mean?
int (*ptr)[10];
int (*ptr)[10];
ans:- B
8.Array passed as an argument to a function is interpreted as
ans:-C
9.What will be the output of the program if the array begins at 65472 and each integer occupies 2 bytes?
ams:- C
10.What will be the output of the program ?
ans:- C
11.If the two strings are identical, then strcmp() function returns
ans:- B
12.The library function used to find the last occurrence of a character in a string is
ans:-D
13.Which of the following function is used to find the first occurrence of a given string in another string?
ans:- C
14.What will be the output of the program ?
ans:-A
15.What will be the output of the program ?
ans:- D
16.What will be the output of the program ?
ans:- D
17.Which of the following correctly accesses the seventh element stored in arr, an array with 100 elements?
ans:- A
18.What will be the correct output of the following program?
ans:- D
19.String concatenation means -
ans:- A
27.What will be the output of the program ?
ans:- A
0 Comments