TOTAL QS = 20Time [ 00 : 00 : 00 ]

Java Basics: Literals or Constants Online Test 2


Total Questions: 20

Total Minutes: 20

This ExamTray Free Online Exam/Quiz/Trivia tests your Java Programming Skills on Java Literals or Constants. Literal types are nothing but data types. This test displays answers after finishing the exam for review. You can easily clear Competitive Exams and Job Interview Questions after attending this exam.

Go through Java Theory Notes on Literals before attempting this test.

All the Best

Challenge SCORE

0 / 20

Take This Exam
1) What is the suffix used to represent a floating point number in Java?
2) What is the precision after decimal points offered by a float data type in Java?
3) A real number literal for floating point literal with a missing f or F suffix represents which data type?
4) What is the suffix used to convert an int literal to long literal in Java?
5) A character literal in Java is enclosed within a pair of ___?
6) Which version of Java started offering unsigned int and unsigned long to represent very long numbers?
7) Choose a correct statement about Java literal types.
8) A String literal in Java is surrounded by a pair of _____?
9) Which among the following is not a primitive data type in Java?
10) Which version of Java introduced Hexadecimal floating point numbers?
11) What are the two floating point notations in Java language?
12) Choose the correct implementation of floating point literals in the exponential form in Java.
13) Choose the correct usage of boolean literal in the options below.
What is the output of this Java snippet?
int a = 0b111;
15) Choose the wrong Java code statement below.
16) Choose the wrong Java code statement below.
17) Choose the wrong representation of a character literal in Octal notation in Java.
A Unicode character literal in Java is surrounded by a pair of ___?
literal = \ua123
19) What is the default boolean literal assigned to a boolean variable in Java?
20) What is the default character literal value assigned to a char variable in Java?



Show some care. Like or Subscribe.
ExamTray App is now Available on Google Play EXAMTRAY android app link