
Java Basic Programming Quiz
Authored by H E Suryavanshi
Computers
University
Used 59+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is not a JAVA keyword?
native
assert
transient
constant
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
A class variable is a variable which is .....
declared inside class but not within any class method
the word static comes before the variable type
a variable that any method in class can access
All of the given
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The size of the 'long' data type in bits is .....
8-bit
16-bit
32-bit
64-bit
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The given code will give following result
"Hello"
Hello
Compile-time error
Run-time error
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the given code?
5 4
4 5
4 4
5 5
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Total number of primitive data types in Java are ....?
5
6
7
8
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following below resides in heap memory in java?
class
instance variable
object
method
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?