4Inf_Java_base

Quiz
•
Computers
•
11th Grade
•
Medium
Agostino Villa
Used 4+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
qual è l'output del codice che segue?
public class IncDec {
public static void main(String s[]) {
int a = 1;
int b = 2;
int c;
int d;
c = 2+b;
d = a+1;
c++;
System.out.println("a = " + a);
System.out.print("b = " + b);
System.out.println("c = " + c);
System.out.print("d = " + d);
}
}
a = 1 b = 4 c = 4 d = 2
a = 1 b = 3 c = 4 d = 1
Program does not compile.
a = 1 b = 2 c = 5 d = 2
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
qual è l'output del codice che segue?
public class Test
{
public static void main(String [] args)
{
int x=20;
String sup;
if (x>19) { sup = "small" }
if (x<21) { sup = "tiny" }
if (x>20) { sup = "hauge" }
System.out.println(sup);
}
}
small
tiny
huge
Compilation fails
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
qual è l'output del codice seguente?.
public class Numbers
{
public static void main(String args[])
{
int a=20, b=10;
if((a<b)&&(b <25))
{
System.out.println("this is any language logic");
}
System.out.println(b);
}
}
10
12
11
Compilation Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
individua l'istruzione corretta
int num = "9";
int num = 6
int = 4;
int num = 3;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
quale sequenza viene mostrata a video da questo spezzone di codice?
for (int i=0; i<=9; i++){
System.out.println(i);
}
0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10
0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9
0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
+, - , / , * che tipi di operatori sono?
aritmetici
di comparazione
logici
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
>, <, =, <> che tipi di operatori sono?
comparazione
logici
aritmetici
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Java Review

Quiz
•
9th Grade - University
20 questions
SKT4-1.3: PEMBOLEH UBAH, PEMALAR DAN JENIS DATA

Quiz
•
10th - 11th Grade
20 questions
Java Values and datatypes

Quiz
•
9th - 12th Grade
23 questions
Java conditional/loop/method/user input

Quiz
•
9th - 12th Grade
20 questions
Python revisão final

Quiz
•
11th Grade
22 questions
IST CodeHS Unit 8 JavaScript Review

Quiz
•
9th - 12th Grade
20 questions
TGT APCSA

Quiz
•
11th Grade
20 questions
Java OOP Connections

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade