Butula TVC CICT II Quiz on Control Structures Quiz

Butula TVC CICT II Quiz on Control Structures Quiz

University

10 Qs

quiz-placeholder

Similar activities

C++ set4

C++ set4

University

10 Qs

C Language Basic Quiz

C Language Basic Quiz

7th Grade - Professional Development

10 Qs

POST TEST MODULE 4

POST TEST MODULE 4

University

10 Qs

Java Lesson 8

Java Lesson 8

5th Grade - University

13 Qs

Modul 2_Tri Aji

Modul 2_Tri Aji

University

10 Qs

ACCESS - DePaul Quiz

ACCESS - DePaul Quiz

KG - University

10 Qs

C programming and Arduino Basics

C programming and Arduino Basics

University

15 Qs

Scratch Programming Quiz

Scratch Programming Quiz

8th Grade - University

15 Qs

Butula TVC CICT II Quiz on Control Structures Quiz

Butula TVC CICT II Quiz on Control Structures Quiz

Assessment

Quiz

Other

University

Hard

Created by

Andrew Wakoli

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is the primary purpose of control structures in programming?

To execute statements in a random order

To enable decision making and repetition

To store data temporarily

To compile the program

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which of the following is NOT a type of control structure in C?

Function structures

Repetition structures

Selection structures

Sequence structures

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What does the 'if' statement do in a program?

Terminates the program

Repeats a block of code multiple times

Executes a block of code only if a condition is true

Executes a block of code unconditionally

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

In a switch statement, what happens when a 'break' statement is encountered?

The switch statement is exited

The program continues to the next line of code

The flow of control jumps to the next case

The program terminates immediately

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which loop structure guarantees that the loop body will execute at least once?

For loop

Do...while loop

Nested loop

While loop

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

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

To restart the loop from the beginning

To exit the loop immediately

To terminate the program

To skip the current iteration and continue with the next

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which of the following is a characteristic of a nested if statement?

It cannot be used with else statements

It must always return a value

It can contain another if statement inside it

It can only contain one condition

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?