stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
AP Computer Science Principles Vocab Unit 1 (1.1-1.10)) Flashcards | StudBud
Explore
/
AP Computer Science Principles Vocab Unit 1 (1.1-1.10))
What are Postconditions?
What are Preconditions?
AP Computer Science Principles Vocab Unit 1 (1.1-1.10))
18 terms
·
StudBud Administration
·
23 plays
Imported from external platform
Flashcards
18 cards
F
Practice quiz
P
Host live
L
Questions
18
Answers
1
What are Preconditions?
Things we knew before starting this class
Assumptions about what must be true before the function is called.
Libraries that must be called for our code to execute
What should be true after the function is called
2
What are Postconditions?
Instructions provided by a developer on the outcomes of a process
Assumptions about what must be true before the function is called.
Code that has to be run after initializing a block of code
What should be true after the function is called
3
What is Cybercrime?
Identity theft, stealing money or private information
Movies about crime online
Criminals who surf the web to find suspects
Crime committed by Cyborgs
4
Decomposition
breaking your program into smaller parts.
a method for breaking our program down into smaller parts.
what happens in our stomach after we eat
how computers digest the information we tell it with our code
5
Function body
The part of a function that contains the commands
The tastiest part of code
The part of a function that tells it to stop
A loop that lets us repeat code a fixed number of times
6
What is the best definition for a Function from the choices here?
a type of class
the method you use to break code into smaller parts
operating instructions
a command that you get to invent and name - a small part of a program
7
Computer Science
Written instructions detailing functions, methods, and variables
Study of computational thinking 2 describe a step by process to a computer
Observation that the processing speed of computers is doubling every year.
A method for breaking our program downinto smaller parts
8
Moore's Law
Observation that the processing speed of computers is doubling every year.
The certainty of the inevitability of AI developing sentience
E = MC2
The theory of computer debugging
9
What does it mean to Define a function?
teach the computer a new command & explain what it should do w/that command
put a comment before a function that explains what it is supposed to do
hard-coding the definition of variables
write the instructions for what you want code to do
10
What does calling a function do?
gives the command, so the computer will run the code for that function.
gives the command, so the computer will stop the code for that function.
teach the computer a new command
lets us repate code a fixed number of times
11
Which answer correctly describes Snake Case?
each space is replaced by an underscore (_) & words start lowercase letters
each space is replaced by an underscore (_) & words start uppercase letters
each space is replaced by an period (.) & words start uppercase letters
each space is replaced by an period (.) & words start lowercase letters
12
Top Down Design
starting at the top and working your way down when writing code
a method of designing user interfaces
designing based on what you think needs to be built
a method for breaking our program down into smaller parts.
13
What are Application Programming Interfaces?
APIs and libraries simplify complex programming tasks
The devices we use to interface with computers such as mice or keyboards
The programs we use to write code, like using CodeHS in class
Things like computers, ipads, and phones that we use that use code
14
Abstraction is...
Being distracted in class
Creating a complex interface that details all components of your program
Managing complexity by removing info & detail, 2 focus on relevant concepts
Managing complexity by making a diagram for you and your team to study
15
What does "documentation" mean in relation to your code?
Explaining in writing who broke the code while you are debugging it
Instructions a boss provides on what you should code
Written instructions explaining the functions, methods, & variables (code)
Required note taking in class
16
Procedural Abstraction is...
The ability to use methods and programs that we do not fully understand
Writing procedures in a way that is confusing (not recommended)
Getting in trouble for not documenting code with proper comments
Managing complexity by removing info & detail, 2 focus on relevant concepts
17
For Loop
Something we have to put in code before it will start
The most fun part of code
Things that go round and round
Lets us repeat code a fixed number of times
18
What is a comment?
Your teacher's notes when they return your assignments to you with edits
Messages your interface displays to help you understand why it's erroring
A message in your code that explains what is going on.
Talking to peers about your code for debugging