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?
    24+4
  2. How many bytes does it take to store a 4 digit hexadecimal number (eg 0xFFFF) ?
    2
  3. Convert the following binary number to decimal. 01101100
    108 = 4 + 8 + 32 + 64
  4. Convert the following octal number to decimal. 101
    65 = 1 + 64
  5. Convert the following decimal to hexidecimal (use capitol letters). 163
    0xA3 = 10*16 + 3* 1
  6. Convert the following binary to hexidecimal. 1101 1001 1010 1100
    D9AC
  7. Paths that start with a '/' are called what kind of path ?
    absolute
  8. What is the command to print the current working directory?
    pwd
  9. What is the command to delete a file?
    rm
  10. What would you type to show all files in the current directory that start with Joe and end with txt?
    ls Joe*txt
  11. What command would you enter to find out how to use the lpr command?
    man lpr
  12. What command would you enter to create a directory named 'newdir'?
    mkdir newdir
  13. What command would you use to list the contents of Text.txt to the screen?
    cat Text.txt
  14. What command would list all the projects defined for class cs104_grasso using the submit utility ?
    submitproj cs104_grasso
  15. What command would list all the files that you previously submitted for class cs104_grasso and project quiz01 ?
    submitls cs104_grasso quiz01
  16. What command would remove the file quiz.txt that you previously submitted for class cs104_grasso and project quiz01 ?
    submitrm cs104_grasso quiz01 quiz.txt