y=(x1,+x2+x3... +xn) is
a. y=x+n-1 xi i=1
b. y=xn+n xi i=1
c. y=xn+xi
d. y=xn+n-1 i=1 xi
e. none of the above
Ans: d
2. Which of the folowing, is a storage class specification of C ?
a. Automatic
b. Mean
c. External
d. String
e. none of the above
Ans: d
3. The statement following else in an 'if-else' construct are executed when
a. the conditional statement following the 'if' is false
b. the conditional statement following the 'if' is teue
c. the conditional statement following the 'else' is false
d. the conditional statement following the 'else' is true
e. none of the above
Ans: a
4. Given these variables
char ch;
short i;
unsigned long u1;
float f;
the overall type of this expression is
a. char
b. unsigned
c. float
d. double
e. none of the above
Ans: c
5. What will this program display ?
#include
main()
{
float f;
f= 10/3;
printf("%f", f);
}
a. 3.3
b. 3.000000
c. 3
d. 3.1
Ans: b
No comments:
Post a Comment