APCSP.CodeHS with JS.Unit 3-Programming with JS v2

0.0(0)Studied by 11 people
Build your Mastery score
multiple choiceMultiple Choice & FRQ
call kaiCall Kai
Locked
Card Sorting

1/43

44 Terms

1
New cards

abstraction

a simplified representation of something more complex. Abstractions allow you to hide details to help you manage complexity, focus on relevant concepts, and reason about problems at a higher level.

2
New cards

assigning a variable

changing the value that is held by the variable

3
New cards

case sensitive

distinguishing upper- and lowercase characters.

4
New cards

code

a set of instructions that tell a computer what to do written by the programmer.

5
New cards

creating a variable

defining named storage to hold data.

6
New cards

decrement

decreasing the value of a variable by a certain amount (usually by 1) using the '- -' operator.

7
New cards

graphics coordinate system

a way to define positions and dimensions on a graphical interface.

8
New cards

increment

the increase of a variables value, usually by 1 (the opposite of decrement)

9
New cards

lowerCamelCase

Capitalize each word except the first

(ex. turnLeftNow;)

10
New cards

modulus

the remainder after division. operator %

11
New cards

natural language

human languages (english, spainish) computers can understand, interpret, and respond to human language

12
New cards

numeric type of variable

variable that holds numerical values

(ex. var num = 3;)

13
New cards

program (software)

a set of instructions that a computer follows to perform a task

14
New cards

prompt

function that displays a dialogue asking the user for an input

15
New cards

remainder

The amount left over when one number is divided by another. (modulus using the % operator)

16
New cards

string type variable

sequence of characters used to represent text using ' ' or " "

var hello = "What is up gang!";

17
New cards

type of variable

identifies the kind of data a variable can hold.

18
New cards

user input

info or data that the user provides for the program, (typing something in, clicking the screen etc...) using prompt dialogues

19
New cards

Morse Code

a code where letters are represented by combinations of long and short signals of light or sound.

20
New cards

Baudot Code

a binary code invented by Emile Baudot in 1870 that uses crosses and dots in order to encode 2^5 or 32 characters.

21
New cards

variable-width encoding

using codes of different lengths to encode a character set for representation (example: Morse Code)

22
New cards

fixed-width encoding

using codes with a fixed width to encode a character set for representation (example: Baudot Code)

23
New cards

Algorithm

is a set of steps or rules to follow to solve a particular problem.

24
New cards

Computing Innovation

A __________ ________ includes a program as an integral part of its function.

25
New cards

Hello World

Traditionally the very first program you write when learning a programming language, a program that prints "Hello world" to the user.

26
New cards

println

JavaScript function that prints out a line to the user

27
New cards

CR

Carriage Return - this command moves the carriage to the start of the row

28
New cards

LF

Line Feed - this command advances to the next row down

29
New cards

integer

a whole number; a number that is not a fraction

30
New cards

string

a series of characters at any length. Can be a type of variable.

31
New cards

Boolean values

a variable to represent true or false.

32
New cards

floating point number

a number that may have digits after the decimal place. Can be a type of variable.

33
New cards

"declaring" variables

creating variables in a programming language

34
New cards

readLine

JavaScript function that allows for the reading of user input when a string is used

35
New cards

readInt

JavaScript function that allows for the reading of user input when an integer is used

36
New cards

readFloat

JavaScript function that allows for the reading of user input when a float number is used

37
New cards

Arithmetic Operators

___________ ______________ include + addition, - subtraction, * multiplication, / division, and % modulus. These operators are used to perform basic mathematical tasks.

38
New cards

Canvas

The screen in which our graphics programs are drawn.

39
New cards

properties of an object

The variables that are attached to the object.

40
New cards

User Interface

the term used for specifying how a user interacts with an electronic device, particularly a computer. Something known as "ui" or "UI"

41
New cards

graphical user interface (GUI)

a user-friendly picture-oriented way to interact with technology

42
New cards

command line interface (CLI)

old school text-based

43
New cards

Event

is an action (such as clicking the mouse or pressing a key on the keyboard) that a program detects and uses as input.

44
New cards

Callback Function

A function passed as a parameter to another function in order to be called later.