Control Statement

Control Statement

Professional Development

15 Qs

quiz-placeholder

Similar activities

Apprenticeship Study at the AMRC TC (Level 3)

Apprenticeship Study at the AMRC TC (Level 3)

Professional Development

13 Qs

Computer Preventive Maintenance

Computer Preventive Maintenance

Professional Development

10 Qs

Mahatma Gandhi Ji Quiz

Mahatma Gandhi Ji Quiz

3rd Grade - Professional Development

20 Qs

UTAR Industrial Session

UTAR Industrial Session

University - Professional Development

15 Qs

Post Test Internal Training TKBT 2 PT APS

Post Test Internal Training TKBT 2 PT APS

Professional Development

20 Qs

Labor Relations and Negotations 1

Labor Relations and Negotations 1

University - Professional Development

15 Qs

NCFTE-2009

NCFTE-2009

Professional Development

10 Qs

Giao tiếp - TTKD HN - Test cuối khóa

Giao tiếp - TTKD HN - Test cuối khóa

Professional Development

20 Qs

Control Statement

Control Statement

Assessment

Quiz

Education

Professional Development

Practice Problem

Hard

Created by

Farhan Mulla

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an arithmetic operator in C?

&&

=

%

|

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a conditional control structure in C?

for

while

if

continue

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int i = 0;

while (i < 3) {

printf("%d", i);

i++;

}

0123

012

123

0 1 2

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to exit a loop immediately in c?

skip

exit

continue

break

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax for a for loop?

for (i = 0; i < 5; i++)

for (i < 5; i++; i = 0)

for (i = 0, i < 5, i++)

for i = 0 to 5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the continue statement in a loop?

Ends the program

Restarts the loop

Skips the current iteration and continues with the next one

Skips the loop entirely

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int x = 5;

if (x > 3) {

printf("Yes");

}

Prints "No"

Prints "Yes"

Prints nothing

Gives error

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?