C Control Statements Quiz

C Control Statements Quiz

University

14 Qs

quiz-placeholder

Similar activities

[CONTROL FLOW STATEMENTS | DIFFICULT]

[CONTROL FLOW STATEMENTS | DIFFICULT]

University

15 Qs

Control Statements

Control Statements

University

10 Qs

Programming

Programming

University - Professional Development

12 Qs

Python Loops

Python Loops

University

17 Qs

Unit -2 : Assignment 1

Unit -2 : Assignment 1

University

10 Qs

C Programming-Quiz 1

C Programming-Quiz 1

University

9 Qs

CC113B-LoopStatementsQuiz-BSCS1A

CC113B-LoopStatementsQuiz-BSCS1A

University

14 Qs

Loops-2

Loops-2

University

15 Qs

C Control Statements Quiz

C Control Statements Quiz

Assessment

Quiz

Computers

University

Medium

Created by

Satheesh D

Used 3+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of control statement executes statements sequentially?

Conditional

Sequential

Iteration

Jump

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a type of conditional control statement?

Else-if ladder

For loop

Switch case

If statement

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of iteration control statements?

To execute statements based on conditions

To execute statements repeatedly

To jump to a different part of the program

To execute statements sequentially

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which loop is guaranteed to execute at least once?

For loop

While loop

Do-while loop

Nested loop

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'break' statement do in a loop?

Restarts the loop

Pauses the loop

Exits the loop immediately

Continues to the next iteration

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid syntax for an if statement?

if (condition) { statements; }

if { condition } statements;

if (condition) statements;

if condition { statements; }

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'continue' statement?

To exit the loop

To terminate the program

To restart the loop

To skip the current iteration

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?