Search Header Logo

looping and branching statements in C

Authored by GEETHAKUMAR CSC

Computers

9th Grade

Used 79+ times

looping and branching statements in C
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select different parts of "for" looping statement-

Initialization part

Condition Part

Update part

All of these

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of following code- for(int i = 1; i < 5; i++ )

{

System.out.print(i);

}

13

135

1234

12345

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

_________ in programming come into use when we need to repeatedly execute a block of statements.

nested for loop

none

for loop

loop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The __________ statement uses single expression for multiple choices

loop

switch

multiple value

if else

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

in __________ the controlling condition appears at the start of the loop and _______ at the end of the loop

While / Do while

Do while/While

None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If there is more than one statement in the block of a for loop, which of the following must be placed at the beginning and the ending of the loop block? a.  b.  c. . d. 

parentheses ( )
braces { }
brackets [ ]
arrows < >

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an Array?

A group of elements of same data type.

An array contains more than one element

Array elements are stored in memory in continuous or contiguous locations.

All the above.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?