4Inf_Java_base
Quiz
•
Computers
•
11th Grade
•
Medium
Agostino Villa
Used 4+ times
FREE Resource
Enhance your content in a minute
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
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
20 questions
SAINS KOMPUTER T2019/NS
Quiz
•
11th Grade
20 questions
O que vamos aprender?
Quiz
•
1st Grade - University
20 questions
Computer System Overview
Quiz
•
10th - 11th Grade
20 questions
quiz dasar python
Quiz
•
1st Grade - University
20 questions
Prueba Diagnóstica PHP Básico
Quiz
•
10th Grade - University
20 questions
UH INFORMATIKA BAB 1-2 KELAS XI
Quiz
•
11th Grade
20 questions
fun codeing
Quiz
•
11th Grade - Professi...
20 questions
Python Basics 2
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
10 questions
Martin Luther King, Jr. For Kids
Interactive video
•
1st - 12th Grade
10 questions
Dr. King's Speech and Its Impact
Interactive video
•
7th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Los mandatos y las recetas
Lesson
•
11th Grade
7 questions
Anti-Bullying ARS 15-341
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
15 questions
TSI Math Practice Questions
Quiz
•
8th - 12th Grade
