
Java Quiz set 3
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Shreyas Dahibavkar
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
import java.io.*;
public class Main
{
public static void main(String[] args)
{
int x = 5;
int y = 2;
int z = (x++) * (--y) + (x + y);
System.out.println("The value of z is: " + z);
}
}
13
14
12
10
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
public class Example
{
public static void main(String[] args)
{
String str1 = "Java";
String str2 = new String("Java");
System.out.println(str1 == str2);
}
}
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is not a valid declaration of the main method in Java?
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the purpose of the super keyword in Java?
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
public class Example
{
public static void main(String[] args)
{
int a = 10;
int b = 20;
int result = (a > b) ? a++ : ++b;
System.out.println(result);
}
}
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In Java, which collection class is synchronized?
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
public class Example
{
public static void main(String[] args)
{
int x = 5;
int y = 2;
System.out.println(x-- - --y * 2 + (x += 2));
}
}
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Quiz ECIH Week 4
Quiz
•
University
15 questions
The Genius of Alan Turing
Quiz
•
10th Grade - University
10 questions
GUI Quiz
Quiz
•
University
18 questions
Lenguaje de Definición de Datos
Quiz
•
University
10 questions
Programacion Orientada a Objetos
Quiz
•
12th Grade - University
18 questions
PBO Inheritance Episode 2
Quiz
•
University
20 questions
DIAGRAMAS UML DE CLASE
Quiz
•
University
20 questions
04-JS циклы while, do..while, for...
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Slopes and Slope-Intercept Form
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
20 questions
Winter/Holiday Trivia
Quiz
•
KG - University
10 questions
WINTER WIN Time - ELA - 12/9/2025
Quiz
•
KG - University
7 questions
Human Impact on Resources
Interactive video
•
4th Grade - University
