ULI101-REVIEW

ULI101-REVIEW - REVIEW TEST for ULI101 QUESTIONS PART A...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: REVIEW TEST for ULI101 QUESTIONS PART A MULTIPLE CHOICE 16 MARKS PART B MATCHING 10 MARKS PART C UNIX COMMANDS 20 MARKS PART D SHORT ANSWERS and VI 12 MARKS PART E FILE MANAGEMENT 18 MARKS PART F SCRIPTING 12 MARKS PART G XHTML 12 MARKS TOTAL MARKS 100 MARKS PROFESSOR (S): SPECIAL INSTRUCTIONS: 1. AIDS: ONE 8 ½ x 11 INCH REFERENCE SHEET (HAND-WRITTEN,BOTH SIDES) 2. ANSWER ALL QUESTIONS ON THE EXAM PAPER. NOTE: The real exam has 6 parts (very similar to this Review) and it is of similar length and a difficulty level. It goes for 90 marks. ULI101 Page 1 of 16 pages PART A – MULTIPLE CHOICE 16 MARKS Choose by circling the best answer for each question (circle only 1 answer). One point will be awarded for each correct answer. 1. To search for short descriptions and manual names for the Unix command containing the keyword “chat ”, you issue the Unix command: a) man chat b) man –k chat c) man –s chat d) man –f chat 2. Which of the following are features of the Unix OS? a) Allow more that one person to communication with the computer. b) Allow users to share or restrict access to their files. c) Allow a routine series of Unix commands to be run automatically as shell scripts. d) All of the above are features of the Unix OS. 3. Assuming that the user is currently in their home directory, which of the following Unix commands will copy the entire contents of the user’s home directory (including subdirectory contents) to a directory called ~/backup ? a) copy ~ ~/backup b) cp –r ~ ~/backup c) cp . ~backup d) Both a and b 4. Which of the following Unix commands will change permissions for all files contained in the directory pathname ~/unx122/samples to allow full permissions for the user, read and execute permissions for group and others? a) chmod 711 ~/unx122/samples b) chmod 755 ~/unx122/samples c) chmod 755 ~/unx122/samples/* d) chmod 766 ~/unx122/samples ULI101 Page 2 of 16 pages 5. Which of the following Unix commands will display lines 3 to 7 of a 10 line file called fun that is contained in your current directory? a) head –7 fun | tail -5 b) tail –8 fun | head -5 c) both a and b d) cat fun | head -5 6. A command that could be used to determine if a filename is a directory is: a) type b) file c) dir d) grep 7. When displaying the contents of a text file (while being in “vi” editor), one screen at a time, to find the word "pipe" enter: a) find pipe b) /pipe c) grep pipe d) next pipe 8. What will happen if the following Unix command is issued: sort yourfile | tail -25 > abc a) The last 25 lines (sorted in alphabetical order) will be stored in file abc overwriting the previous file content. b) The last 25 lines (sorted in alphabetical order) will be appended to file abc ....
View Full Document

{[ snackBarMessage ]}

Page1 / 16

ULI101-REVIEW - REVIEW TEST for ULI101 QUESTIONS PART A...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online