![]() |
CMSC104Problem Solving & Computer Programming |
From Linux on the GL machine:
5 PointsCreate 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 EachHow many bits in three bytes and 1 nibble?
24+4
How many bytes does it take to store a 4 digit hexadecimal number (eg 0xFFFF) ?2
Convert the following binary number to decimal. 01101100108 = 4 + 8 + 32 + 64
Convert the following octal number to decimal. 10165 = 1 + 64
Convert the following decimal to hexidecimal (use capitol letters). 1630xA3 = 10*16 + 3* 1
Convert the following binary to hexidecimal. 1101 1001 1010 1100D9AC
Paths that start with a '/' are called what kind of path ?absolute
What is the command to print the current working directory?pwd
What is the command to delete a file?rm
What would you type to show all files in the current directory that start with Joe and end with txt?ls Joe*txt
What command would you enter to find out how to use the lpr command?man lpr
What command would you enter to create a directory named 'newdir'?mkdir newdir
What command would you use to list the contents of Text.txt to the screen?cat Text.txt
What command would list all the projects defined for class cs104_grasso using the submit utility ?submitproj cs104_grasso
What command would list all the files that you previously submitted for class cs104_grasso and project quiz01 ?submitls cs104_grasso quiz01
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