Final Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

A______is a collection of related variables under one name.

A

structure

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

A_____ is a collection of variables under one name in which the variables share the same storage

A

union

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

The bits in the result of an expression using the ______ operator are set to 1 if the corresponding bits in each operand are set 1. Otherwise, the bits are set to zero

A

bitwise AND (&)

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

The variables declared in a structure definition are called its

A

members

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

In an expression using the ____ operator, bits are set to 1 if at least one of the corresponding bits in either operand is set to 1. Otherwise, the bits are set to zero

A

bitwise inclusive OR (|)

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

keyword _____ introduces a structure declaration

A

struct

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

keyword _____ is used to create a synonym for a previously defined data type

A

typedef

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

in an expression using the _____ operator, bits are set to 1 if exactly one corresponding bits in either operand is set to 1. Otherwise, the bits are set to zero

A

bitwise exclusive OR(^)

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

the bitwise AND operator (&) is often used to ____ bits ____ that is to select certain bits while zeroing others

A

mask

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

keyword ____ is used to introduce a union definition

A

union

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

the name of the structure is referred to as the structure ____

A

tag name

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

the ____ and ____ operators are used to shift the bits of a value to the left or to the right, respectively

A

left-shift operator (<>)

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

a(n) ____ is a set of integers represented by identifiers

A

enumeration

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

Function __closes a file

A

fclose

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

The __ function reads data from a file in a manner similar to how scanf reads from stdin.

A

fscanf

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

Function __ reads a character from a specified file

A

fgetc

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

Function __ reads a line from a specified file.

A

fgets

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

Function __ opens a file

A

fopen

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

Function __ is normally used when reading data from a file in random-access applications.

A

fread

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

Function __ repositions the file position pointer to a specific location in the file.

A

fseek

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

Only __ __characters may appear before a preprocessor directive on a line.

A

white space

22
Q

The __ directive discards symbolic constant and macro names.

A

undef

23
Q

__ enables you to control the execution of preprocessor directives and the compilation of program code

A

Conditional compilation

24
Q

The __ macro prints a message and terminates program execution if the value of
the expression the macro evaluates is 0.

A

assert

25
Q

The __ directive inserts a file in another file.

A

include

26
Q

The ____ operator concatenates its two arguments

A

##

27
Q

The __ character indicates that the replacement text for a symbolic constant or macro continues on the next line.

A

\

28
Q

Every preprocessor directive must begin with __.

A

#

29
Q

The __ directive creates macros and symbolic constants.

A

define

30
Q

The __ symbol redirects input data from a file rather than the keyboard.

A
31
Q

The __ symbol is used to redirect the screen output so that it’s placed in a file

A

>

32
Q

The __ symbol is used to append the output of a program to the end of a file

A

> >

33
Q

A(n) __ directs the output of one program to be the input of another program.

A

pipe

34
Q

A(n) __ in the parameter list of a function indicates that the function can receive a variable number of arguments

A

ellipsis

35
Q

Macro __ must be invoked before the arguments in a variable-length argument
list can be accessed.

A

va_start

36
Q

Macro __ accesses the individual arguments of a variable-length argument list

A

va_arg

37
Q

Macro __ facilitates a normal return from a function whose variable-length argument list was referred to by macro va_start.

A

va_end

38
Q

Argument __ of main receives the number of arguments in a command line

A

argc

39
Q

Argument __ of main stores command-line arguments as character strings.

A

argv

40
Q

Linux/UNIX utility __ reads a file called __ that contains instructions for compiling and linking a program consisting of multiple source files.

A

make, makefile

41
Q

Function __ forces a program to terminate execution.

A

exit

42
Q

Function __ registers a function to be called upon normal program termination.

A

atexit

43
Q

An integer or floating-point __ can be appended to an integer or floating-point constant to specify the exact type of the constant.

A

suffix

44
Q

Function __ can be used to trap unexpected events.

A

signal

45
Q

Function __ generates a signal from within a program

A

raise

46
Q

Function __ dynamically allocates memory for an array and initializes the elements to zero

A

calloc

47
Q

Function __ changes the size of a block of previously allocated dynamic memory

A

realloc

48
Q

The __ and __ directives are provided as shorthand notation for #if defined(name) and #if !defined(name).

A

ifdef, #ifndef

49
Q

The __ operator converts its operand to a string.

A

#

50
Q

The __ directive causes the source-code lines to be numbered from the indicated
value beginning with the next source-code line.

A

line

51
Q

The __ executes before a program is compiled

A

preprocessor

52
Q

a __ is a name for a constant

A

symbolic constant