
Java Foundation 6
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Medium
Rukumani CT_PG
Used 10+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement about access modifiers is correct?
An instance variable can be declared with the static modifier.
A local variable can be declared with the final modifier.
An abstract method can be declared with the private modifier.
An inner class cannot be declared with the public modifier.
An interface can be declared with the protected modifier.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which interface in the java.util.function package can return a primitive type?
ToDoubleFunction
Supplier
BiFunction
LongConsumer
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
I am an object array
The compilation fails due to an error in line 1.
I am an array
I am an object
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
42
17
The compilation fails due to an error in line 4.
The compilation fails due to an error in line 3.
The compilation fails due to an error in line 2.
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
float z = (float)(Math.round((float)x/y*100)/100)
float z = Math.round((int)(x/y),2);
float z = Math.round((float)x/y,2);
float z = Math.round((float)x/y*100)/(float)100;
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
0). one
It creates an infinite loop printing:0). one1). two1). two...
0). one1). two2). three
The compilation fails.
A java.lang.NullPointerException is thrown.
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?
Similar Resources on Wayground
15 questions
AI-102_MODULE-4
Quiz
•
Professional Development
20 questions
CPA JYSS 2018 Prelims Paper 1
Quiz
•
7th Grade - Professio...
20 questions
Chapter 3 : Flowchart & Pseudocode
Quiz
•
Professional Development
15 questions
HTML
Quiz
•
Professional Development
17 questions
BI X-Mas Quiz
Quiz
•
Professional Development
20 questions
Révision HTML, CSS et JavaScript
Quiz
•
Professional Development
18 questions
Systemy operacyjne
Quiz
•
8th Grade - Professio...
20 questions
Teaching Strategy
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
