". VdoTips: C FUNDAMENTAL MCQ 6

APPLY LATEST GOVT JOBS

hi

C FUNDAMENTAL MCQ 6

Q.7 The following program fragment
int *a; *a = 7;
(A) assigns 7 to a
(B) results in compilation error
(C) assigns address of a as 7
(D) segmentation fault


Q.8 A pointer variable can be
(A) passed to a function as argument.
(B) changed within function.
(C) returned by a function.
(D) assigned an integer value.



Q.9 ‘C’ is often called a
(A) Object oriented language
(B) High level language
(C) Assembly language
(D) Machine level language


Q.10 The loop in which the statements within the loop are executed at least once is called (A) do-while
(B) while
(C) for
(D) goto