HtmlCssMonk

JAVA QUIZ – EASY (20 Questions)

14
Created by HtmlCssMonk

Java Quiz – Easy 20

Are you Ready ?

Alrighty then.

Good Luck !

Let’s see what you got.

1 / 20

What will be the output of the following Java code?

int arr[] = new int [5];System.out.print(arr);

2 / 20

Which of the following are not Java keywords ?

3 / 20

Which of these constructors is used to create an empty String object?

4 / 20

What is the value stored in x in the following lines of Java code?

 int x, y, z;    x = 0;    y = 1;    x = y = z = 8;

5 / 20

Which of these can be returned by the operator &?

6 / 20

What is byte code in Java?

7 / 20

Which statement is true regarding an object?

8 / 20

Which of the following is used with the switch statement?

9 / 20

Which of these keywords is used to make a class?

10 / 20

A package is a collection of

11 / 20

Which of these can not be used for a variable name in Java?

12 / 20

break statement is used to

13 / 20

In using ternary operator in this line what should be expression1 evaluate to?

expression1 ?   expression2 : expression3

14 / 20

An expression involving byte, int, and literal numbers is promoted to which of these?

15 / 20

An array elements are always stored in ________ memory locations.

16 / 20

Which of these jump statements can skip processing the remainder of the code in its body for a particular iteration?

17 / 20

The command javac is used to ___

18 / 20

Which of these is an incorrect array declaration?

19 / 20

Which of the following is not a decision making statement?

20 / 20

What is the valid data type for variable “a” to print “Hello World”?

Your score is

The average score is 71%

0%

Exit

About Java Easy Quiz

  • This Basic Java Quiz is designed specially to check your foundational knowledge of Java.
  • You are given 20 MCQ type Java questions in this Quiz.
  • There is no time Limit, so just keep calm and test your Basic Java knowledge without any rush !
  •  At the end of the Quiz, your total score will be displayed out of 100% maximum score.
  • You need to score atleast 70% (14 correct answers ) to PASS the Quiz.

Answers will not be shown after the quiz. If you really got what it takes , then learn until you can score 100% without seeing answers.


Do you have the courage to go on !!!!


Leave a Comment

Your email address will not be published. Required fields are marked *