Java Programming

Java Programming

Professional Development

15 Qs

quiz-placeholder

Similar activities

Evaluacion Continua 02 - Enero 2024

Evaluacion Continua 02 - Enero 2024

Professional Development

16 Qs

แบบทดสอบSony Vegadการใส่ตัวหนังสือ

แบบทดสอบSony Vegadการใส่ตัวหนังสือ

Professional Development

10 Qs

IT (data, viruses and more)

IT (data, viruses and more)

8th Grade - Professional Development

20 Qs

Lógica Python Revisão 1º Semestre

Lógica Python Revisão 1º Semestre

Professional Development

20 Qs

Evaluación de procesos 02

Evaluación de procesos 02

Professional Development

20 Qs

Introduction to Programming in C

Introduction to Programming in C

Professional Development

10 Qs

Pharmaceutical Industry In era of VUCA

Pharmaceutical Industry In era of VUCA

Professional Development

10 Qs

hand

hand

University - Professional Development

17 Qs

Java Programming

Java Programming

Assessment

Quiz

Computers, Science

Professional Development

Practice Problem

Easy

Created by

T K

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

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

Media Image

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

Media Image

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

Media Image

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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?