
Java quiz 1

Quiz
•
Computers
•
Professional Development
•
Hard
Saurabh Pandey
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Number of primitive data types in Java are?
6
7
8
9
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the size of float and double in java?
32 and 64
32 and 32
64 and 64
6 and 32
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following option leads to the portability and security of Java?
Bytecode is executed by JVM
The applet makes the Java code secure and portable
Use of exception handling
Dynamic binding between objects
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is not a Java features?
Dynamic
Architecture Neutral
Use of pointers
Object-oriented
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Evaluate the following Java expression, if x=3, y=5, and z=10:
++z + y - y + z + x++
24
23
20
25
Answer explanation
In the above expression, ++z means that the value will first increment by 1, i.e. 12. Now, evaluate the statement by putting the values of x, y, and z. On evaluating the expression, we get 25, as shown below.
++z +y -y +z + x++
11 + 5 - 5 + 11 + 3 = 25
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following for loop declaration is not valid?
for ( int i = 99; i >= 0; i / 9 )
for ( int i = 7; i <= 77; i += 7 )
for ( int i = 20; i >= 2; - -i )
for ( int i = 2; i <= 20; i = 2* i )
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
When an array is passed to a method, what does the method receive?
The reference of the array
The copy of the array
Length of the array
Copy of first element
Create a free account and access millions of resources
Similar Resources on Wayground
6 questions
SDA Podstawy 3

Quiz
•
Professional Development
10 questions
Web Development Workshop

Quiz
•
University - Professi...
12 questions
Variable, DataType and Operators

Quiz
•
Professional Development
10 questions
[FE] Ice Breaking - Navigating the World of Variables, Spread, a

Quiz
•
Professional Development
9 questions
Advanced JS II

Quiz
•
Professional Development
10 questions
Programming Knowledge Quiz (Medium)

Quiz
•
5th Grade - Professio...
12 questions
Javascript

Quiz
•
Professional Development
10 questions
How Much You Know ?

Quiz
•
11th Grade - Professi...
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade