QUESTIONS AND CORRECT ANSWERS
Basic linux commands - CORRECT ANSWER cd - change directory
Ls - list directory contents
Mkdir - make directory
Rmdir - remove directory (must be empty)
Rm - removes file
Mv - move file or rename
When listing files in linux, what option will show hidden files in a directory, along with the rest of the
files? - CORRECT ANSWER -a
What best describes what a path is? - CORRECT ANSWER The roadmap from one location to
another in a file system
What two words best describe the types of paths? - CORRECT ANSWER Relative and absolute
What symbol represents the users home directory? - CORRECT ANSWER ~
What is an example of a type that is not built in to C - CORRECT ANSWER int32_t (as
opposed to float, int, char, etc.)
What are the selection structures that C offers? - CORRECT ANSWER Switch statements and
if statements
What are the pre-test loops in C? - CORRECT ANSWER While loop and for loops
What function allows for output in C? - CORRECT ANSWER fprintf or printf
Format flag for integers - CORRECT ANSWER d
, Format flag for strings - CORRECT ANSWER s
Format flag for double - CORRECT ANSWER lf
Format flag for char - CORRECT ANSWER c
What stream is connected to the keyboard - CORRECT ANSWER stdin
What stream(s) is/are connected to the terminal or console - CORRECT ANSWER stderr and
stdout
What is the first step in the compilation process - CORRECT ANSWER Preprocessor
What is the second step in the compilation process - CORRECT ANSWER Compiler
What is the third step in the compilation process - CORRECT ANSWER Assembler
What is the fourth step in the compilation process - CORRECT ANSWER Linker
What is true about the linker? - CORRECT ANSWER - The linker is responsible for resolving
functions used in one file but created in another
- The linker creates an executable from object files (.o)
How do you add the debugging symbols to your executable when compiling - CORRECT
ANSWER -g
True or false: All functions must be declared before they can be called - CORRECT
ANSWER True