Misc Flashcards

1
Q

Scope of Names

A

Declared names are only valid within the name’s scope.

Must be declared before it is called and be within the boundaries of braces

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Swapping

A

Assign y’s value to x and x’s value to y

Requires a third variable to temporarily hold one value while the other is copied over.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Unit Testing

A

Process of individually testing a small part of a program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Testbench

A

aka Test Harness

Program whose purpose is to check that a function returns correct output values for a variety of input values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Test Vector

A

Unique set of input values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Border Cases

A

Fringe scenarios in test vectors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Reference Variable

A

Refers to another variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Object

A

Internal data plus operations that can be performed on that data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

ostream

A

Output Stream
Class that supports output via #include
Uses the insertion operator (<

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

istream

A

Input Stream
Class that supports input via #include
Uses extraction operator (»)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Manipulator

A

Used for output formatting with &laquo_space;or&raquo_space;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Polymorphism

A

Determining which program behavior to execute depending on data types

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Exception-handling constructs

A

aka try, throw, catch

Keeps error-checking code separate to reduce redundant checks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly