
PU - Day 1 assessments - Sivaram's class

Quiz
•
Professional Development
•
Professional Development
•
Medium
training atomm
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Java program?
class selection_statements
{
public static void main(String args[])
{
int var1 = 5;
int var2 = 6;
if ((var2 = 1) == var1)
System.out.print(var2);
else
System.out.print(++var2);
}
}
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Java program?
class test_output
{
public static void main(String args[])
{
int a = 10;
int b = 20;
if (a < b)
System.out.print(a + b);
else
System.out.print(a - b);
}
}
20
-10
30
10
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Java program?
class comparison_test
{
public static void main(String args[])
{
int x = 15;
int y = 10;
if (x != y)
System.out.print(x);
else
System.out.print(y);
}
}
0
10
15
20
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Java program?
class increment_test
{
public static void main(String args[])
{
int count = 5;
if (++count > 5)
System.out.print(count);
else
System.out.print(count - 1);
}
}
7
4
6
5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Java program?
class logical_test
{
public static void main(String args[])
{
boolean a = true;
boolean b = false;
if (a && b)
System.out.print("True");
else
System.out.print("False");
}
}
Exception
Null
False
True
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Java program?
class ternary_test
{
public static void main(String args[])
{
int num = 8;
String result = (num % 2 == 0) ? "Even" : "Odd";
System.out.print(result);
}
}
Even
Odd
Null
None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Java program?
class switch_case_test
{
public static void main(String args[])
{
int day = 3;
switch (day)
{
case 1:
System.out.print("Monday");
break;
case 2:
System.out.print("Tuesday");
break;
case 3:
System.out.print("Wednesday");
break;
default:
System.out.print("Invalid day");
}
}
Tuesday
Monday
Wednesday
Invalid day
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
pemrograman dasar

Quiz
•
Professional Development
10 questions
Day-2 IOAC - ML Python Assessment_5th-Feb-2023

Quiz
•
Professional Development
15 questions
CPR_Quiz_Chapter4_function

Quiz
•
Professional Development
14 questions
Technical Quiz Final Round

Quiz
•
Professional Development
10 questions
Kuis Array

Quiz
•
Professional Development
10 questions
C Structures

Quiz
•
Professional Development
10 questions
PreTrainingClassesObjectsMethods

Quiz
•
Professional Development
10 questions
PU Day 1 assessments - Srinivas's batch

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Professional Development
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
5 questions
Setting goals for the year

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
20 questions
Employability Skills

Quiz
•
Professional Development