Java Basic Programming Quiz

Quiz
•
Computers
•
University
•
Hard

H E Suryavanshi
Used 51+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Java

Quiz
•
University
11 questions
Binding

Quiz
•
University
9 questions
Java Programming Structures

Quiz
•
University
15 questions
JAVA-BootCamp - Day1

Quiz
•
University
10 questions
OOPJ #1

Quiz
•
University
10 questions
Summer Code Camp - Lesson 1

Quiz
•
University
10 questions
java script

Quiz
•
University
10 questions
C - Pointers

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade