Files, Logging & Streaming Flashcards

1
Q

What are options for logging during program execution?

A

Write logs to files, the console, debug

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

Why would you want to use conditional complication?

A

If an output is required only when certain conditions hold true.

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

What is the difference between a text and binary file?

A

A text file stores data using ASCII values (alphabet, digits and symbols). Binary file contains a sequence or a collection of bytes.

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

What is a file signature ?

A

A file signature in computer programming is a unique identifying number located at the beginning of a file?

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

What do all .NET streams have in common? Why are there different types of derived streams?

A

They all have a reader and writer that are derived from the base class. However they use different streams for different data types and encoding.

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