quiz01 - Unix & Number Systems


From Linux on the GL machine:

5 Points
  • Create a quiz1 subdirectory in your CMSC104 directory
  • Navigate into the quiz1 subdirectory
  • Using a text editor, create a file called quiz1Answers.txt
  • Type the answers to the quiz questions below in this file.
  • Put one answer per line, and number each one
  • Make sure to save the file when you are done
  • Submit quiz1Answers.txt to project: quiz01 for class: cs104_grasso

1 Point Each
  1. How many bits in three bytes and 1 nibble?
  2. How many bytes does it take to store a 4 digit hexadecimal number (eg 0xFFFF) ?
  3. Convert the following binary number to decimal. 01101100
  4. Convert the following octal number to decimal. 101
  5. Convert the following decimal to hexidecimal (use capitol letters). 163
  6. Convert the following binary to hexidecimal. 1101100110101100
  7. Paths that start with a '/' are called what kind of path ?
  8. What is the command to print the current working directory?
  9. What is the command to delete a file?
  10. What would you type to show all files in the current directory that start with Joe and end with txt?
  11. What command would you enter to find out how to use the lpr command?
  12. What command would you enter to create a directory named 'newdir'?
  13. What command would you use to list the contents of Text.txt to the screen?
  14. What command would list all the projects defined for class cs104_grasso using the submit utility ?
  15. What command would list all the files that you previously submitted for class cs104_grasso and project quiz01 ?
  16. What command would remove the file quiz.txt that you previously submitted for class cs104_grasso and project quiz01 ?