MCQ Set1
MCQ Set1
2)Suppose that x is a one dimensional array, then choose the correct answer regarding array.
a. *(x + n) is same as &x[n]
b. *&x[n] is same as x + n
c. *(x + n) is same as x[n] +1
d. *(x + n) is same as *x[n]
6)C programming: The compiler will give an error if we attempt to get the address of a variable with
_________ storage class.
a. register keyword
b. extern keyword
c. static keyword
d. auto keyword
7)What would be the equivalent pointer expression for referring the array?
arr[p][q][r][m]
a. * (*(*(*(arr+p)+q)+r)+m)
b. arr[0];
c. *((((arr+p)+q)+r)+m)
d. None of the above.
}
a. CAREERRIDE
b. ERRIDE
c. REERRIDE
d. None of the above.
main()
{
char c = 'A'+255;
printf("%c", c);
}
a. A
b. B
c. Overflow error at runtime
d. Compiler Error
12) What is the output of the following program?
#include<stdio.h>
main()
{
char *p = NULL;
printf("%c", *p);
}
a. NULL
b. 0
c. Compile error
d. Runtime error.
13)Which among the below specified condition is applicable if the Queue is non - empty?
a. rear > front
b. rear < front
c. rear = front
d. Unpredictable
18)From the following statements which of them is/are true about SQL
1. All attributes used in the group by clause must appear in the select clause
2. An SQL query can contain a having clause only if it has a group by clause
3. An SQL query can contain a having clause even if it does not have a group by clause
4. Not all attributes used in the group by clause need to appear in the select clause
a. 3 and 4
b. 1 and 2
c. 1,3 and 4
d. All of the above