Control Structures C#
Quiz
•
Computers
•
University
•
Medium
Long Trần
Used 47+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of control structures in programming?
To perform calculations
To manage the flow of execution in a program
To store data
To define objects
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a type of control structure?
Sequence
Selection
Iteration (Repetition)
Encapsulation
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the `if` statement do in a program?
It repeats a block of code
It checks a condition and executes code if the condition is true
It declares a variable
It stops the execution of the program
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of a double-selection structure in C#?
while loop
if statement
if...else statement
do...while loop
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the conditional operator `?:` do in C#?
It repeats a statement multiple times
It acts as a ternary operator that replaces simple if...else statements
It terminates a loop
It breaks the execution of a switch statement
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a "counter-controlled repetition" structure?
A loop where the number of iterations is known in advance
A loop that runs indefinitely
A loop that runs based on user input
A structure used for function calls
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following loops guarantees at least one execution of the loop body?
while loop
for loop
do...while loop
switch statement
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Vistacreate
Quiz
•
University
18 questions
12AIT - All About W3C <3
Quiz
•
10th Grade - University
16 questions
E-Commerce
Quiz
•
University - Professi...
15 questions
8051-MCQ
Quiz
•
University
15 questions
Object Oriented Programming Assessment 1
Quiz
•
University
20 questions
Name The Disney Animation Films
Quiz
•
KG - University
19 questions
DBMS - Fundamentals
Quiz
•
University
15 questions
PICMAKER
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
