
C# Control Structures Quiz
Authored by Rhayz Bautista
Computers
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
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
Visual Basic 2010
Quiz
•
8th Grade - University
12 questions
1.2.4. Types of Programming Language
Quiz
•
12th Grade
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
8 questions
Basic computer
Quiz
•
9th - 12th Grade
10 questions
Identify the type of keywords
Quiz
•
9th - 12th Grade
15 questions
Problem Solving using Python and R - UNIT II - Dictionary
Quiz
•
12th Grade
10 questions
ICT as Platform for Change
Quiz
•
11th - 12th Grade
10 questions
emtech
Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade