While Loops

While Loops

9th - 12th Grade

8 Qs

quiz-placeholder

Similar activities

Chapter 5

Chapter 5

9th Grade

10 Qs

Conditionals

Conditionals

9th - 12th Grade

9 Qs

Programs and Variables in Code and Play

Programs and Variables in Code and Play

5th - 9th Grade

7 Qs

C# 11

C# 11

1st - 10th Grade

10 Qs

Session 1

Session 1

9th - 12th Grade

10 Qs

Review

Review

12th Grade

12 Qs

Информатика 8 клас - Масиви

Информатика 8 клас - Масиви

8th - 10th Grade

6 Qs

C# Data Types

C# Data Types

11th Grade

6 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