Search Header Logo

Comp Sci - Unit 5 Review

Authored by Jeremy West

Computers

12th Grade

Used 4+ times

Comp Sci - Unit 5 Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a custom property for a circle?

bigCircle.radius

bigCircle.middle

bigCircle.fill

bigCircle.dashes

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is not a compound conditional?

an ‘if’ statement within an ‘if’ statement

An ‘if’, an ‘elif’, and ‘else’ statements

An ‘if’ and ‘elif’ statement within an ‘else’ statement

An ‘and’ statement

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct way of coding a hold of the space bar?

if(‘space’ in keys)

if(key = ‘space’)

if(‘space’ in keys):

if(key = ‘space’):

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you change the dashes for a variable named ‘box’?

box.dashWidth = 2

box.dashes = (2,4)

box.dash = 2

You can’t change the dashes

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

For the blinds example, what was the custom property blinds.dashWidth used for?

It changed the dash width of the blinds all by itself

It was a number counter that kept track of how wide the dashes and gaps were

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

When there are quadrants on the canvas and something different happens in each one, which compound conditional can we not use?

if((mouseX<200) and (mouseY<200)):

if((mouseX<200) or (mouseY<200)):

If(mouseX<200): ____If(mouseY<200)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The code if((mouseX<200) and (mouseY>200)) affects which quadrant?

Top left

Bottom left

Bottom right

Top right

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?