AP Computer Science Principles Unit 2

AP Computer Science Principles Unit 2

Based on Codio.com

Mihir Ranjan (lvl 10)
Unsectioned

Preview this deck

True or False: Abstraction can be high level programming languages and allows for managing complexity

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

5

All-time users

5

Favorites

0

Last updated

2 years ago

Date created

Oct 14, 2021

Cards (26)

Unsectioned

(1 card)

True or False: Abstraction can be high level programming languages and allows for managing complexity

Front

true

Back

2.1

(5 cards)

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

Front

program

Back

_____ ________ refer to a collection of program statements that are part of a program

Front

Code segment

Back

___________ ___________ is a written description of the function of a code segment, event, product, or program and how it was developed. This can help programmers understand how parts of code work and give opportunities to help. This code be the name of author, description of code(like comments that don't affect code), etc.

Front

Program documentation

Back

___________ of a program is how a program functions during execution and is often described by how a user interacts with it

Front

Behavior

Back

___________ ___________ refines and revised the product based on multiple phases of feedback, testing or reflection. Also known as program implementation

Front

iterative process

Back

2.3

(1 card)

An ________ is associated with an action and supplies input data to a program. Events can be generated when a key is pressed, a mouse is clicked, a program is started or by any defined action that affects the flow of execution. In event driven programming, program statements are executed when triggered rather than through the sequential flow

Front

event

Back

2.6

(9 cards)

____________ is an abstraction inside a program that can hold value. They are both placeholders and changeable quantities. Data values can be stored in variables in a program like string and numeric. They allow program to debug faster and easier to read

Front

Variables

Back

____________ _______ are  data sent to a computer for processing by a program. This can be in a form of tactile, audio, visual, or text

Front

Program inputs

Back

___________ is the mechanism that enables a computer to retain information either temporarily or permanently

Front

Storage

Back

____________ is execution of program code instructions such as making calculations, adjusting locations and orientation, or counting beats per minute 

Front

Processing 

Back

The ______ of a program is a description of what the computer is doing at any given movement

Front

state

Back

___________ is execution of program code instructions such as making calculations, adjusting locations and orientation, or counting beats per minute 

Front

Processing

Back

The ________ block is best when trying to set the value relative to what is already is and set is used when setting something completely new

Front

change

Back

________ block changes the sprite's location (x position, y position). They simulate animation in a Scratch program

Front

Motion

Back

____________ _______ are any data sent from a program to a device. This can also be in the form of tactile(keypress, mouse clicks, touch screens), audio(voice commands), visual(facial recognition or filters), and text(typing in a program). It is an outcome of the input

Front

Program outputs

Back

2.9

(4 cards)

___________ ____________ is how the computer moves from instruction to instruction overtime

Front

Control flow

Back

___________ ____________  ___________ are else-if statements that consist of conditional statements within conditional statements

Front

Nesting conditional statements

Back

To make a selection, we use the "____" block. Computer scientist refer to these type of instructions as branching

Front

if,

Back

___________ ____________ affect the sequential flow of control by executing different statements based on the value of Boolean(either true or false)

Front

Conditional Statements

Back

2.12

(3 cards)

___________ ____________ is the sequential flow of control by repeating a set of statements zero or more times until a stopping condition is met

Front

Iteration Statements

Back

___________ ____________ iterations can either be an infinite loop occurs when the ending condition will never evaluate to true by the variables not being updated or if condition is never false or if the conditional evaluates to true, the loop body is not executed at all because the condition is being checked before the loop

Front

REPEAT UNITL

Back

In Scratch, we use the ___________ block for infinite loops, but the ___________ block to make loop execute the number of time specified by the parameters

Front

forever, repeat

Back

2.14

(3 cards)

___________ are input variables of a procedure. Parameterization can generalize a specific solution by allowing a procedure to be used instead of duplicated code

Front

Parameters

Back

___________ is a named group of programming instructions that may have parameters and return values. They are re-usable programming abstractions that reduce complexity of writing and maintaining programs

Front

Procedure

Back

____________ specify the values of the parameters when a procedure is called

Front

Arguments

Back