CS 2505 Final Exam Study Guide With
Complete Solutions
Basic linux commands - 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? - ANSWER -a
What best describes what a path is? - ANSWER The roadmap from one location to
another in a file system
What two words best describe the types of paths? - ANSWER Relative and absolute
What symbol represents the users home directory? - ANSWER ~
What is an example of a type that is not built in to C - ANSWER int32_t (as opposed to
float, int, char, etc.)
, What are the selection structures that C offers? - ANSWER Switch statements and if
statements
What are the pre-test loops in C? - ANSWER While loop and for loops
What function allows for output in C? - ANSWER fprintf or printf
Format flag for integers - ANSWER d
Format flag for strings - ANSWER s
Format flag for double - ANSWER lf
Format flag for char - ANSWER c
What stream is connected to the keyboard - ANSWER stdin
What stream(s) is/are connected to the terminal or console - ANSWER stderr and stdout
What is the first step in the compilation process - ANSWER Preprocessor
Complete Solutions
Basic linux commands - 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? - ANSWER -a
What best describes what a path is? - ANSWER The roadmap from one location to
another in a file system
What two words best describe the types of paths? - ANSWER Relative and absolute
What symbol represents the users home directory? - ANSWER ~
What is an example of a type that is not built in to C - ANSWER int32_t (as opposed to
float, int, char, etc.)
, What are the selection structures that C offers? - ANSWER Switch statements and if
statements
What are the pre-test loops in C? - ANSWER While loop and for loops
What function allows for output in C? - ANSWER fprintf or printf
Format flag for integers - ANSWER d
Format flag for strings - ANSWER s
Format flag for double - ANSWER lf
Format flag for char - ANSWER c
What stream is connected to the keyboard - ANSWER stdin
What stream(s) is/are connected to the terminal or console - ANSWER stderr and stdout
What is the first step in the compilation process - ANSWER Preprocessor