1/36
A comprehensive set of flashcards covering key concepts and terminology from the CS 1213 course.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Two foundational principles of computer science
Algorithms and Abstraction.
Algorithm
Finite sequence of unambiguous instructions to complete a task
Three aspects of learning
Knowledge, Understanding, and Ability.
Favorite word in computer science
THINK.
Six phases of software development
Requirements, design, implementation, testing, deployment, maintenance
conventions of coding style
box comments, descriptive variable names, Capitalization of names, spacing and indenting, Dividing into paragraphs
Primitive types in C++
int, short, long, float, double, long double, bool, char, and string.
Character strings
A sequence of characters treated as a single data type.
Constants in C++
Fixed values that cannot be altered during program execution.
Variables and declarations
Naming storage locations in code for data storage; includes const variables.
Relational/comparison operators
Operators that compare two values (
Boolean operators
Operators that return true/false(&&, ||, !).
Assignment operator
Operator used to assign values to variables (=).
Control structures in C++
Control the flow of program execution (if, while, do/while, for).
Input and output in C++
Processes for receiving data (cin) and displaying data (cout).
Library Functions
Premade functions pulled from a library like cmath
Function declaration in C++
A statement that defines a function's name, return type, and parameters.
Box comment for function
should include name and short description
Parameters in functions
Values passed to a function (can be by value or reference).
Return value of a function
The output produced by a function upon completion.
Void functions
Functions that do not return a value.
how to call a non-void function
declare a variable as equal to the function
How to call a void function
write the name in a new line where you want the function to run
Kinds of errors
syntax, execution, logic
Function checklist
What do I need it to do
What data does it need to work
What is the intended result of the computation
Code coverage testing
checks parts of a program(functions, lines, boolean expressions)
Data coverage testing
tests various inputs to make sure the program can handle edge cases
Unit testing
Testing individual components of a program for correctness.
Beta testing
Releasing a program for real users to test
Regression testing
repeating tests on an updated program to make sure new code didn’t ruin anything
diagnostic output
messages from c++ that identify where compiling errors happen and explain
Array declaration
includes name, data type, and size
integration testing
tests components of a program to make sure they work properly together
array subscript/index
used to access a specific space in an array
Array traversal
The process of accessing each element in an array.
Preprocessor instructions in C++
Directives such as #include that are processed before compilation.
headerfile
introduced by #include, (iostream,cmath, etc.)