Unit 4 AP Comp Sci Vocab Study Guide (80 Questions)

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/73

encourage image

There's no tags or description

Looks like no tags are added yet.

74 Terms

1
New cards

JavaScript

_______ is a programming language used to create interactive programs and web experiences

2
New cards

Data

Information that a program stores or processes is broadly called _______

3
New cards

Data type

The category of a value—such as a number—string—or Boolean—is its _______

4
New cards

Variable

A named storage location for a value is a(n) _______

5
New cards

Declare a variable

When you create a variable so it can be used in a program—you _______

6
New cards

Initialize a variable

When you give a variable its very first value—you _______

7
New cards

Assignment

Storing a value in a variable is called _______

8
New cards

Assignment Operator (=)

The _______ is used to store a value inside a variable

9
New cards

Constant

A named value that cannot be reassigned after declaration is a(n) _______

10
New cards

Integer

A whole number without a fractional part is a(n) _______

11
New cards

Number

A numeric value used for calculations is a(n) _______

12
New cards

String

A sequence of characters inside quotation marks is a(n) _______

13
New cards

Boolean

A data value that can only be either true or false is a(n) _______

14
New cards

Expression

Any piece of code that produces/evaluates to a value is a(n) _______

15
New cards

Statement

An instruction that performs an action in code is a(n) _______

16
New cards

Operator

A symbol or keyword that performs an operation is a(n) _______

17
New cards

Arithmetic Operator

An operator used specifically for mathematical calculations is a(n) _______

18
New cards

Addition (+)

The _______ operator adds numbers or joins strings

19
New cards

Subtraction (-)

The _______ operator subtracts one number from another

20
New cards

Multiplication (*)

The _______ operator multiplies two numbers

21
New cards

Division (/)

The _______ operator divides one number by another

22
New cards

Modulus (%)

The _______ operator returns the remainder after integer division

23
New cards

Order of Operations

The rules determining the order in which calculations occur are called the _______

24
New cards

Concatenation

Joining two or more strings together into one is called _______

25
New cards

User input

Information supplied by a user while a program runs is called ***

26
New cards

Output

Information that a program displays or produces is called ***

27
New cards

Console

The _______ is an area used to display program output or diagnostic messages

28
New cards

println()

*** is a CodeHS-supported command used to display output on a new line

29
New cards

readLine()

*** is a CodeHS-supported function used to read a line of text input

30
New cards

Type conversion

Changing a value from one data type to another is called _______

31
New cards

Number()

The command _______ converts a value to a number when possible

32
New cards

Random number

A number selected using a randomization process is a(n) _______

33
New cards

Function

A named block of reusable code is a(n) _______

34
New cards

Function definition

The code that specifies what a function does is the _______

35
New cards

Function call

An instruction that runs a function is a(n) _______

36
New cards

Parameter

A named input listed in a function definition is a(n) _______

37
New cards

Argument

The actual value supplied to a function when it is called is a(n) _______

38
New cards

Return value

The value a function sends back to the code that called it is the _______

39
New cards

Return statement

A(n) _______ ends a function and can send a value back to its caller

40
New cards

Scope

The part of a program where a variable can be accessed is its _______

41
New cards

Local variable

A variable available only within its relevant local scope is a(n) _______

42
New cards

Global variable

A variable declared outside functions that may be accessible throughout the program is a(n) _______

43
New cards

Reusable Code

Code designed to be used multiple times is called _______

44
New cards

Abstraction

Hiding unnecessary details behind a simpler representation or interface is called _______

45
New cards

Modular Programming

Organizing a program into smaller—manageable sections is called _______

46
New cards

Canvas

The display area where a program draws graphics is the _______

47
New cards

Graphics

Visual elements displayed or manipulated by a program are called _______

48
New cards

Object

A programming entity that can contain data and provide behavior is a(n) _______

49
New cards

Graphics Object

An object representing a visual element (such as a circle or rectangle) is a(n) _______

50
New cards

Circle

A graphics object used to create a circle is a(n) _______

51
New cards

Rectangle

A graphics object used to create a rectangle is a(n) _______

52
New cards

Text

A graphics object used to display text on the canvas is a(n) _______

53
New cards

Line

A graphics object used to draw a line is a(n) _______

54
New cards

Constructor

A mechanism used to create an object—often with initial settings—is a(n) _______

55
New cards

Coordinate

A value identifying a position on the canvas is a(n) _______

56
New cards

X-coordinate

The horizontal position of an object is its _______

57
New cards

Y-coordinate

The vertical position of an object is its _______

58
New cards

Origin

The coordinate position (0—0) at the canvas's upper-left corner is the _______

59
New cards

Width

The horizontal size of a graphics object or canvas is its _______

60
New cards

Height

The vertical size of a graphics object or canvas is its _______

61
New cards

Position

The location of an object on the canvas is its _______

62
New cards

Radius

The distance from a circle's center to its edge is its _______

63
New cards

Color

A property that determines an object's displayed color is _______

64
New cards

setPosition()

The method _______ sets the position of a graphics object

65
New cards

setColor()

The method _______ sets the color of a graphics object

66
New cards

add()

The function _______ adds a graphics object to the canvas in CodeHS graphics

67
New cards

getWidth()

The function _______ returns the width of the canvas

68
New cards

getHeight()

The function _______ returns the height of the canvas

69
New cards

Method

A function associated with an object is a(n) _______

70
New cards

Message

A request sent to an object by calling one of its methods is a(n) _______

71
New cards

Event

An occurrence—such as a mouse click—that a program can respond to is a(n) _______

72
New cards

Mouse Event

An event triggered specifically by mouse activity is a(n) _______

73
New cards

Randomization

Using randomly selected values in a program is _______

74
New cards

Animation

Creating the appearance of movement by changing graphics over time is _______