DEMO 03 - Debugging

DEMO 03 - Debugging

University

7 Qs

quiz-placeholder

Similar activities

C Operators #1

C Operators #1

10th Grade - University

10 Qs

FINAL ROUND

FINAL ROUND

University

10 Qs

LOOPS IN C++

LOOPS IN C++

10th Grade - University

10 Qs

CSC126 Quick Exercise 1-1

CSC126 Quick Exercise 1-1

University

10 Qs

 coding comptition

coding comptition

University

10 Qs

7.9 Identifying and Correcting Errors Cambridge IGCSE 0478

7.9 Identifying and Correcting Errors Cambridge IGCSE 0478

10th Grade - University

10 Qs

TECH INTELLECT - ROUND 2

TECH INTELLECT - ROUND 2

University

10 Qs

defensive design

defensive design

University

10 Qs

DEMO 03 - Debugging

DEMO 03 - Debugging

Assessment

Quiz

Computers

University

Hard

Created by

Brian Zajac

Used 4+ times

FREE Resource

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