
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));
}
}
Access all questions and much more by creating a free account
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
GRAFIKA KOMPUTER
Quiz
•
University
10 questions
SRD QUIZ 3 CHAPTER 4
Quiz
•
University
20 questions
NACOS Kahoot Session II
Quiz
•
University
15 questions
07 - Map
Quiz
•
University
15 questions
Web Dev Midterm Quiz
Quiz
•
University
17 questions
Minggu V - PKS 2 - Pemrograman C++
Quiz
•
University
10 questions
Third Year Placement Training Revision Test
Quiz
•
University
18 questions
Quiz on Misinformation and Bias
Quiz
•
10th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
