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;
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
14 questions
C++ - Loops and Random Numbers
Quiz
•
9th - 12th Grade
10 questions
Entiti dan Atribut
Quiz
•
9th Grade
12 questions
11a1-BÀI TẬP (tuần 3)
Quiz
•
11th Grade
10 questions
Đề 1
Quiz
•
9th - 12th Grade
10 questions
ICT SKILLS
Quiz
•
9th - 10th Grade
10 questions
DDL (Data Definition Language) II
Quiz
•
11th Grade
10 questions
K9 - HKI - KTTX 3
Quiz
•
9th Grade
10 questions
Les variables sous Python
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
