Java mock test 1 assesses knowledge of Java programming fundamentals, including data types, operators, and comparison of string objects. It is designed for learners to validate their understanding and readiness in Java, focusing on key concepts and syntax accuracy.
Int
Float
Boolean
Double
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
8 bits
16 bits
32 bits
64 bits
Rate this question:
True
False
Rate this question:
Float f=1.3;
Char c="a";
Byte b=257;
Boolean b=null;
int i=10;
Rate this question:
True
False
Rate this question:
3
4
5
Error
Rate this question:
The >> operator shifts left and the >>> operator shifts right.
The >> operator shifts right and the >>> operator shifts left.
The >> operator fills the shifted out high order bits based on the sign bit and the >>> operator fills the high order bits with zeros.
The >>> operator fills the shifted out high order bits based on the sign bit and the >>> operator fills the high order bits with zeros.
Rate this question:
True
False
Rate this question:
Any number of variables can be declared in a Type declaration statement.
Different types of variables can be declared in a single Type declaration statement
The list of variables in a Type declaration statement should be separated by commas.
The Type declaration statement can be used to declare as well as initialize a variable.
Rate this question:
If
Then
Goto
While
Case
Rate this question:
True
False
Rate this question:
The && operator is equivalent to &2.
The && operator always evaluates both operands.
The && operator is equivalent to &*2.
The && operator does not evaluate its second operand if the value of the first operand is false.
Rate this question:
It is automatically initialized to some garbage value
It throws a compile time error
Shows run time error
Returns a null value to the variable
Rate this question:
S3=s1 + s2;
s3=s1-s2;
s3=s1 & s2;
s3=s1 && s2
Rate this question:
Keyword
Method
Literal
Identifier
Rate this question:
True
False
“equal” is printed, “s3 eq s4” is printed.
“equal” is printed only.
“s3 eq s4” is printed only.
Nothing is printed.
Rate this question:
++
?:
&&
=
Rate this question:
System.out.println(Math.floor(-4.7));
System.out.println(Math.round(-4.7));
System.out.println(Math.ceil(-4.7));
System.out.println(Math.min(-4.7));
Rate this question:
True
False
Rate this question:
It can be used instead of equals()
To compare two primitives, use the == operator.
To see if two references are the same,
To assign a value to the variable
Rate this question:
The instanceof operator is a binary operator that determines whether an object reference is an instance of the class, interface, or array type specified by the right operand.
The instanceof operator can be used with primitive types.
The instanceof operator returns a boolean value of true if the left operand references a non-null object of class
The instanceof operator returns false if none of the preceding conditions are met or if the left operand is null.
Rate this question:
2variable
Variable2
_whatavariable
_3_
$anothervar
#myvar
Rate this question:
Cannot be initialized before invoking any constructor
Accessible anywhere in the class
Static variables are initialized at class load time
Cannot have the same name as the class
Rate this question:
Name
Null
_sum
2sqrt
Count number
Rate this question:
J=i
J=i
J=i
J=i
Rate this question:
Quiz Review Timeline (Updated): Dec 14, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Informatics Practice Quiz: Exam!
The Informatics Practice Quiz: Exam assesses knowledge in Java programming, focusing on swing controls, operators, loops, and switch-case statements. It is designed to test...
Questions:
10 |
Attempts:
453 |
Last updated:
Mar 19, 2023
|
Java Online Quiz 2
Java Online Quiz 2 assesses knowledge on Java programming basics including data types, variable declarations, and initialization. It is designed for learners to validate their...
Questions:
10 |
Attempts:
422 |
Last updated:
Mar 21, 2023
|
Java Programming Quiz
An interesting Java programming quiz is here for you if you use Java programming or are learning this language. The quiz is not going to be easy in any way. The questions designed...
Questions:
15 |
Attempts:
4778 |
Last updated:
Jul 03, 2023
|
Java Quiz-1
Java Quiz-1 assesses foundational Java programming skills through multiple-choice questions. Topics include constructor behaviors, method definitions, and class hierarchies. Ideal...
Questions:
100 |
Attempts:
5440 |
Last updated:
Sep 18, 2023
|
|
Java Quiz: Test Your GK! Trivia
This Java Quiz tests general knowledge in Java programming, covering topics like data types, access modifiers, OOP concepts, and applets. It assesses key skills for understanding...
Questions:
10 |
Attempts:
1007 |
Last updated:
Mar 22, 2023
|
Can You Answer These Java Programming Questions? Trivia Quiz
Can you answer these java programming questions? There are a lot of people who think that they can never fail any question they are asked when it comes to java programming, and to...
Questions:
10 |
Attempts:
541 |
Last updated:
Mar 22, 2023
|
Wait!
Here's an interesting quiz for you.