CMU CS Academy BUGS!

CMU CS Academy BUGS!

9th - 12th Grade

9 Qs

quiz-placeholder

Similar activities

OCR Computer Science 2.3 Testing

OCR Computer Science 2.3 Testing

8th - 11th Grade

7 Qs

KS3 GCSE Computer Science (Programming / Python)

KS3 GCSE Computer Science (Programming / Python)

7th - 11th Grade

10 Qs

2.3 Producing Robust Programs

2.3 Producing Robust Programs

10th Grade

12 Qs

Errors in Programming

Errors in Programming

9th Grade

10 Qs

Basic Printf

Basic Printf

1st - 10th Grade

10 Qs

Python_Combining_Technique

Python_Combining_Technique

9th - 10th Grade

10 Qs

Debugging Python

Debugging Python

9th - 12th Grade

8 Qs

9.2 Physical computing Lesson 2 starter

9.2 Physical computing Lesson 2 starter

9th Grade

8 Qs

CMU CS Academy BUGS!

CMU CS Academy BUGS!

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

Maria Cruz Farooqi

Used 1+ times

FREE Resource

9 questions

Show all answers

1.

WORD CLOUD QUESTION

3 mins • Ungraded

What is a bug?

2.

DROPDOWN QUESTION

1 min • 1 pt

Media Image

Sometimes ​ (a)   does not work fine. When code does not work, we say it has a ​ (b)   . The reason that we call it a bug is that supposedly, a long time ago and actual bug crawled into a ​ (c)   and caused it not to work. And for that reason, we still call it a bug today.

code
bug
computer

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is one kind of bug explained in the video?

Careless

Typo

Syntax Error

Runtime Error

4.

DROPDOWN QUESTION

1 min • 1 pt

A syntax error is when you are not following the rules of ​ (a)   . (In the previous video) Python says you must have a closing ​ (b)   to match the open one, and if you don't, you have a syntax error. Notice how ​ (c)   gets drawn at all even though there is nothing wrong with the lines before the error. That is because when you have a syntax error, Python will not run your code at all until you ​ (d)   your bug.

Python
parenthesis
nothing
find and fix

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is another type of error according to the video?

Syntax Error

Spelling Error

Runtime Error

Division by zero Error

6.

DRAG AND DROP QUESTION

1 min • 1 pt

Another type of error is a ​ (a)   error. Notice that the first ​ (b)   did get drawn. That is because this is valid Python ​ (c)   so it's not a syntax error. But once it gets to line 5, when Python tries to draw our second rectangle, it ​ (d)   divide by 0. So the program stops running, it crashes. A runtime error is when your code runs but ​ (e)   while it is running.

runtime
rectangle
code
can not
crashes

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The third type of error that is shown in the video is?

Logical Error

Runtime Error

Syntax Error

Code Error

8.

DROPDOWN QUESTION

1 min • 1 pt

From the video in the previous question we get that it is not a syntax error because: ​ (a)   . It is not a runtime error because: ​ ​ (b)   . But it is still an error because​ (c)  

It's proper Python code, and the code runs
It didn't crash like when we divided by 0
it doesn't do what we need to do.

9.

MATCH QUESTION

1 min • 1 pt

Match the following

Logical Error

Media Image

Runtime Error

Media Image

Syntax Error

Media Image