Java cicli While & do while

Java cicli While & do while

9th - 12th Grade

9 Qs

quiz-placeholder

Similar activities

C++ - Loops and Random Numbers

C++ - Loops and Random Numbers

9th - 12th Grade

14 Qs

11a1-BÀI TẬP (tuần 3)

11a1-BÀI TẬP (tuần 3)

11th Grade

12 Qs

Programs and Variables in Code and Play

Programs and Variables in Code and Play

5th - 9th Grade

7 Qs

[Hall] 10.2 JS Functions

[Hall] 10.2 JS Functions

9th - 12th Grade

11 Qs

ICT SKILLS

ICT SKILLS

9th - 10th Grade

10 Qs

Les variables sous Python

Les variables sous Python

10th - 12th Grade

10 Qs

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

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

1st - 10th Grade

10 Qs

2020 Excel上半年复习

2020 Excel上半年复习

10th Grade

12 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;

8.

OPEN ENDED QUESTION

15 mins • Ungraded

Scrivi un programma in java che stampa per 10 volte la scritta “Mi piace tanto andare a scuola!”.

Evaluate responses using AI:

OFF

9.

OPEN ENDED QUESTION

15 mins • Ungraded

Scrivi un programma java che:

- legge da tastiera un numero intero positivo n

- legge n numeri

- stampa la somma degli n numeri letti

Evaluate responses using AI:

OFF