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.
Define a program
A sequence of instructions that controls the computer.
What is machine language?
A type of programming language that is readable by the CPU.
What is a motherboard
It is a piece of electronics that controls all of the computer’s main electronic components.
What is a chip?
An informal way of describing an integrated circuit consisting of millions of tiny circuits.
What is a character?
Any type of symbol that requires one byte of storage.
What is data?
Distinct information that is formatted in a special way. It exists in many forms like text on paper, or bytes in electronic memory.
What is a bit?
Is a 1 or a 0 in binary code that determines how to tell the computer what the user wants to do.
What is intellectual property?
Any property that is created using an original thought. (Patents, copyrights, and trademarks.)
What is a network?
A group of two or more computer systems linked together.
What is a disk drive?
A randomly addressable and rewritable storage device.
What is a data center?
Virtual and physical infrastructure used by enterprises that house computer, server, and networking systems, and the components needed for the company’s IT.
What is a data network?
A telecommunications network which allows computers to exchange data.
List a social media app. If you were the developer of this app, how would you reduce the harmful effects?
Snapchat. I would remove the ability to see other locations and I would not have the users input any unnecessary information. Not seeing locations would secure their privacy even more.
How is Computer Science more than just programming?
Computer Science is programming, problem-solving, understanding, creativity, and designing. Much more than just programming.
Why is it important to use “meaningful” names for your variables and components?
When you are coding your app, you will know what every variable controls, and when you get to more complex code, it would be extremely difficult to remember what “Variable1” and “Variable 34” mean.