Search Header Logo

DEMO 03 - Debugging

Authored by Brian Zajac

Computers

University

Used 4+ times

DEMO 03 - Debugging
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is wrong with the variable "y"?

Compile error

Run-time error

Syntax error

Logic error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is wrong with the variable "TWO"?

Compile error

Run-time error

Syntax error

Logic error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is wrong with this line:

x / y = quotient

Compile error

Run-time error

Syntax error

Logic error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if the user enters "0" for "y"?

Compile error

Run-time error

Syntax error

Logic error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is wrong with this line:

cout << x << " / " << y << " = " << quotient << endl

Compile error

Run-time error

Syntax error

Logic error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is wrong with this line:

if (quotient % TWO != 0)

Compile error

Run-time error

Syntax error

Logic error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is wrong with the "if" statement?

Compile error

Run-time error

Syntax error

Logic error

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