Control Statement

Control Statement

Professional Development

15 Qs

quiz-placeholder

Similar activities

CODE STORM

CODE STORM

Professional Development

20 Qs

PL SQL

PL SQL

University - Professional Development

20 Qs

2.3-4-5 Calling a (non-)Void Method (with Parameters)

2.3-4-5 Calling a (non-)Void Method (with Parameters)

Professional Development

14 Qs

Basic syntax

Basic syntax

Professional Development

10 Qs

Wrath RPG Quiz

Wrath RPG Quiz

KG - Professional Development

15 Qs

Weekly Contest #1 - TechXNinjas

Weekly Contest #1 - TechXNinjas

Professional Development

12 Qs

Java_operators

Java_operators

Professional Development

20 Qs

Batch E420 - Python module Quiz

Batch E420 - Python module Quiz

Professional Development

15 Qs

Control Statement

Control Statement

Assessment

Quiz

Education

Professional Development

Hard

Created by

Farhan Mulla

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?