Search Header Logo

<Ctrl+Alt+Debug>:Debugging Competition(Java)

Authored by LivingWords A&B

Computers

University

Used 1+ times

<Ctrl+Alt+Debug>:Debugging Competition(Java)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

  1. 1.

The integer value is not enclosed in quotes.
The variable type is declared incorrectly.
The assignment of a string to an integer variable is incorrect.
The code is missing a semicolon at the end.

2.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

2

17

16

18

19

3.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

3

Accessing array[5]

Calling a method on a null object

Dividing by zero

Using a string literal

Answer explanation

4.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

4

i-- should be i++

Syntax Error

Wrong Condition

i is undeclared

5.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

5

Replace null with ""

Use "test".equals(s)

No issue

Use try-catch

6.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

6

Should be integers only

Will print Hello52

Syntax Error

Concatenation not allowed

7.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

7

Array with 5 elements

Run-time Error

Compile-time error

Zero-Length Array

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 Computers