Control Structures  C#

Control Structures C#

University

20 Qs

quiz-placeholder

Similar activities

logica excel

logica excel

1st Grade - University

21 Qs

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

CIS2303 Week 4_5 Ch_3

CIS2303 Week 4_5 Ch_3

University

18 Qs

WML & WAP

WML & WAP

University

20 Qs

U3BigData01

U3BigData01

University

18 Qs

Software Engineering Quiz 1

Software Engineering Quiz 1

University

20 Qs

Arduino Loop

Arduino Loop

2nd Grade - University

20 Qs

Python List

Python List

4th Grade - University

15 Qs

Control Structures  C#

Control Structures C#

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Long Trần

Used 47+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?