AP Computer Science Principles: Unit 3- Intro to CMU Graphics Vocab

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall with Kai
GameKnowt Play
New
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/24

flashcard set

Earn XP

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

25 Terms

1
New cards

Program?

A collection of program statements that performs a specific task when run by a computer. A program is often referred to as software.

2
New cards

Code segment?

A collection of program statements that are part of a program.

3
New cards

Program behavior?

How a program functions during execution and is often described by how a user interacts with it.

4
New cards

Program output?

Any data sent from a program to a device. Program output can come in a variety of forms, such as tactile, audio, visual, or text.

5
New cards

Program documentation?

A written description of the function of a code segment, event, procedure, or program and how it was developed.

6
New cards

Comments?

Are program documentation for people to read that doesn’t affect the code.

7
New cards

iterative development?

A process requires refinement and revision based on feedback, testing, or reflection throughout the process. This may require revisiting earlier phases of the process.

8
New cards

Incremental development?

A process is one that breaks the problem into smaller pieces and makes sure each piece works before adding it to the whole.

9
New cards

RGB?

stands for Red, Green, Blue, and it's a color model used to represent colors digitally by combining varying intensities of these three primary colors. Each color channel (red, green, blue) typically has a value ranging from 0 to 255, and these values are often combined and represented as a single value, like a hexadecimal code (#RRGGBB), for display purposes. 

10
New cards

Code Editor?

The section of CMU Academy where you write and edit your Python code. It’s where you create programs by typing commands, functions, and logic that tell the computer what to do.

11
New cards

Inspector?

A tool that allows you to see and interact with objects on the canvas (like shapes, text, or images). You can use it to check an object’s properties , such as its position, color, or size , while your program is running.

12
New cards

Console?

The area that displays program output, error messages, and print statements. It helps you test, debug, and understand what your code is doing by showing what’s happening behind the scenes.

13
New cards

Syntax Error?

An error caused by breaking the rules of the programming language , like missing parentheses, quotes, or colons , which prevents the code from running.

14
New cards

Runtime Error?

An error that happens while the program is running, often due to something unexpected like dividing by zero or using a variable that doesn’t exist.

15
New cards

Logical Error?

An error where the program runs without crashing, but the output is incorrect because the logic or steps in the code are wrong.

16
New cards

(left, top, width, height, fill='black', border=None, borderWidth=2)

Rect

17
New cards

(centerX, centerY, radius, fill='black', border=None, borderWidth=2)

Circle

18
New cards

(centerX, centerY, width, height, fill='black', border=None, borderWidth=2)

Oval

19
New cards

(centerX, centerY, radius, points, fill='black', border=None, borderWidth=2, roundness=None)

Star

20
New cards

(x1, y1, x2, y2, fill='black', lineWidth=2)

Line

21
New cards

(x1, y1, x2, y2, x3, y3, …, fill='black', border=None, borderWidth=2)

Polygon

22
New cards

(value, centerX, centerY, size=12, font='arial', bold=False, italic=False, fill='black', border=None, borderWidth=2)

Label

23
New cards

Rect(200, 200, 20, 40, fill='lightSalmon')

Built-in Colors

24
New cards

rgb(redValue, greenValue, blueValue)

Circle(200, 200, 50, fill=rgb(255, 0, 0))

RGB Colors

25
New cards

gradient(color1, color2, color3, ..., start='center')

Rect(75, 75, 50, 50, fill=gradient('red', 'orange', 'yellow', start='left-top'))

Gradients