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;
}
Create a free account and access millions of resources
Similar Resources on Wayground
40 questions
ÔN TẬP CUỐI HỌC KỲ I - TIN 10

Quiz
•
10th Grade
33 questions
Ntp Sınıf

Quiz
•
10th Grade
40 questions
Python.Comp Quiz (Python Coding)

Quiz
•
9th Grade - University
30 questions
Java Servlets & JSPs Test

Quiz
•
10th Grade
32 questions
SOAL OPERATOR TIPE B

Quiz
•
10th Grade
34 questions
Ujian Akhir Semester PBO

Quiz
•
10th Grade
30 questions
Greenfoot Vocabulary

Quiz
•
9th - 12th Grade
40 questions
Ujian Tengah Semester Informatika

Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade