What is wrong with the variable "y"?
DEMO 03 - Debugging

Quiz
•
Computers
•
University
•
Hard

Brian Zajac
Used 4+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Compile error
Run-time error
Syntax error
Logic error
Similar Resources on Wayground
10 questions
C - Pointers

Quiz
•
University
10 questions
7.9 Identifying and Correcting Errors Cambridge IGCSE 0478

Quiz
•
10th Grade - University
11 questions
IDE Functions Quiz

Quiz
•
9th Grade - University
10 questions
Python - Functions

Quiz
•
University
10 questions
Quiz 1

Quiz
•
University
10 questions
FOP - CHAPTER 4

Quiz
•
University
10 questions
C++ Functions

Quiz
•
University
10 questions
Defensive Design/ Robust Coding

Quiz
•
9th Grade - University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade