TCS Company Programming Arrays

Which of the following statements are correct about 6 used in the program?
int num[6];
num[6]=21;

A)In the first statement 6 specifies a particular element , whereas in the second statement it specifies a array size. B)In both the statements 6 specifies array size C)In the first statement 6 specifies a array size, whereas in the second statement it specifies a particular element of array. D)In the first statement 6 specifies a particular element, whereas in the second statement it specifies a type.

Read Solution (Total 11)

TCS Other Question

Select the most appropriate word to fill in the blank.
After the marathon, some of the competitors felt completely _______
A)run out B)cut up C)done out D)done in
The ratio in which tea costing Rs. 192 per kg is to be mixed with tea costing Rs. 150 per kg, so that the mixed tea when sold for Rs. 194.4 per kg, gives a profit of 20%
A)5:3 B)5:2 C)2:5 D)3:5