Explore topic-wise MCQs in Engineering.

This section includes 4320 Mcqs, each offering curated multiple-choice questions to sharpen your Engineering knowledge and support exam preparation. Choose a topic below to get started.

2101.

Which of the following commands is used to change the working directory?

A. cd
B. changedir
C. chdir
D. cdir
E. None of the above
Answer» B. changedir
2102.

Which of the following commands is used to absolutely assign all permissions to the owner, read and write permissions to the group and only executable permission to the others of the file note?

A. chmod 761 note
B. chmod 671 note
C. chmod 167 note
D. chmod 4=rwx, g=rw note
E. None of the above
Answer» B. chmod 671 note
2103.

Which command is used to list all the files with extension .lst?

A. ls -l *.lst
B. ls lst*
C. ls *.*
D. ls *[lst]
E. None of the above
Answer» B. ls lst*
2104.

Which option is used with the chmod command recursively to all files and sub-directories in a directory?

A. -1
B. -i
C. -x
D. -R
E. None of the above
Answer» E. None of the above
2105.

Which command is used to change directory to the name beginning with a 'p'?

A. cd p
B. cd p?
C. cd p*
D. cd [p]
E. None of the above
Answer» D. cd [p]
2106.

Which of the following commands is used to display the filenames in multiple columns?

A. ls
B. ls -1
C. ls -x
D. lc
E. None of the above
Answer» D. lc
2107.

Which command is used with file named 'note' to remove the executable permission from the user and assign read permission to the group and others?

A. chmod u-x, go+r note
B. chmod go+r, u+x note
C. chmod g-x, uo+r note
D. chmod go+x, u-x note
E. None of the above
Answer» B. chmod go+r, u+x note
2108.

Which operator will be used with chmod command to assign absolute permission?

A. +
B. -
C. =
D. %
E. None of the above
Answer» D. %
2109.

Which command is used with vi editor to save file and remain in the editing mode?

A. :q
B. :w
C. q!
D. :x
E. None of the above
Answer» C. q!
2110.

The [line number G] key allows you

A. to move cursor left by one position
B. to move cursor right by one position
C. to move cursor down by one line
D. to move cursor to the beginning of the line specified by the number
E. None of the above
Answer» E. None of the above
2111.

Which of the following commands is used to have a two-way communication with any person who is currently logged in?

A. mail
B. mesg
C. write
D. grep
E. None of the above
Answer» D. grep
2112.

You can append to a file instead of overwriting by using the

A. > symbols
B. >> symbols
C. < symbols
D. << symbols
E. None of the above
Answer» C. < symbols
2113.

The command used to remove the directory is;

A. rmdir
B. rd
C. remove
D. rdir
E. None of the above
Answer» B. rd
2114.

Which symbol will be used with grep command to match the pattern pat at the end of a line?

A. ^pat
B. $pat
C. pat$
D. pat^
E. None of the above
Answer» D. pat^
2115.

Which command is used to display all the lines with the string 'sales' from the file empl.lst?

A. cut sales empl.lst
B. /sales > empl.lst
C. grep sales empl.lst
D. cat | /sales > empl.lst
E. None of the above
Answer» D. cat | /sales > empl.lst
2116.

Which of the following commands is not the vi Input mode command?

A. rch
B. R
C. S
D. j
E. None of the above
Answer» E. None of the above
2117.

Which of the following commands is used to remove files?

A. erase
B. delete
C. rm
D. dm
E. . None of the above
Answer» D. dm
2118.

The cat command is used to

A. capture a file
B. display a file
C. print a file
D. copy a file
E. None of the above
Answer» C. print a file
2119.

Which of command is used to copy a file?

A. copy
B. cp
C. cpio
D. tar
E. None of the above
Answer» C. cpio
2120.

The special shell variable $* is used

A. to exit status of ast command executed.
B. to process number of the current shell
C. to list the positional parameters
D. to name the command being executed
E. None of the above
Answer» D. to name the command being executed
2121.

The UNIX file system stores a data in physical blocks of

A. 1024 bytes
B. 2048 bytes
C. 512 bytes
D. 256 bytes
E. None of the above
Answer» D. 256 bytes
2122.

Which of the following is invalid filename?

A. shutry
B. TRY
C. trial
D. my .file
E. None of the above
Answer» F.
2123.

Which command is used to link the files?

A. lk
B. ln
C. cp
D. tar
E. None of the above
Answer» C. cp
2124.

Which of the following signs is used to back up over typing errors in vi?

A.
B. @#
C. $
D. !
E. None of the above
Answer» C. $
2125.

Which command is used to terminate all processes in your own system except the login shell?

A. kill 1
B. kill 0
C. cancel all
D. cancel 1
E. None of the above
Answer» C. cancel all
2126.

Major expressions used with find command to select file is it has been accessed in more than 375 days, is

A. -atime +365
B. -mtime + 365
C. -atime -365
D. -mtime -365
E. None of the above
Answer» B. -mtime + 365
2127.

Which command is used to assign only read permission to all three categories of the file 'note'?

A. chmod go+r note
B. chmod a-rw
C. chmod ugo=r note
D. chmod u+r,g+r,o-x note
E. None of the above
Answer» D. chmod u+r,g+r,o-x note
2128.

The command that can be used to restrict incoming messages to a user is

A. mesg
B. grep
C. halt
D. sleep
E. None of the above
Answer» B. grep
2129.

Which of the following commands is used to copy directory structures in and out

A. cp
B. cpio
C. cp - p
D. copy
E. None of the above
Answer» C. cp - p
2130.

Which of following commands is used for an automatic reminder service?

A. write
B. mesg
C. calendar
D. mail
E. None of the above
Answer» D. mail
2131.

Which command allows you to view your file 24 lines at a time?

A. more
B. pg
C. cat
D. lp
E. None of the above
Answer» C. cat
2132.

Which of the following commands is used to save the output of the who command in a file named user.lst, as well as display it?

A. who | tee user.lst
B. who > user.lst
C. who >> user.lst
D. who < user.lste
E. None of the above
Answer» B. who > user.lst
2133.

Which command is used with vi editor scroll half page backward?

A. [Control-d]
B. [Control - u]
C. [Control-c]
D. [Control -P]
E. None of the above
Answer» C. [Control-c]
2134.

The first set of the three permissions (rw) pertains to the owner of the file, indicating that the owner has

A. executable permission only
B. write and executable permissions
C. both read and executable permissions.
D. both read and write permissions
E. None of the above
Answer» E. None of the above
2135.

Which of the following shell's wildcards are used to match any number of characters including none?

A. [ijk]
B. [!ijk]
C. ?
D. *
E. None of the above
Answer» E. None of the above
2136.

Which of the following special shell variables is used to process number of the current shell?

A. $!
B. $$
C. $0
D. $*
E. None of the above
Answer» C. $0
2137.

Which option is used with cmp command to give a detailed list of the byte number and the differing bytes in octal for each character that differs in both the files?

A. -l
B. -d
C. -r
D. -b
E. None of the above
Answer» B. -d
2138.

Which command is used with vi editor to move cursor forward to first occurrence of character 'ch' in the current line?

A. tch
B. fch
C. rch
D. ech
E. None of the above
Answer» C. rch
2139.

Which of the following keys is used to delete the character beneath the cursor?

A. x
B. X
C. dd
D. D
E. None of the above
Answer» B. X
2140.

The chmod ugo+rw note command can be represented in octal notation as

A. chmod 555 note
B. chmod 666 note
C. chmod 444 note
D. chmod 333 note
E. None of the above
Answer» C. chmod 444 note
2141.

Which of the following commands is used to display the filenames in multiple columns with indication of directories and executable file?

A. ls -F -x
B. ls -l
C. ls ~ x
D. Ip
E. None of the above
Answer» B. ls -l
2142.

Which command is used with vi editor to search a pattern in the forward direction?

A. /
B. ?
C. //
D. ??
E. None of the above
Answer» B. ?
2143.

Which set option is used with vi editor to display line numbers on screen?

A. nm
B. nu
C. ic
D. li
E. None of the above
Answer» C. ic
2144.

Which command is used to print a file?

A. print
B. prn
C. pg
D. lp
E. None of the above
Answer» E. None of the above
2145.

Which of the following set options is used with vi editor to ignore case while searching for patterns?

A. ic
B. ai
C. sm
D. ts
E. None of the above
Answer» B. ai
2146.

Which command is used to list out all the hidden files along with the other files?

A. ls -l
B. ls -x
C. ls -F
D. ls -a
E. None of the above
Answer» E. None of the above
2147.

The command chmod 761 note is equivalent to

A. chmod 167 note
B. chmod u=rwx, g=rw, o=x note
C. chmo a =761 note
D. chmod 4=7, g=6,0 =1 note
E. None of the above
Answer» C. chmo a =761 note
2148.

A smart solid-state sensor is:

A. one that integrates both logic and a solid-state sensor into one unit.
B. one that has two or three substrates
C. not available today
D. All of the above
E. None of the above
Answer» B. one that has two or three substrates
2149.

Which of the following commands can be used to get information about all users who are currently logged into the system?

A. which
B. who
C. who am i
D. 1 /u
E. None of the above
Answer» C. who am i
2150.

Which of the following keys is used to overstrike a whole line?

A. R
B. v
C. C
D. u
E. None of the above
Answer» B. v