1.1 If a=8, b=3 and c=-5 are integers, then value of a*b/c is
1.2 Which of the following is a valid identifier?
1.3 Which of the following is a valid string constant?
D) $ programming $
1.4 How will you free the allocated memory?
1.5 If i = 8 and j = 5 are two integers, then the value of (i>0) || (j < 5) is
1.6 How many times "INDIA" will get printed?
for(x=-1; x<=10; x++)
if(x < 5)
A) Infinite times
B) 11 times
C) 0 times
D) 10 times
1.7 A group of related data that share a common name is
D) None of the above
An array is a collection of data items, all of the same type, accessed using a common name. A one-dimensional array is like a list; A two dimensional array is like a table; The C language places no limits on the number of dimensions in an array, though specific implementations may.
1.8 In ‘C’, if you pass an array as an argument to a function, what actually gets passed?
A) Value of elements in array
B) First element of the array
C) Base address of the array
D) Address of the last element of array
1.9 What does fp point to in the program?
A) The first character in the file
B) A structure which contains a char pointer which points to the first character of a file
C) The name of the file
D) The last character in the file
1.10 Which of the following language is predecessor to ‘C’ Programming Language ?
The immediate predecessor of C is a language called B, created by Ken Thompson as part of the early development of the Unix operating system. B was in turn based on a language called BCPL, which was a variant of CPL intended for system programming such as compiler writing.