Search Header Logo

Understanding Code

Authored by Francesca [Student]

Computers

11th Grade

Used 4+ times

Understanding Code
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the output of the following statement?

System.out.print(13 % 5);

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

For each error, write the corrected line.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The character \n is not allowed in literal strings.

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements prints a backslash?


System.out.print(\);

System.out.print("\\");

System.out.print(\\);

System.out.print(\bs);

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An empty string is represented either as "" or as a null reference.

True

False

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the output of the following statement?

System.out.print(5 / 10);

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the value of the following code executed?

0

2

1

4

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?