Unit 2: Properties

Unit 2: Properties

9th - 12th Grade

32 Qs

quiz-placeholder

Similar activities

Karel Java Test

Karel Java Test

9th - 12th Grade

28 Qs

J808 LO3 End of Module Assessment

J808 LO3 End of Module Assessment

10th - 11th Grade

30 Qs

Karel Review

Karel Review

9th - 12th Grade

37 Qs

Scratch Review

Scratch Review

KG - University

28 Qs

Super Karel Java Script Control Structures

Super Karel Java Script Control Structures

12th Grade

30 Qs

Online Ethics

Online Ethics

8th - 9th Grade

35 Qs

Hand Tool Identification Quiz

Hand Tool Identification Quiz

11th - 12th Grade

33 Qs

Google Sheets Review

Google Sheets Review

8th - 12th Grade

35 Qs

Unit 2: Properties

Unit 2: Properties

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Michael Weingarden

Used 74+ times

FREE Resource

32 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The property being changed in this code is...

centerX

left

right

centerY

fill

Answer explanation

Look at line 12. Notice that the fill property of the variable sky is being changed.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which variable has it's centerX property set to 300?

ball

ground

I'm not really sure

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

If you wanted to change the text in the variable called message:

label.text('Bye')

label.text = 'Bye'

message.value('Bye')

message.value = 'Bye'

I'm really not sure

Answer explanation

The name of the variable is message. The name of the property is value. To change a property, you must do this message.value = 'Hello'.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

If you want to move one end of the variable ground up:

ground.y1 = 200

ground.x1 = 200

ground.y1 = 350

ground.x1 = 350

I'm really not sure

Answer explanation

To move one end of a line up, you have to change either the y1 property or the y2 property- not the x1 or x2. Changing the y1 from 300 to 200 will move it up. Changing it to 350 will move it down.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

If you want to move one end of the variable ground up:

ground.y1-1

ground.x1-1

ground.y1-=1

ground.x1-=1

I'm really not sure

Answer explanation

To move one end of a line up, you have to change either the y1 property or the y2 property. If you want to change the value of ground.y1 you must use +=. += means ground.y1=ground.y1+1 which means that the new value of ground.y1 equals the old value plus 1.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

If you want to change the color of the background:

background.fill = 'red'

background.fill('red')

background.color = 'red'

background.color('red')

I'm really not sure

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

If you want to make the box more transparent, you must change the opacity property like this:

box.opacity+=50

box.opacity-=50

box.opacity+50

box.opacity - 50

I'm really not sure

Answer explanation

If you decrease the opacity, you increase the transparency. If you just use minus, then you don't change the opacity. You have to use -= to change the value of the opacity property for the box.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?