Java Foundation 6

Java Foundation 6

Professional Development

20 Qs

quiz-placeholder

Similar activities

U.T. 7: Configuración de Routers y Encaminamiento

U.T. 7: Configuración de Routers y Encaminamiento

Professional Development

20 Qs

MS OFFICE QUIZ 01

MS OFFICE QUIZ 01

Professional Development

20 Qs

DW (EM25) - Introducción al Internet [T1]

DW (EM25) - Introducción al Internet [T1]

University - Professional Development

15 Qs

command prompt

command prompt

4th Grade - Professional Development

15 Qs

Ports

Ports

Professional Development

20 Qs

NM-BIG DATA Course

NM-BIG DATA Course

Professional Development

20 Qs

CPU scheduling

CPU scheduling

Professional Development

16 Qs

LPC 16 - AIO

LPC 16 - AIO

Professional Development

20 Qs

Java Foundation 6

Java Foundation 6

Assessment

Quiz

Computers

Professional Development

Practice Problem

Medium

Created by

Rukumani CT_PG

Used 10+ times

FREE Resource

AI

Enhance your content in a minute

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

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.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

java /code/a/Test.java

javac –d /code /code/a/Tes

java /code/a/Test.java /code/b/Best.java

java –cp /code a.Test

javac –d /code /code/a/Test.java /code/b/Best.java

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

Media Image

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

Media Image

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

Media Image

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

Media Image

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

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?