Java - Quiz 3

Java - Quiz 3

1st - 3rd Grade

24 Qs

quiz-placeholder

Similar activities

UF0513 INSERCIÓN DE DATOS EN TABLAS

UF0513 INSERCIÓN DE DATOS EN TABLAS

1st - 3rd Grade

20 Qs

Le rôle stratégique de l'accueil

Le rôle stratégique de l'accueil

2nd Grade

20 Qs

caractéristiques des clients version 2

caractéristiques des clients version 2

2nd Grade

20 Qs

Examen parcial 1 FUNDAMENTOS DE INVESTIGACIÓN

Examen parcial 1 FUNDAMENTOS DE INVESTIGACIÓN

1st - 3rd Grade

20 Qs

Marketing

Marketing

1st - 6th Grade

20 Qs

ATENCIÓN Y CONCENTRACIÓN 21 de junio 2024

ATENCIÓN Y CONCENTRACIÓN 21 de junio 2024

1st Grade - University

27 Qs

management

management

1st - 4th Grade

20 Qs

3º ESO - IAEE

3º ESO - IAEE

3rd Grade

20 Qs

Java - Quiz 3

Java - Quiz 3

Assessment

Quiz

Professional Development

1st - 3rd Grade

Practice Problem

Hard

Created by

Steph Cuevas

Used 21+ times

FREE Resource

AI

Enhance your content in a minute

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

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

Media Image

What is the correct output?

a) true

true

false

true

b) true

false

true

true

c)false

false

true

true

d)false

true

true

false

2.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

condition ? expression1 : expression2;

if condition is true, expression2 is executed.

a) true

b) false

3.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

PREDICT THE OUTPUT:

int x = 60;

int y = 90;

if (y%x == 0 && y-x==30){

System.out.println("Hello World"); }

else{

System.out.println("Error"); }

a) Hello World

b) Error

c) Hello world

d) Hello World

Error

4.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

When the variable being switched on is equal to a case, the statements following that case will execute until a _ statement is reached.

a) continue;

b) break;

c) default;

d) go;

5.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

Which data types are allowed in a Java switch statement?

a) int, short, byte, double, char

b) String, int, short, char

c) char, byte, short, int, String

d) String, int, byte

6.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

Media Image

What option describes button number 5 on the toolbar?

a) Step over an expression

b) Step over

c) Step into

d) Step out of

7.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

which is the Default format of LocalDateTime?

a) 2014-04-28

b) 2014-04-28T23:25:49.342Z

c) 2014-04-28T16:25:49.341

d) 28::Apr::2014

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?

Discover more resources for Professional Development