
C# Control Structures Quiz
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Rhayz Bautista
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What does the 'if' statement do in C#?
Declares an array
Specifies a block of code to be executed if a condition is false
Specifies a block of code to be executed if a condition is true
Loops through a block of code
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to check if two values are equal in C#?
>
!=
==
<=
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'else' statement?
To specify a block of code if the condition is true
To specify a block of code if the condition is false
To loop through elements
To declare an array
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'switch' statement do?
Selects one of many code blocks to be executed
Checks for equality
Loops through a block of code
Declares a variable
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when the 'break' keyword is encountered in a switch statement?
It continues to the next case
It exits the switch block
It loops back to the start
It executes the default case
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop executes at least once before checking the condition?
for loop
foreach loop
while loop
do/while loop
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'continue' statement in a loop?
To exit the loop
To skip the current iteration and continue with the next
To declare an array
To check a condition
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
TMK TAHUN 6
Quiz
•
10th - 12th Grade
10 questions
Greetings
Quiz
•
1st Grade - University
10 questions
DATA STRUCTURES
Quiz
•
12th Grade
10 questions
Printers
Quiz
•
9th - 12th Grade
10 questions
Berfikir Komputesional
Quiz
•
9th - 12th Grade
15 questions
User Interface Design - Topic 1
Quiz
•
12th Grade
10 questions
Treasure Hunt
Quiz
•
12th Grade
10 questions
Initial Assessment - Cybersecurity Awareness
Quiz
•
9th Grade - Professio...
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
15 questions
Internet Vocabulary Notebook Check #2 - CTEA(2024)
Quiz
•
12th Grade
11 questions
Internet Terms Vocabulary- Notebook Check #1- CTEA
Quiz
•
12th Grade
50 questions
Money Matters Fall 2025 Final Exam — Worksheet Questions
Quiz
•
12th Grade
47 questions
CSF Final Exam Practice
Quiz
•
9th - 12th Grade
