CMU CS Academy BUGS!

CMU CS Academy BUGS!

9th - 12th Grade

9 Qs

quiz-placeholder

Similar activities

year 8 lesson 2 quiz - python

year 8 lesson 2 quiz - python

8th - 10th Grade

14 Qs

Python Print Statement

Python Print Statement

6th - 10th Grade

12 Qs

Python Intro

Python Intro

8th - 9th Grade

10 Qs

LO13_Lesson 10

LO13_Lesson 10

10th Grade

14 Qs

Python Strings

Python Strings

8th - 12th Grade

14 Qs

Grade 10 Lesson 10 Error Handling Extra Work - 3rd G

Grade 10 Lesson 10 Error Handling Extra Work - 3rd G

10th Grade

10 Qs

2.5 Translators & Facilities - OCR GCSE Computer Science

2.5 Translators & Facilities - OCR GCSE Computer Science

7th - 12th Grade

13 Qs

Unit 1 Vocab Review

Unit 1 Vocab Review

8th - 12th Grade

9 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

Runtime Error

Media Image

Logical Error

Media Image

Syntax Error

Media Image