ADVANCE OPERATING SYSTEM WITH UNIX
UNIT : 5 TO 8
TOTAL MARKS : 100
!! Every Question for 1 Marks !! 24 Marks
Q : 1 There are ------ types of UNIX files.
(A) One (B) Two (C) Three (D) Four
Q : 2 The following command creates an empty file filename “retech”.
(A) $Cat retech (B) $Echo retech (C) $Create retech (D) $Touch retech
Q : 3 Ctrl+D keystroke is default end-of-file character.
(A) True (B) False (C) May be (D) None
Q : 4 ---- are a powerful method for narrowing you file listings.
(A) Cards (B) Chars (C) Wild Chars (D) Wild Cards
Q : 5 PWD stands for -------------------.
(A) Password (B) Point Working Dictionary (C) Point Working Directory (D) None
Q : 6 You can not use the space and tabs as a name of file or directory in UNIX system.
(A) True (B) False (C) Can’t say (D) None
Q : 7 -------- is a simplest command for create a new directory.
(A) MKDIR (B) CTDIR (C) Create (D) None
Q : 8 To copy one or more files, You use the ----- command.
(A) Copy (B) CPY (C) CP (D) None
Q : 9 You can remove unwanted file using ----- command.
(A) Remove (B) Del (C) RM (D) None
Q : 10 All UNIX files have ----- types of permissions.
(A) One (B) Two (C) Four (D) None
Q : 11 The LN command creates both ----- and ----- link.
(A) Hard, Soft (B) Link, Soft (C) Symbolic, Soft (D) Symbolic, Hard
Q : 12 The ------ command lists the names of directory and files.
(A) Tree (B) List (C) LS (D) LN
Q : 13 ---- stands for any single character.
(A) _ (B) * (C) % (D) ?
Q : 14 The argument expressions for the find command fall into --------- categories.
(A) One (B) Two (C) Three (D) Four
Q : 15 The ----- operator appends the new output to the end of the specified file.
(A) ? (B) > (C) << (D) >>
Q : 16 UNIX has two calculator programs that you can form the command line : ----- and ----.
(A) bc, dc (B) cd, dc (C) cb, cd (D) None
Q : 17 The command : $ date “ + Today is %A, the %e of %B, %Y”, Display output as----(Think today).
(A) Today is Saturday, the 4 of July, 2009 (B) Today is Sat, the 4 of Jul, 09
(C) Today is Saturday, the 04/07/2009 (D) none of above
Q : 18 The ---- command normally reports certain information about logged-in users.
(A) Logged-in (B) Log-User (C) Who (D) Get
Q : 19 The ----- section is the heart of the manual page.
(A) DESCRIPTION (B) COMMAND (C) DESC (D) DETAIL
Q : 20 The default prompt for the interaction Bourne shell is a ------------.
(A) ? (B) * (C) $ (D) #
Q : 21 The ------ shell is a computer program.
(A) Bourn (B) Bourne (C) Command (D) None
Q : 22 You always enclose conditional variable substitutions in -------.
(A) [ ] (B) “ “ (C) { } (D) ( )
Q : 23 ----- variables are variable that the shell or any program can access to get information.
(A) Global (B) Local (C) Static (D) Environment
Q : 24 You can enter comments into shell program by inserting the ----- sign.
(A) $ (B) # (C) ? (D) *
@@ Every Question for 2 Marks @@ 32 Marks
Q : 25 You can temporarily freeze your terminal screen by typing ----- and restart it by typing -----------.
(A) Ctrl+D, Ctrl+Q (B) Ctrl+Q, Ctrl+S (C) Ctrl+S, Ctrl+D (D) Ctrl+S, Ctrl+Q
Q : 26 State true of false.
1. A directory is simply a special kind of files.
2. Like CP and RM, MV also prints some output when it works.
(A) True, True (B) True, False (C) False, True (D) False, False
Q : 27 State true of false.
1. The rmdir command removes all directories.
2. RM can remove directories if you use its +R(recursive) option.
(A) True, True (B) True, False (C) False, True (D) False, False
Q : 28 State true of false.
1. You can use MV command to Moves file one place to another.
2. You can use MV command to rename of the directory.
(A) True, True (B) True, False (C) False, True (D) False, False
Q : 29 State true of false.
1. A soft link is an alternative name for a file.
2. A symlink allows you to create an alias for a file.
(A) True, True (B) True, False (C) False, True (D) False, False
Q : 30 State true of false.
1. Symlinks may point to file or directory that doesn’t exist.
2. The permission modes on symlinks are meaningless.
(A) True, True (B) True, False (C) False, True (D) False, False
Q : 31 State true of false.
1. You can use MV command to Moves file one place to another.
2. You can use MV command to rename of the directory.
(A) True, True (B) True, False (C) False, True (D) False, False
Q : 32 There are two meta characters : --------- and -----------.
(A) @, * (B) *, $ (C) ?, $ (D) ?, *
Q : 33 Two operators enable you to redirect output to a file : ---------- and ------------.
(A) <, << (B) >, << (C) <, >> (D) >, >>
Q : 34 Most commands have two possible types of output : ------------ and ------------.
(A) Normal output, Error messages (B) Error messages, Standard output
(C) Normal output, Standard output (D) Both A and B
Q : 35 State true of false.
1. The shell is also a programming language.
2. Input to a shell prompt is sometimes called a input line.
(A) True, True (B) True, False (C) False, True (D) False, False
Q : 36 State true of false.
1. MAIL variable specifies the complete pathname of the user’s mailbox file.
2. The name of the mail file can be followed with a percent sign (%).
(A) True, True (B) True, False (C) False, True (D) False, False
Q : 37 When the shell’s command-line interpreter sees one of the metacharacters like -----,------ and ----- the shell searches the directories for file names that match a pattern indicated by the meta characters.
(A) *, #, ? (B) ?, [], # (C) ?, *, [] (D) [], *, $
Q : 38 The ------ is the value of the secondary shell prompt. The default value is -------.
(A) SP1, > (B) SP2, > (C) SP2, < (D) SP1, $
Q : 39 State true of false.
a. The until construct is complement to while.
b. The shift command can take an integer argument that causes it to shift more than one position at a time.
(A) True, True (B) True, False (C) False, True (D) False, False
Q : 40 State true of false.
1. Variables are symbols which hold some values.
2. The Bourne shell has four types of variables: User-defined variables, Positional variable, Predefined variables and Environment variable. (Remember it carefully)
(A) True, True (B) True, False (C) False, True (D) False, False
$$ Every Question for 4 Marks $$ 40 Marks
Q : 41 Match the following.
A (suffix) B (for Program)
1. .c a. Perl program file
2. .z b. C program files
3. .h c. Include files
4. .pl d. A compressed file
(A) 1-a,2-b,3-c,4-d (B) 1-b,2-c,3-a,4-d (C) 1-b,2-d,3-c,4-a (D) 1-b,2-d,3-a,4-c
Q : 42 Match the following.
A B
1. d a. Named pipe
2. l b. Directory
3. c c. Character special files
4. p d. Symbolic Link
(A) 1-a,2-b,3-c,4-d (B) 1-b,2-c,3-a,4-d (C) 1-b,2-d,3-c,4-a (D) 1-b,2-d,3-a,4-c
Q : 43 Match the following.
A B
1. u+rwx a. Turn on owner read, write and execute permission.
2. u-w b. Remove owner write permission.
3. go+x c. Add execute permission for group or other
4. ugo+rwx d. Turn on all permission for all users.
(A) 1-a,2-b,3-c,4-d (B) 1-b,2-c,3-a,4-d (C) 1-b,2-d,3-c,4-a (D) 1-b,2-d,3-a,4-d
Q : 44 Match the following.
A B
1. –Mount a. executing a UNIX command on found files.
2. –depth b. Search qualifier restricts the search to the file system named in the starting point.
3. –exec cmd \ c. search qualifier alters the seek order to a depth-first search.
4. –Print d. displaying the path name of found files.
(A) 1-a,2-b,3-c,4-d (B) 1-b,2-c,3-a,4-d (C) 1-b,2-d,3-c,4-a (D) 1-b,2-d,3-a,4-c
Q : 45 Match the following.
A B
1. a(x) a. The sine of X.
2. c(x) b. The arc tangent of X.
3. e(x) c. The cosine of X.
4. s(x) d. e raised to the X power
(A) 1-b,2-c,3-d,4-a (B) 1-b,2-c,3-a,4-d (C) 1-b,2-d,3-c,4-a (D) 1-b,2-d,3-a,4-c
Q : 46 Match the following.
A B
1. $ date + %a a. display the abbreviated name of the day.
2. $ date + %B b. display the abbreviated name of the month.
3. $ date + %W c. display the week of the year.
4. $ data + %w d. display the day of week as a number between 0 to 6.
(A) 1-a,2-b,3-c,4-d (B) 1-b,2-c,3-a,4-d (C) 1-b,2-d,3-c,4-a (D) 1-b,2-d,3-a,4-c
Q : 47 Match the following.
A B
1. –f filenm a. True if the size of filenm is not zero.
2. –d filenm b. True if filenm is a regular file.
3. –b filenm c. True if filenm is a block special file.
4. –s filenm d. True if filenm is a directory.
(A) 1-a,2-b,3-c,4-d (B) 1-b,2-c,3-a,4-d (C) 1-b,2-d,3-c,4-a (D) 1-b,2-d,3-a,4-c
Q : 48 Match the following.
A B
1. $# a. Contain the exit status of the last command executed.
2. $$ b. Contain the number of argument passed to the program.
3. $? c. Contain the process ID of the current process.
4. $* d. Contain all the positional arguments passed to the program.
(A) 1-a,2-b,3-c,4-d (B) 1-b,2-c,3-a,4-d (C) 1-b,2-d,3-c,4-a (D) 1-b,2-d,3-a,4-c
Q : 49 Find the false statement according to Bourne shell.
1. The break command causes the program to exit the loop immediately.
2. The continue command causes the program to skip remaining commands.
3. The Bourne shell is capable to generate the subroutines which call any where in program.
4. Any signal can be trapped in Bourne shell programming.
(A) All True (B) 1,2,3 (C) 4,3 (D) Only 4
Q : 50 Match the following.
A B
1. –f a. Prints commands and their argument as they are executed.
2. –n b. Disables filename substitution.
3. –u c. treats unset variables as errors when substituting.
4. –x d. Causes the shell to read commands but not execute them.
(A) 1-a,2-b,3-c,4-d (B) 1-b,2-c,3-a,4-d (C) 1-b,2-d,3-c,4-a (D) 1-b,2-d,3-a,4-c
Q : 51 The enhancements can be collected into the following catregory.
1. Job Processing 2. Command Aliases 3. Directory Management
4. Command substitution 5. Command history 6. Escaping and quoting
7. Substitution of variable 8. Syntax improvement 9. Coprocessing
(A) 1,2,3,4,5,8,9 (B) 1,2,3,4,7,8,9 (C) 1,2,3,5,8,9 (D) All of above
** Best of luck for university EXAM **
UNIT : 5 TO 8 ADVANCE OPERATING SYSTEM WITH UNIX
DATE : __/ __/ 2009 TOTAL MARKS : 100
1 | C | 11 | D | 21 | B | 31 | A | 41 | C |
2 | D | 12 | C | 22 | C | 32 | D | 42 | C |
3 | A | 13 | D | 23 | D | 33 | D | 43 | A |
4 | D | 14 | C | 24 | B | 34 | D | 44 | B |
5 | C | 15 | D | 25 | D | 35 | B | 45 | A |
6 | B | 16 | A | 26 | B | 36 | A | 46 | A |
7 | A | 17 | A | 27 | D | 37 | C | 47 | C |
8 | C | 18 | C | 28 | A | 38 | B | 48 | B |
9 | C | 19 | A | 29 | C | 39 | A | 49 | D |
10 | D | 20 | C | 30 | A | 40 | A | 50 | C |
0 comments:
Post a Comment