stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Computer Science Principles - Unit 3 Flashcards | StudBud
Explore
/
Computer Science Principles - Unit 3
Computer Science Principles - Unit 3
17 terms
·
StudBud Administration
·
457 plays
Edited from another Quizer's CSP Unit 3 Quiz Thanks!!
Flashcards
17 cards
F
Practice quiz
P
Host live
L
Questions
17
Answers
1
In computer science, efficiency is measured by...
the fewest amount of lines of code
the speed at which the program runs
any of these, depending on the desired outcome
the ability to reuse code within your own code.
2
A function should be called...
twice
never
as many times as needed
just once
3
What is API?
Well-documented library of programming language's functions
The idea that abstractions get passed down in newer versions
A high-level description of parameters a function accepts
None of these
4
What is NOT a benefit of abstraction/functions?
You can break a problem into named logical chunks.
Code is easily reusable.
You can use functions without needing to know how they work.
They make the code run faster.
5
How many parameters does the command "moveTo(x,y)" have?
1
2
4
3
6
What is a benefit of using functions in a computer program?
They make the program easier to read and write.
All of these.
They remove the need to repeat large chunks of code.
They break the program into logical chunks.
7
Use a loop or function? Drawing a triangle of any size
Loop
Function
8
True/False: It's possible for the same algorithm to be implemented/coded in different ways.
True
False
9
A function should be defined...
just once
twice
never
as many times as needed
10
Which accepts a value to be passed to a function, affecting the behavior of that function?
router
parameter
function call
odometer
11
Why do we use programming languages instead of natural language to write algorithms?
Artificial Intelligence hasn't progressed that far.
Natural language is a low level language.
Natural language is ambiguous.
The amount of defined words in a prog. language is smaller.
12
Use a loop or function? Drawing many stripes to mimic graph paper
Loop
Function
13
What is the practice of temporarily hiding unnecessary details to focus on the problem at hand?
abstraction
programming
function
algorithm
14
For the command "turnLeft(angle);" which is the parameter?
turn
semicolon
left
angle
15
This is a problem solving approach in which you break down a system into subsystems.
Algorithm
Function
Top-Down Design
Protocol
16
Use a loop or function? Drawing an octagon
Function
Loop
17
True/False: For any given problem, there is only one algorithm that can solve it.
True
False