Search Header Logo

C# Review with Loops

Authored by Tim Helland

Computers

9th - 12th Grade

Used 34+ times

C# Review with Loops
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

51 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Media Image

The first value printed will be

0
1
99
100

2.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Media Image

The last value printed will be?

0
1
99
100

3.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Media Image

If the loop body was changed from count ++; to counter+=5
How many times would the loop body execute?

19
20
99
100

4.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Which of the following is an advantage of a sentinel-controlled loop?

The number of iterations doesn't have to be known.
An extreme or dummy value can be entered.
The loop is always performed at least one time.
It could be used with the while form of the loop.

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is output by the code?

2

3

4

5

6

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is the last line output by the code?

0

2

4

6

8

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is output by the code?

123

12

1234

21

321

Access all questions and much more by creating a free account

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

Already have an account?