Search Header Logo

CHAP I

Authored by Aymane Benhima

Information Technology (IT)

University

CHAP I
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

32 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many of the Duration, LocalDateTime, and LocalTime classes have the concept of a time zone?

None

One

Two

Three

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many lines does this print?
System.out.print("""
"ape"
"baboon"
"gorilla"
""");

Three

Four

Five

The code does not compile.

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following variable names are not valid? (Choose two.)

_

_blue

2blue

blue$

Blue

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which class has a getSeconds() method?

Only the Duration class

Only the Period class

Both the Duration and Period classes

Neither class

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Most of the United States observes Daylight Saving Time on March 13, 2022, by moving the clocks forward one hour at 2:00 AM. What does the following code produce?

5 true

5 false

4 false

4 true

6 false

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the value of tip after the execution of the following code?

1

2

3

7

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the following code produce?

false

true

The code does not compile.

The code compiles but throws an exception at runtime.

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?