While Loops

While Loops

9th - 12th Grade

8 Qs

quiz-placeholder

Similar activities

BÀI KIỂM TRA GIỮA KÌ 2 - LỚP 3

BÀI KIỂM TRA GIỮA KÌ 2 - LỚP 3

1st - 10th Grade

10 Qs

Melody Tone

Melody Tone

9th Grade

13 Qs

Alapismeretek

Alapismeretek

7th - 12th Grade

10 Qs

Scratch

Scratch

KG - Professional Development

10 Qs

ExamenHojasdecalculo

ExamenHojasdecalculo

10th Grade

10 Qs

Bài tập trắc nghiệm C++(tiếp)

Bài tập trắc nghiệm C++(tiếp)

3rd Grade - University

10 Qs

BÀI KIỂM TRA 15P HK2 TIN HỌC 11

BÀI KIỂM TRA 15P HK2 TIN HỌC 11

11th Grade

10 Qs

Java: repetition control structure for & while

Java: repetition control structure for & while

10th - 12th Grade

10 Qs

While Loops

While Loops

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

DVHSAPCS undefined

Used 77+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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?