
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
15 questions
GK Quiz
Quiz
•
University
15 questions
Javascript Array dan Object
Quiz
•
University
10 questions
PYTHON BASICS PART 1
Quiz
•
University
15 questions
GDSC Intro Quiz
Quiz
•
University
20 questions
SOFTWARE 7I
Quiz
•
7th Grade - University
20 questions
Spreadsheet Fundamentals - Quiz2
Quiz
•
University
11 questions
Recap Chapter 6, 7, 8
Quiz
•
University
10 questions
Quiz - CSE
Quiz
•
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
