Module 2 Flashcards

1
Q

Comments

A

Information ignored by the compiler and are used to describe the code

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

Preprocessor directive

A

A C program line beginning with # that provides an instruction to the preprocessor

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

Library

A

A collection of useful functions and symbols that may be accessed by a program

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

Constant macro

A

A name that is replaced by a particular constant value before the program is sent to the compiler

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

Declarations

A

The part of the program that tells the compiler the names of memory cells in a program

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

Executable statements

A

Program lines that are converted to machine language instructions and executed by the computer

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

Function body has two parts:

A

Declarations and executable statements

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

Reserved word

A

A word that has special meaning in C

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

int

A

Integer; indicates that the main function returns an integer value

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

void

A

Indicates that the main function receives no data from the operating system

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

double

A

Indicates that the memory cells store real numbers

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

return

A

Returns control from the main function to the operating system

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

Variables

A

A name associated with a memory cell whose value can change

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

Variable declarations

A

Statements that communicate to the compiler the names of variables in the program and the kind of information stored in each variable

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

char

A

Indicates that the memory cells store a character.. anything on the keyboard can be a character.. always inside of single quotes ‘ ‘

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

Data type

A

A set of values and operations that can be performed on those values

17
Q

ASCII (American standard code for information interchange) code

A

The most common used by the C compiler to determine what integer value a character will be stored as in memory

18
Q

Function

A

A block of code made up of a group of statements that perform a task

19
Q

Function call

A

Statement used to invoke a function

20
Q

Input operation

A

An instruction that copies data from an input device into memory

21
Q

Output operation

A

An instruction that displays information stored in memory

22
Q

Input/output function

A

A C function that performs an input or output operation

23
Q

Function argument

A

Enclosed in parentheses following the function name; provides information needed by the function

24
Q

Format string

A

In a call to printf, a string of characters enclosed in quotes, which specifies the form of the output line

25
Q

Print list

A

In a call to printf, the variables or expressions whose values are displayed

26
Q

Placeholder

A

A symbol beginning with % in a format string that indicates where to display the output value

27
Q

New line escape sequence

A

The character sequence \n, which is used in a format string to terminate an output line

28
Q

Type cast

A

Converting an expression to a different type by writing the desired type in parentheses in front of the expression