Java cicli While & do while
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Alessandro Novati
Used 53+ times
FREE Resource
Enhance your content in a minute
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
Similar Resources on Wayground
11 questions
Eventos de un experimento aleatorio
Quiz
•
9th Grade
13 questions
Unity Movement
Quiz
•
10th Grade
12 questions
Funciones de excel
Quiz
•
9th Grade
10 questions
Working around Adobe Photoshop
Quiz
•
12th Grade
10 questions
CS Vocab 7,8,9
Quiz
•
9th Grade
10 questions
Software de Apresentação - Mais Recursos
Quiz
•
9th Grade
10 questions
Excel Basico repaso
Quiz
•
10th Grade
12 questions
Visual Basic Básico
Quiz
•
11th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
