public
class Test {
public
static void main(String[] args)
{
int x = 10, y = 20;
if (x < y)
int a = 10;
else {
System.out.println("BYE");
}
}
}
class 10 output
Quiz
•
Computers
•
10th Grade
•
Hard
Vivek Chamaria
Used 4+ times
FREE Resource
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
public
class Test {
public
static void main(String[] args)
{
int x = 10, y = 20;
if (x < y)
int a = 10;
else {
System.out.println("BYE");
}
}
}
10
BYE
NO output
Compile time error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
public
class Test {
public
static void main(String[] args)
{
int x = 10, y = 20;
if (x < y) {
if (x > y) {
System.out.println("HELLO GEEKS");
} else {
System.out.println("WELCOME");
}
}
}
}
HELLO GEEKS
Compile time error
WELCOME
No Output
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
class Test {
public
static void main(String[] args)
{
String day = "Sunday";
switch (day) {
case "Monday":
System.out.println("Let's Work");
break;
case "Saturday":
System.out.println("waiting for Sunday");
break;
case "Sunday":
System.out.println("Today is fun day");
}
}
}
Compile time error
Lets work
Run- time error
Today is fun day
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
class MainClass {
public
static void main(String[] args)
{
int x = 10;
Switch(x)
{
System.out.println("GEEKS");
}
}
}
GEEKS
Compile time error
No Output
Run-time error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
class MainClass {
public
static void main(String[] args)
{
int x = 10;
int y = 20;
switch (x) {
case 10:
System.out.println("HELLO");
break;
case y:
System.out.println("GEEKS");
break;
}
}
}
HELLO
No Output
GEEKS
Compile time error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
public
class Test {
public
static void main(String[] args)
{
for (int i = 0; i < 10; i++)
int x = 10;
}
}
No Output
10
Compile time error
10 (10 times)
7.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
What will be the output of the below code when n=145
int number(int n)
{
int s=0;
while(n>0)
{
s=s+n%10;
n/=10;
}
return n;
}
30 questions
PBO - XII RPL (SMKN 1 Cisarua)
Quiz
•
1st - 10th Grade
40 questions
PRESAF MATPIL XI TKJ
Quiz
•
9th - 12th Grade
32 questions
Arduino
Quiz
•
7th - 12th Grade
30 questions
ASESMEN TENGAH SEMESTER INFORMATIKA KELAS X - SMKN 52 JAKARTA
Quiz
•
10th Grade
30 questions
Quiz Pra ASAS Informatika Lanjut Asyikk uhuy Banget...
Quiz
•
10th Grade - University
40 questions
PROGDAS KELAS X
Quiz
•
10th Grade
40 questions
Latihan 1 PBO XI RPL 2
Quiz
•
10th Grade - University
30 questions
PBO - XI RPL (SMKN 1 Cisarua)
Quiz
•
1st - 10th Grade
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers
Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons
Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade