
recupero informatica 3a liceo ballerini
Authored by Alessandro Novati
Mathematics, Computers
8th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quanto vale la variabile "numero" una volta terminato il seguente ciclo:
for (int numero = 0; i < 5; i++) {
System.out.println(i);
}
5
4
6
0
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quale e' l'ultimo valore stampato dal seguente ciclo:
for (numero = 0; numero < 5; numero++) {
System.out.println(numero);
}
6
4
0
5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quante volte viene stampata la variabile "numero" durante il seguente ciclo:
for (int numero = 0; i < 5; i++) {
if(numero != 2){
System.out.println(numero);
}
}
3
4
5
nessuna
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quali sono il primo e l ultimo numero stampati dal seguente ciclo:
int i =0;
while(i<7){
System.out.println("i");
i = i + 2;
}
primo: 0, secondo: 7
primo: 1, secondo: 5
primo: 0, secondo: 6
primo: 1, secondo: 6
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quali sono i 3 numeri stampati dal seguente ciclo:
int i =0;
while(i<9){
System.out.println("i");
i = i + 3;
}
1, 2, 3
0, 2, 4
0, 3, 6
1, 3, 5
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quale valore di i sara' stampato dal seguente codice:
int i =0;
while(i <9){
i ++ ;
if(i == 2){
i = 6;
}else{
i =10;
}
}
System.out.println(i);
6
10
5
9
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
cosa viene stampato dal seguente codice ?
int day = 4;
switch (day) {
case 1:
System.out.print("lun, ");
case 2:
System.out.print("mar, ");
case 3:
System.out.print("mer, ");
case 4:
System.out.print("gio, ");
case 5:
System.out.print("ven, ");
case 6:
System.out.print("sab, ");
case 7:
System.out.print("dom, ");
}
lun, mar, mer, gio
gio, ven, sab, dom
dom, lun, mar, mer
gio
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?