Java cicli While & do while
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Alessandro Novati
Used 53+ times
FREE Resource
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 • 1 pt
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 • 1 pt
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
10 questions
Ciclos en PSeInt
Quiz
•
10th Grade
10 questions
JavaScript 3 baco med
Quiz
•
12th Grade
10 questions
8° / 9° Pensamento Computacional
Quiz
•
9th Grade
13 questions
Pengenalan Aplikasi Blender
Quiz
•
11th Grade
14 questions
HTML-CSS
Quiz
•
9th Grade - University
13 questions
LENGUAJE C
Quiz
•
11th Grade
13 questions
Java 1
Quiz
•
11th Grade
13 questions
python для новичков
Quiz
•
4th - 11th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
