GOto

GOto

University

5 Qs

quiz-placeholder

Similar activities

Java Unit 1

Java Unit 1

University

10 Qs

Topic 3: switch statement

Topic 3: switch statement

University

10 Qs

Java MCQ Test on Control Statements

Java MCQ Test on Control Statements

University

10 Qs

PYTHON LOOPING

PYTHON LOOPING

University

10 Qs

c Programming

c Programming

University

9 Qs

Programming in C

Programming in C

University

10 Qs

Conditional and Iterative Statements

Conditional and Iterative Statements

University

10 Qs

C Programming

C Programming

University

6 Qs

GOto

GOto

Assessment

Quiz

Computers

University

Easy

Created by

Abhishek Pandey

Used 1+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the continue statement do in a loop?

Exits the loop

Transfers control to a specific label

Skips the current iteration and proceeds to the next iteration

Returns a value from the function

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is used to transfer control to a specific label in C?

return

break

goto

switch

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will happen if a break statement is encountered in a for loop?

the program terminates immediately

The current iteration of the loop is skipped

The loop is exited, and control passes to the statement after the loop

The loop starts from the first iteration

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is used to skip the remaining code in the current iteration of a loop in C?

break

switch

return

continue

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is required to avoid an infinite loop if a condition is not met inside a loop?

break

goto

return

switch