
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
PU Day 1 assessments - Srinivas's batch

Quiz
•
Professional Development
10 questions
pemrograman dasar

Quiz
•
Professional Development
15 questions
CPR_Quiz_Chapter4_function

Quiz
•
Professional Development
9 questions
PreTrainingJavaScript

Quiz
•
Professional Development
10 questions
PU- Day 1 Assessments slot 2 - Srinivas's Class

Quiz
•
Professional Development
14 questions
Technical Quiz Final Round

Quiz
•
Professional Development
10 questions
Kuis Array

Quiz
•
Professional Development
10 questions
quiz on c#

Quiz
•
Professional Development
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