Visual C# Quiz - Chapter 5: Loops, Files, and Random Numbers

Visual C# Quiz - Chapter 5: Loops, Files, and Random Numbers

12th Grade

15 Qs

quiz-placeholder

Similar activities

Mengenal Jendela dan Ikon Microsoft Excel

Mengenal Jendela dan Ikon Microsoft Excel

7th Grade - University

15 Qs

Chapter 2: Input Device

Chapter 2: Input Device

12th Grade - University

12 Qs

TRẮC NGHIỆM TIN 12 KỲ II

TRẮC NGHIỆM TIN 12 KỲ II

10th - 12th Grade

10 Qs

Hệ Điều Hành Của Máy Tính

Hệ Điều Hành Của Máy Tính

10th Grade - University

10 Qs

3rd week g9 summative

3rd week g9 summative

7th - 12th Grade

15 Qs

TEST1.PY

TEST1.PY

10th Grade - University

20 Qs

tin 10 l11

tin 10 l11

12th Grade

10 Qs

Berpikir Komputasional

Berpikir Komputasional

9th - 12th Grade

20 Qs

Visual C# Quiz - Chapter 5: Loops, Files, and Random Numbers

Visual C# Quiz - Chapter 5: Loops, Files, and Random Numbers

Assessment

Quiz

Computers

12th Grade

Practice Problem

Easy

Created by

Jose Cruz

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does a while loop do?

Does not execute any statements

Repeats a statement until a Boolean expression is true

Executes a statement only once

Repeats a statement as long as a Boolean expression is true

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the structure of a while loop?

if (BooleanExpression) { statements }

do { statements } while (BooleanExpression)

for (Initialization; Test; Update) { statements }

while (BooleanExpression) { statements }

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What type of loop is a while loop considered?

Pretest loop

Counter loop

Posttest loop

Infinite loop

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What happens if the condition of a while loop is false at the start?

The loop will cause an error

The loop will iterate indefinitely

The loop will iterate at least once

The loop will not iterate at all

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is an infinite loop?

A loop that executes a fixed number of times

A loop that never starts

A loop that repeats until interrupted

A loop that executes only once

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What do the ++ and -- operators do?

Multiply and divide a variable

Reset a variable to zero

Add and subtract a variable

Increment and decrement a variable

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the general format of a for loop?

for (Initialization; Test; Update) { statements }

while (BooleanExpression) { statements }

do { statements } while (BooleanExpression)

if (BooleanExpression) { statements }

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?