

McqMate
These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Computer Science Engineering (CSE) .
101. |
Which command is used to extract specific columns from the file? |
A. | cut |
B. | grep |
C. | past |
D. | cat |
Answer» A. cut |
102. |
Which command is used with vi editor to move the cursor to the left? |
A. | i |
B. | k |
C. | j |
D. | h |
Answer» D. h |
103. |
Which command is used to create a directory? |
A. | crdir |
B. | mkdir |
C. | md |
D. | cr |
Answer» B. mkdir |
104. |
Which of the following changes permission to deny write permission to group and others? |
A. | chmod go-w filex |
B. | chmod go w filex |
C. | chmod go=w file |
D. | none of the above |
Answer» A. chmod go-w filex |
105. |
Which command is used with vi editor to delete a single character? |
A. | z |
B. | y |
C. | a |
D. | x |
Answer» D. x |
106. |
The tar command in UNIX |
A. | used to create compressed archives of directories and files |
B. | used to extract directories and files from an archives |
C. | both a and b |
D. | none of the above |
Answer» C. both a and b |
107. |
Which command is used to sort the lines of data in a file in reverse order |
A. | sort |
B. | sh |
C. | st |
D. | sort -r |
Answer» D. sort -r |
108. |
Which of the following commands is used to rename a file? |
A. | rename |
B. | mv |
C. | remove |
D. | ren |
Answer» B. mv |
109. |
Which command is used to display a file contents in octal form? |
A. | cd |
B. | of |
C. | od |
D. | oct |
Answer» C. od |
110. |
Which of the following commands is used to count the total number of lines,words and characters contained in a file? |
A. | count p |
B. | wcount |
C. | wc |
D. | count w |
Answer» C. wc |
111. |
The cc command makes a total of |
A. | 1 pass |
B. | 2 pass |
C. | 4 pass |
D. | 5 pass |
Answer» D. 5 pass |
112. |
Which of the following commands is used for an automatic remainder service? |
A. | write |
B. | calender |
C. | |
D. | mesg |
Answer» B. calender |
113. |
The Unix command used to find out the number of characters in a file is |
A. | nc |
B. | wc |
C. | chcnt |
D. | c |
Answer» B. wc |
114. |
In a system ,if 5 people are currently using vi editor ,then the number of corresponding processes will be |
A. | 1 |
B. | 5 |
C. | 3 |
D. | 0 |
Answer» B. 5 |
115. |
Which set option is used with vi editor to display line numbers on screen? |
A. | nm |
B. | nu |
C. | ic |
D. | li |
Answer» B. nu |
116. |
Which command will be used with vi editor to move back to the beginning of a word? |
A. | b |
B. | e |
C. | a |
D. | w |
Answer» A. b |
117. |
Which of the following are not system calls? |
A. | chmod |
B. | open |
C. | lseek |
D. | getc |
Answer» D. getc |
118. |
The advantage of binary files over text files is that |
A. | it is compact |
B. | it can be accessed faster |
C. | many commands assume the named file to be a binary file |
D. | they are more reliable |
Answer» D. they are more reliable |
119. |
The cat command is used to |
A. | print a file |
B. | display a file |
C. | capture a file |
D. | copy a file |
Answer» B. display a file |
120. |
Command compares two files byte by byte and displays the first mismatch. |
A. | cmp |
B. | comp |
C. | cmap |
D. | none of these |
Answer» A. cmp |
121. |
When the read system call encounters EOF ,it returns |
A. | some positive integer |
B. | some negative integer |
C. | 0 |
D. | -1 |
Answer» C. 0 |
122. |
Which of the following system calls,does not return control to the calling point, on termination? |
A. | fork |
B. | exec |
C. | ioct1 |
D. | longjmp |
Answer» B. exec |
123. |
Which command is used to display the characteristics of a process? |
A. | pid |
B. | ps |
C. | du |
D. | au |
Answer» D. au |
124. |
Which command is used to display and create files? |
A. | cat |
B. | ed |
C. | vi |
D. | lyrix |
Answer» A. cat |
125. |
Files that can store data in the same format as used in program are called |
A. | binary files |
B. | source file |
C. | text file |
D. | core |
Answer» A. binary files |
126. |
The file that stores an integer as a sequence of characters is a |
A. | text file |
B. | data file |
C. | binary file |
D. | core |
Answer» A. text file |
127. |
Which is the earliest and most widely used shell that came with the UNIX system? |
A. | c shell |
B. | korn shell |
C. | bourne shell |
D. | smith shell |
Answer» C. bourne shell |
128. |
System call mknod creates a |
A. | new file |
B. | new directory |
C. | new binary file |
D. | none of these |
Answer» B. new directory |
129. |
A pipe a mechanism that allow a stream of data between to be passed between…….. |
A. | reader and writer process |
B. | reader process |
C. | writer process |
D. | none of these |
Answer» A. reader and writer process |
130. |
Which command is used to display the top of the file? |
A. | cat |
B. | head |
C. | more |
D. | grep |
Answer» B. head |
131. |
Which of the following keys is used to replace a single character with new text? |
A. | s |
B. | s |
C. | r |
D. | c |
Answer» B. s |
132. |
Which command sends the word count of the file infile to the newfile. |
A. | wc infile >newfile |
B. | wc <infile >newfile |
C. | wc infile - newfile |
D. | wc infile | newfile |
Answer» A. wc infile >newfile |
133. |
Which command is used to remove the read permission of the file 'note' from both the group and others? |
A. | chmod go+r note |
B. | chmod go+rw note |
C. | chmod go-x note |
D. | chmod go-r, 4-x note |
Answer» D. chmod go-r, 4-x note |
134. |
Which of the following commands is used to display the directory attributes rather than its contents? |
A. | ls -1 -d |
B. | ls -1 |
C. | ls -x |
D. | ls -f |
Answer» A. ls -1 -d |
135. |
Which of the following files will displayed by this command cat *ch* |
A. | patch |
B. | catch |
C. | .ch |
D. | all of the above |
Answer» D. all of the above |
136. |
If you are to use [Control-c] as the interrupt key instead of [Del], then you will have to use |
A. | tty ^c |
B. | stty intr \\^c |
C. | stty echoe |
D. | stty echo \\^a |
Answer» B. stty intr \\^c |
137. |
Which of the following keys is used to move the cursor to the end of the paragraph. |
A. | } |
B. | { |
C. | | |
D. | $ |
Answer» A. } |
138. |
Which command is used to concatenate all files beginning with the string 'emp' and followed by a non-numeric characters? |
A. | cat emp[!0-9] |
B. | more [emp][!0-9] |
C. | cat emp[x-z] |
D. | cat emp[a-z] |
Answer» A. cat emp[!0-9] |
139. |
The command which transcribes the standard input to the standard output and also makes a copy of the same in a file is |
A. | tee |
B. | tr |
C. | sort |
D. | grep |
Answer» A. tee |
140. |
Which symbol is used to separate more than one command in the same command line? |
A. | $ |
B. | # |
C. | : |
D. | ; |
Answer» D. ; |
141. |
The agency that sits between the user and the UNIX system is called the |
A. | logic |
B. | profile |
C. | shell |
D. | erxc |
Answer» C. shell |
142. |
Which of the following commands is used to update access and modification times of a file? |
A. | grep |
B. | wc |
C. | touch |
D. | cat |
Answer» C. touch |
143. |
Which command is used to count just the number of characters in a file? |
A. | wc - 1 |
B. | wc -c |
C. | wc -w |
D. | wc -r |
Answer» B. wc -c |
144. |
Which of the following commands is used to list contents of directories? |
A. | ls |
B. | lp |
C. | dir |
D. | tar |
Answer» A. ls |
145. |
In vi editor, forward search is performed using the command. |
A. | :pat |
B. | :pat |
C. | /pat |
D. | all of the above |
Answer» D. all of the above |
146. |
Which of the following special shell variables is used to process number of the last background job? |
A. | $! |
B. | $# |
C. | 0 |
D. | $* |
Answer» A. $! |
147. |
Which option will be used with ps command to slow the entire command line of the process being run? |
A. | -4 |
B. | -f |
C. | -1 |
D. | -4 |
Answer» B. -f |
148. |
Which of the following command addresses all users who are currently hooked on? |
A. | write |
B. | |
C. | wall |
D. | mesg |
Answer» C. wall |
149. |
Which of the following directories contain all the Ales created by a user, including his login directory? |
A. | /tmp |
B. | /etc |
C. | /usr |
D. | /dev |
Answer» C. /usr |
150. |
Which of the following commands is used to obtain a list of all files by modification time? |
A. | ls -1 |
B. | ls -t |
C. | ls -i |
D. | ls -r |
Answer» B. ls -t |
Done Studing? Take A Test.
Great job completing your study session! Now it's time to put your knowledge to the test. Challenge yourself, see how much you've learned, and identify areas for improvement. Don’t worry, this is all part of the journey to mastery. Ready for the next step? Take a quiz to solidify what you've just studied.