Qs Flashcards
(31 cards)
Counted loops
vs
Conditional loops
Counted loops: Execute for a fixed number of times (for loop)
Conditional loop: Executed unknown number of times (while and do-while loop)
Program
vs
Algorithm
Program: A set of instructions for the computer to follow
Algorithm: A sequence of steps/instructions to complete a task
Internet
vs
WWW
Internet: A global network of connected computers. (also can be accessed without a browser (ex. Skype))
WWW: Is a small part of the internet, web browser needed to access
CPU
Motherboard
GPU
CPU: Considered the “brain” of the computer. Performa processing
Motherboard: Considered the “nervous system” of the computer, transfers data
GPU: Allows data to be output to a display device
Primary storage
vs
Secondary storage
Primary storage: Short-term
(RAM)
Secondary storage: Long-term (typically external)
(CD, DVD)
System software
vs
Application software
System software: Operating System that controls and maintains the hardware
Application software: Solves problems or performs tasks for the user
Internet
A global network of connected computers
LAN
A network within a building or small area
Argument
A value passed to a function
Server
A computer that exists to serve networked computers
Input
Data going into a computer
Function
A block of code that is given a name, return type, and list of parameters
Boolean
An expression that evaluates true’ or ‘false’
Motherboard
The “nervous system” of the computer, holds the main circuitry
Iteration
The term for a single repetition of a loop
Any for loop can be written as a while loop
True
Any while loop can be written as a for loop
False
Syntax error
An error such as a missing/misplaced symbol or keyword
While loop
vs
Do-While loop
Both are conditional loops that run if a boolean is ‘true’.
A while loop has condition at beginning and may never run
A do-while loop has condition at the end of the loop, guaranteed to execute once
Every if statement should include an ‘else’ section
True
Describes accessibility or range of existence of a variable
Scope
The term for a symbol indicating an operation to be performed on data
Operator
A while statement should never end with a semi-colon
False
When rounding a value down using the floor() function, the decimal part is truncated
False