While Loops

While Loops

9th - 12th Grade

8 Qs

quiz-placeholder

Similar activities

Loops

Loops

9th - 12th Grade

10 Qs

CodeHS 5.7 2D Arrays

CodeHS 5.7 2D Arrays

9th - 12th Grade

10 Qs

C++ Loops

C++ Loops

9th - 12th Grade

13 Qs

Quiz 16 - Arrays and Loops

Quiz 16 - Arrays and Loops

11th Grade

10 Qs

Программирование C#

Программирование C#

1st - 10th Grade

10 Qs

Java  Quiz (Who knows java best?)

Java Quiz (Who knows java best?)

7th - 10th Grade

10 Qs

C# Programming Basics Quiz

C# Programming Basics Quiz

10th Grade

10 Qs

Programming C#

Programming C#

11th Grade

10 Qs

While Loops

While Loops

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

DVHSAPCS undefined

Used 77+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int x = 1;                     
while(x < 6)               
{                                         
          Console.Write(x);
x = x + 2;           
}                                       
12345
135
infinite loop
no output

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int x = 1;                     
while(x > 6)               
{                                         
          Console.Write(x);
x = x + 2;           
}                                       
12345
135
infinite loop
no output

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int x = 10;                     
while(x < 6)               
{                                         
          Console.Write(x);
x = x - 2;           
}                                       
10987
108
infinite loop
no output

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int x = 1;                     
while(x < 6)               
{                                         
          Console.Write(x);
x = x - 2;           
}                                       
531
135
infinite loop
no output

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int x = 1;                     
while(x < 6)               
{                                         
x = x + 2;           
          Console.Write(x);
}                                       
Console.Write(x);
1355
1357
355
3577

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int x = 4;                     
while(x < 6)               
{                                         
x = x + 3;           
          Console.Write(x);
}                                       
Console.Write(x);
4710
477
77
Infinite Loop

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int x = 4;                     
while(x > 6)               
{                                         
x = x + 3;           
          Console.Write(x);
}                                       
Console.Write(x);
4
7
77
Infinite Loop

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int x = 4;                     
while(x >= 4)               
{                                         
x = x + 3;           
          Console.Write(x);
}                                       
Console.Write(x);
4
7
77
Infinite Loop