Fundamentals of



Download 9.46 Mb.
Page57/57
Date09.01.2017
Size9.46 Mb.
#8172
1   ...   49   50   51   52   53   54   55   56   57

24.

Character or integer constant Expression with variable Character or integer variable All of the above

We can use to perform a set of instructions repeatedly.



25.

A. Switch

B. Loop

C. Header file

D. Conditional statement

=n the syntax while ( xxx ) xxx denotes


A.

B.

C.

D.

26.

Condition

Statement

Function

Variable

Out of the following is a loop.




A. Switch



27.


28.

29.
30.
31.
32.
33.
34.
35.

B. While


C. Continue

D. Break

The condition in a loop should become Sometime, otherwise loop would be executed

forever (infinite loop).

A. False

B. Equal

C. True

D. None

=n the syntax “xxx(int a a 10 a++’ xxx means

A. While

B. For

C. If

D. Switch

n else” statement is always associate with

A. For

B. While

C. Case

D. If

Statement should be ended with

A. Semicolon

B. Full stop C. Hyphen D. Comma



Which loop executes statements within a loop at least ones?

A. While

B. Both A & C

C. for

D. do While

What does continue statement do?

A. Take the control back to the starting of loop, bypassing the remaining statement.

B. Executes all remaining statements concurrently.

C. Break the loop and take the control outside of loop

D. None of the above

Switch can be replaced by

A. For loop

B. =f else statements

C. While loop

D. All above

While statement can be used to show menu at least ones in menu drive program.

A. Do while

B. While

C. For

D. =f Else

A block which accepts parameters and can return a value is called as

A. Loop

B. Preprocessor

C. Preprocessor

D. Function



36.
37.
38.

Select valid function call for function “void display() ,printf(“:ellow World”) -”



A. display()

B. Call display()

C. Display;

D. display();

Arguments/Parameters are use to

A. Get return value for a function

B. Pass input value to a function

C. To call a function

D. Define a function

Any function by default return an value.

A. Int

B. Char

C. Float

D. Double





Answers




1.C

2.C

3.A

4.C

5.A

6.C

7.A

8.B

9.B

10.A

11.C

12.C




13.A

14.C

15.A

16.B

17.A

18.B

19.A

20.B

21.B

22.A

23.A




24.A

25.B

26.A

27.B

28.A

29.B

30.D

31.A

32.D

33.A

34.B




35.A

36.D

37.D

38.B

























.








Download 9.46 Mb.

Share with your friends:
1   ...   49   50   51   52   53   54   55   56   57




The database is protected by copyright ©ininet.org 2024
send message

    Main page