Programming for Problem Solving (3110003) MCQs

MCQs of Fundamentals of C

Showing 31 to 40 out of 107 Questions
31.

An arithmetic expression without paranthesis will be evaluated from left to right

(a)

True

(b)

False

Answer:

Option (a)

32.

In C Programming, the statement a = a+1 and a+=1 will produe same result

(a)

True

(b)

False

Answer:

Option (a)

33.

Within a expression, _________ precedence operators will be evaluated first

(a)

Similar

(b)

Higher

(c)

Lower

(d)

None of these

Answer:

Option (b)

34.

What will the value of variable a?

int a = 10 + 2 * 12 / (3*2) + 5;

(a)

31

(b)

19

(c)

11

(d)

29

Answer:

Option (b)

35.

Which of the following correctly shows the hierarchy of arithmetic operation in C?

(a)

/+*-

(b)

*-/+

(c)

/*+-

(d)

+-/*

Answer:

Option (c)

36.

Which is a correct 'C' expression?

(a)

z = (x+y);

(b)

z = [x+y]

(c)

z = {x+y}

(d)

z = {(x+y)};

Answer:

Option (a)

37.

Which header file is essential for using scanf function?

(a)

ctype.h

(b)

string.h

(c)

conio.h

(d)

stdio.h

Answer:

Option (d)

38.

Macro is used to __________________.

(a)

Save Memory

(b)

fast execution

(c)

Both a & b

(d)

non of above

Answer:

Option (b)

39.
Which of the following is ternary operator?
(a) ??
(b) :?
(c) ?:
(d) ::
Answer:

Option (c)

40.
Which header file is essential for using scanf() function?
(a) ctype.h
(b) string.h
(c) conio.h
(d) stdio.h
Answer:

Option (d)

Showing 31 to 40 out of 107 Questions