
Java Programming

Quiz
•
Computers, Science
•
Professional Development
•
Easy
T K
Used 6+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Choose correct option.
Base::show() called
Derived::show() called
Compiler Error
Runtime Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose that you have a collection of products for sale in a database and you need to display those products. The products are not unique. Which of the following collections classes in the java.util package best suit your needs for this scenario?
Arrays
ArrayList
HashMap
HashSet
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose that you need to work with a collection of elements that need to be sorted in their natural order, and each element has a unique string associated with its value. Which of the following collections classes in the java.util package best suit your needs for this scenario?
ArrayList
HashMap
HashSet
TreeMap
TreeSet
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the result of the given statements?
onetwo
onetwo7
Compiler error on line 6
Compiler error on line 7
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the answer choices are valid given the following declaration?
Map<String, Double> map = new HashMap<>();
map.add("pi", 3.14159);
map.add("e", 2L);
map.add("log(1)", new Double(0.0));
map.add('x', new Double(123.4));
None of the above
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the result of the given code?
16
25
Compiler error on line 3.
Compiler error on line 5.
A runtime exception is thrown.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the given code?
false
true
Compiler error on line 4.
Compiler error on line 7.
A runtime exception is thrown.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
6 - Frameworks

Quiz
•
Professional Development
10 questions
PDS - 04225 Pointers & Dynamic Arrays - Chapter 8

Quiz
•
University - Professi...
10 questions
Pretest (MS Word)

Quiz
•
Professional Development
12 questions
CPU Revision

Quiz
•
Professional Development
12 questions
StreamQuiz

Quiz
•
Professional Development
20 questions
LOOPS in OOPS

Quiz
•
Professional Development
11 questions
Python: Quiz 1.03 - Code Structure and Workings

Quiz
•
Professional Development
10 questions
FP2: 02 - STRINGS

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development