APCSP - Unit 2 Flashcards
What type of input do physical apps expect? (I have a Dream)
Tactile
What type of output do physical apps generate? (I Have a Dream)
Audible
What is MIT App Inventor an example of?
A programming language
An Integrated Developement Environment (IDE)
A cloud application
A software system for developing mobile apps
What elements would be considered part of the user interface for an app?
Color of the background screen
Button that appears on screen
Error message that appears after something goes wrong
Audible click that sounds when the user taps a button
What palette drawer contains the “Player” component?
The Media drawer
What is true about algorithms
Consist of a combination of sequences, repetitions, and or selections
Step-by-step procedures
Sequence of precise instructions
Pseudocode is…
Easy to read
Not a programming language
Mix between natural and programming language
Sequencing in algorithms means that each step of the algorithm is executed…
In the order that they are given
Computing innovation includes a program as an integral part of its function. What would be considered a computing innovation.
Office software, a mobile app, self-driving cars
Why are “IF” blocks used in the “I Have a Dream” app?
They are used to determine, when the buttons are clicked, whether a speech is already playing.
What are examples of good names for a button?
ClearButton, MLKButton, ButtonClear, DogButton
What is hardware?
A computer’s electronic and mechanical components. (ex: integrated circuits, motherboard, memory chips.)
What is software
A program that controls a computer. (ex: iOS, Firefox browser, Excel)
What is CPU
Central Processing Unit
It carries out, or processes, the instruction in a computer program.
What is the difference between low-level and high-level programming langauges?
A high-level programming language must be run through software programs into low-level machine languages before they can be run on a computer.
Give examples of events on your phone.
Clicking a button, shaking the phone, changing location
How long is a millisecond?
1/1000 of a second.
What is abstraction?
A general representation that stands for some collection of individual instances.
Give an example of abstraction and other terms for it.
Ex: the word “dog.”
Condensing and Simplifying
List these hardware components from lowest to highest abstraction: Logic gate, motherboard, integrated circuit, RAM chip, physical circuit.
Physical circuit, logic gate, integrated circuit, RAM chip, motherboard
What is an AND gate?
A gate where the output is only true if both inputs are true.
What is an OR gate?
A gate where the output it true of one or both of the inputs are true.
What is a general purpose computer?
A device that can run many different programs. ex: tablet, smartphone, laptop, desktop
What is a computer’s main memory?
Stores data, called RAM, disappears when the computer loses power, stores program instructions used by the CPU.