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
32 questions
Unit 1 APCSA

Quiz
•
9th Grade - University
40 questions
Latihan 1 PBO XI RPL 2

Quiz
•
10th Grade - University
40 questions
Robotics Final Study Guide

Quiz
•
9th - 12th Grade
40 questions
PRESAF MATPIL XI TKJ

Quiz
•
9th - 12th Grade
37 questions
AP CSA Review Set #1

Quiz
•
9th - 12th Grade
30 questions
UAS Informatika Semester Genap TA. 2024/2025

Quiz
•
10th Grade
35 questions
Strings In java

Quiz
•
9th - 10th Grade
34 questions
Project STEM AP CS A Unit 1

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

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

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade