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
Similar Resources on Wayground
20 questions
Python Programming

Quiz
•
University
20 questions
Looping & Functions C++

Quiz
•
University
15 questions
while loop

Quiz
•
University
17 questions
Java Programming Quiz

Quiz
•
University
15 questions
PYTHON BOOTCAMP

Quiz
•
University
22 questions
C Language Loop and Array Quiz

Quiz
•
University
21 questions
Chp. 4 Alice Loop Structures

Quiz
•
12th Grade - University
20 questions
Computer Knowledge

Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University