All Chapters Flashcards

(54 cards)

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
Arguments to a programmer-written function allows for
data communication
24
A __ statement is used to put a value into a memory location
assignment
25
Which is a debugging technique to ensure data is read into a program correctly
echo printing
26
Unit testing involves testing
function
27
If you want to use function like sqrt() and pow() defined by the C library, you need
header file
28
Changing your C code to use different control structures or C statements but have it do the same thing it did before is called
refactoring
29
Specific to one type of CPU
assembly code
30
Which of the following is a C reserved word? -define -include -printf -EXIT_FAILURE -main -void
void
31
The __ runs on a computer program by repeatedly fetching and executing machine-language instructions
CPU
32
The results of any logical expression evaluated by C will be
0 or 1
33
A __ has one entry point and one exit point and combines individual instructions onto a block
control structure
34
The address of a memory cell is an indincation of
location in memory
35
(T/F) Formal parameters appear in the function definition
true
36
(T/F) A switch statement exits when a break statement is encountered
true
37
(T/F) An input validation loop ends when a sentinel value is encountered
False
38
(T/F) A change in the value of a variable as a result of carrying out an operation is called a side effect
true
39
(T/F) Using the break statement in an iterator will terminate the loop
True
40
(T/F) Pass by reference means the variable is used as data output from the function, not for data input
false
41
The name of the default object file on cis-linux2 is
a.out
42
(T/F) Functions with no arguments should be declared using the void C keyword.
True
43
DeMorgan's theorem tell us how to ___ an expression.
complement
44
Mapping integers to characters on the keyboard is done using
ASCII codes
45
A hand trace is used to verify the correctness of
an algorithm
46
The C statement if (0 <= x <= 4) printf ("Condition is true\n");
will only print when x is between 0 and 4
47
Formal parameters appear in a function
definition
48
(T/F) 10,000 gigabytes is larger than 1 terabyte.
false
49
A void function is one that
doesn't return a value
50
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?
exit
51
A combination of English phrases and C constructs used to describe algorithms is called
pseudocode
52
Logical negation is accomplished with
the ! operator