Chapter 4: Abstractions and Functions Flashcards

1
Q

The subparts inside of a program.

A

Functions

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

An expression consisting of the function name followed by arguments enclosed in parentheses.

A

Funciton Call

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

Provides compiler with certain basic information about the library.

A

Header File

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

Delivers information from library to compiler.

A

Directive

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

A number that appears to be random, but is really determined by a predictable formula.

A

Pseudorandom Number

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

Describes how the function is called.

A

Function Declaration

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

Used as a kind of blank or place holder to stand in for the argument when declaring a function.

A

Formal Parameter

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

Describes how the function computes the value it returns.

A

Function Definition

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

Functions that return a bool value are called

A

Predicates

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

A figure of speech intended to convey the image of a physical device that you know hot to use, but whose method of operation is a mystery.

A

Black Box

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

Designing a function so that it can be used as a black box is sometimes called

A

Information Hiding

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

Writing and using functions as if there were black boxes is also called

A

Cedural Abstraction

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

This term is used for all “function-like” sets of instructions (function written so that it can be used like a black box)

A

Procedural Abstraction

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

A mixture of C++ and ordinary English is called

A

Pseudocode

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

Variables that are declared inside a function are said to be ___ to the function.

A

Local

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

Described how the function will work.

A

Function Body

17
Q

Constant variables that might be used in different functions should be

A

global

18
Q

The ________ of a variable is where that variable can be used.

A

Scope

19
Q
A