Week 8 / C Input Flashcards

1
Q

variadic function

A

can take in as many arguments as you need
ex: printf()

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

int main( int argc, char * argv[] )

A

argc = number of command line arguments *including the name of the program

argv[0] = name of the program, no limit

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

formatted text files

A

a bunch of text characters that are considered human-readable (like a word doc)

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

binary files

A

contains data in raw state, ex: integer 246813579 is saved as 4-byte chunk of binary digits

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

testing

A

opportunity to find errors when they are introduced; cannot prove absence of defects

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

driver

A

calls appropriate functions to test functionality of code being tested

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

stubs

A

piece of code that stands in for another piece of code, usually has hard-coded return values

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