Unit 2: Variables and Properties

Unit 2: Variables and Properties

Assessment

Flashcard

Mathematics

9th - 12th Grade

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

15 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is a variable in programming?

Back

A variable is a symbolic name associated with a value and whose associated value may be changed.

2.

FLASHCARD QUESTION

Front

What does the command 'c = Circle(200, 300, 20)' do?

Back

It creates a circle object 'c' with a center at (200, 300) and a radius of 20.

3.

FLASHCARD QUESTION

Front

How do you change the center of a circle in programming?

Back

You can change the center of a circle by assigning new values to its centerX and centerY properties.

4.

FLASHCARD QUESTION

Front

What is the purpose of using variables?

Back

Variables are used to store data values that can be changed and manipulated throughout a program.

5.

FLASHCARD QUESTION

Front

What happens when you click the mouse in the given code?

Back

An error will occur because the code does not specify what action to take upon a mouse click.

6.

FLASHCARD QUESTION

Front

What is the output of 'c.centerX = 150' if 'c' is a circle at (200, 300)?

Back

The center of the circle 'c' will move to (150, 300).

7.

FLASHCARD QUESTION

Front

What is the difference between a variable and a constant?

Back

A variable can change its value, while a constant remains the same throughout the program.

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?