All Chapters Flashcards

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

Always end a C statement

A

semicolon(;)

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

A file containing a C file

A

source code

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

tells printf() to output a newline

A

escape sequence

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

An operator that takes one operand

A

unary

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

A function designed to do one thing and to do it well

A

cohesive

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

Creates and edits files that contains C programs

A

nano

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

The act of using the * operator to get to the value pointed to by the pointer

A

dereference

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

Uses the type of a function to pass data back to the invoking function

A

return value

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

Computer hardware inside the CPU for doing math and making decisions

A

ALU (algorithmic logic unit)

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

Step-by-step simulation of the computer executing of an algorithm done by hand

A

desk-checking

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

Can create a global constant in a C program that is accessible by all function in the file

A

preprocessor directive

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

Invokes a function using proper preconditions and displays outputs to be confirm expected results

A

driver

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

A temporary function written as a stand in for a more detailed function to be written later

A

stub

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

Linux command to collect input and output from a running program into a file for submission

A

script

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

The prompting of the user on the screen to enter data and accepting input data from the keyboard

A

interactive

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

Used to match an argument in a printf() function call to a location in the output displayed

A

placeholder

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

Specifies how much space should be left around the output value when printed

A

field width

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

Grammar rules of a programming language describing where to put parentheses and semicolons

A

syntax

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

Unary use of the – operator in an executable statement means…

A

decrement

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

Short-circuit evaluation involves logical expressions being

A

stopped

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

A programming technique where the main() function consists of a sequence of function calls and each function is implemented separately

A

procedural abstraction

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

Modular programming involved

A

creating functions

21
Q

what is modular programming?

A

a technique that simplifies complex software development by breaking it down into smaller, manageable pieces called modules.

22
Q

The % operator always returns a value that is

A

zero or greater

23
Q

Arguments to a programmer-written function allows for

A

data communication

24
Q

A __ statement is used to put a value into a memory location

A

assignment

25
Q

Which is a debugging technique to ensure data is read into a program correctly

A

echo printing

26
Q

Unit testing involves testing

A

function

27
Q

If you want to use function like sqrt() and pow() defined by the C library, you need

A

header file

28
Q

Changing your C code to use different control structures or C statements but have it do the same thing it did before is called

A

refactoring

29
Q

Specific to one type of CPU

A

assembly code

30
Q

Which of the following is a C reserved word?
-define
-include
-printf
-EXIT_FAILURE
-main
-void

A

void

31
Q

The __ runs on a computer program by repeatedly fetching and executing machine-language instructions

A

CPU

32
Q

The results of any logical expression evaluated by C will be

A

0 or 1

33
Q

A __ has one entry point and one exit point and combines individual instructions onto a block

A

control structure

34
Q

The address of a memory cell is an indincation of

A

location in memory

35
Q

(T/F) Formal parameters appear in the function definition

A

true

36
Q

(T/F) A switch statement exits when a break statement is encountered

A

true

37
Q

(T/F) An input validation loop ends when a sentinel value is encountered

A

False

38
Q

(T/F) A change in the value of a variable as a result of carrying out an operation is called a side effect

A

true

39
Q

(T/F) Using the break statement in an iterator will terminate the loop

A

True

40
Q

(T/F) Pass by reference means the variable is used as data output from the function, not for data input

A

false

41
Q

The name of the default object file on cis-linux2 is

A

a.out

42
Q

(T/F) Functions with no arguments should be declared using the void C keyword.

A

True

43
Q

DeMorgan’s theorem tell us how to ___ an expression.

A

complement

44
Q

Mapping integers to characters on the keyboard is done using

A

ASCII codes

45
Q

A hand trace is used to verify the correctness of

A

an algorithm

46
Q

The C statement

if (0 <= x <= 4)
printf (“Condition is true\n”);

A

will only print when x is between 0 and 4

47
Q

Formal parameters appear in a function

A

definition

48
Q

(T/F) 10,000 gigabytes is larger than 1 terabyte.

A

false

49
Q

A void function is one that

A

doesn’t return a value

50
Q

What is the name of the function you can use to immediately end the program and return to the Linux prompt, no matter where you invoke it from in your source code?

A

exit

51
Q

A combination of English phrases and C constructs used to describe algorithms is called

A

pseudocode

52
Q

Logical negation is accomplished with

A

the ! operator