Search Header Logo

C#-Loop

Authored by Laura Natali

Computers

10th Grade

Used 6+ times

C#-Loop
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The purpose of using a loop is to

Repeat operation(s) many times

make decision

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the C# loops is not a pretest loop?

for loop

while loop

do while loop

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

The break command is used to exit a loop.

True

False

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the followings is not a nested loop?

for(i=0;i<10;i++)

for(j=1;j<i+2;j++)

for(i=0;i<10;i++)

Console.Write("i={0}",i);

for(j=1;j<i+2;j++)

Console.Write("j={0}",j);

for(i=0;i<10;i++)

while(j%2!=0){ Console.Write("{0}\t{1}", j, j++);}

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following statements about the while loop is not true?

The while loop is a posttest loop.

Testing condition is made before each iteration.

The while loop statement must terminate with a semi-colon.

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Qualè l'output del seguente codice?

1 2 3 4 5 6 7 8 9 10

0 1 2 3 4 5 6 7 8 9 10

1 2 3 4 5

0 1 2 3 4

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Qual è l'output del seguente frammento di codice?

if Clause executed

else Clause executed

if Clause executed

Entered Main Function

else Clause executed

Entered Main Function

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?