Java cicli While & do while

Java cicli While & do while

9th - 12th Grade

9 Qs

quiz-placeholder

Similar activities

Q2 M3 L B

Q2 M3 L B

10th Grade

10 Qs

Python

Python

9th Grade

13 Qs

java script

java script

12th Grade

10 Qs

on cuoi ki 2 tin 10 cde 5 python

on cuoi ki 2 tin 10 cde 5 python

10th Grade

10 Qs

kiểm tra 15p - lần 1 - HKII - khối 10

kiểm tra 15p - lần 1 - HKII - khối 10

9th - 12th Grade

10 Qs

Diagramas de Flujo

Diagramas de Flujo

7th - 10th Grade

10 Qs

AWS Cloud

AWS Cloud

11th - 12th Grade

14 Qs

TIN 10 BÀI F14

TIN 10 BÀI F14

10th Grade

10 Qs

Java cicli While & do while

Java cicli While & do while

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Alessandro Novati

Used 53+ times

FREE Resource

AI

Enhance your content in a minute

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

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

Dato il seguente pezzo di codice:

int a = 6;

do{

a=a-2;

}while(a>=0)

Quante volte viene eseguita l istruzione "a=a-2"

3

2

1

4

infinite

2.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

Dato il seguente pezzo di codice:

int x=8;

while(x>=2){

x=x-2;

}

Quante volte viene eseguita l’istruzione "x=x-2;" ?

3

2

1

4

infinite

3.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

Dato il seguente pezzo di codice:

int y=8;

while(y>0){

y=y+4;

}

Quante volte viene eseguita l’istruzione y=y+4;?

1

2

3

4

infinite

4.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

int x = _;

int y = _;

while( (x != 0) || (y < 3) ){

            //altre istruzioni

}

Per quali valori delle variabili x e y non si entra mai all’interno del ciclo ?

int x = 0

int y = 2

int x != 0

int y = 7

int x = 0

int y = 7

int x = 4

int y = 2

5.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

int x = _;

while( (x == 0) || (x > 1) ){

            //altre istruzioni

}

Per quali valori della variabile x non si entra mai all’interno del ciclo ?

int x = 0;

int x = 1;

int x = 2;

int x = 3;

6.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

int x = _;

while( (x == 0) || (x > 1) ){

            //altre istruzioni

}

Per quali valori della variabile x non si entra mai all’interno del ciclo ?

int x = 0;

int x = 10;

int x = -1;

int x = 5;

7.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

int x = _;

int y = _;

while( (x == 0) || (y > 3) ){

            //altre istruzioni

}

Per quali valori delle variabili x e y non si entra mai all’interno del ciclo ?

int x = 2;

int y = 4;

int x = 0;

int y = 4;

int x = 0;

int y = 2;

int x = 1;

int y = 4;

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?