Q.1
A declaration float a, b; occupies …….of
memory.
Ans. (A)4 (B)
8 (C)16 (D)32
Q.2
In C, File manipulation function are available in which header file.
Ans. (A)stdlib.h
(B)math.h (C)files.h (D)conio.h
Q.3
Which of the following header file is required for strcpy() function?
Ans. (A)stdio.h
(B) strcpy.h (C) string.h (D)conio.h
Q.4
Which operator is called a ternary operator?
Ans. (A)Conditional Operator (B)Logical Operator (C)Bitwise Operator
(D)None Of the Above
(D)None Of the Above
Q.5
Continue statement is used for.
Ans.(A)to
go to the next iteration in a loop
(B)come out of a loop
(C)exit and return to the main function
(D)restarts iterations from beginning of loop
Q.6
Name of conditional control structure.
Ans. (A)goto (B)
if-else (C)continue (D)break
Q.7
Name of unconditional control structure.
Ans. (A)while
(B)goto (C)if-else (D)if
Q.8
Find the output of following segments.
main()
{
long i = 40000;
printf(“%d”, i);
}
the
output is
(A)
4000 (B) 40000 (C) 0 (D) -1
Q.9
A statement differ from expression by terminating with a.
Ans. (A) comma (,) (B) colon(:) (C) dot(.) (D) semicolon(;)
Q.10
C supports how many basic looping constants.
Ans.( (A)1 (B) 3 (C)4
(D)5
No comments:
Post a Comment