Explore topic-wise MCQs in Computer Science Engineering (CSE).

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

501.

The command echo welcome > /dev / tty

A. echoes welcome in all the terminals that are switched on.
B. echoes welcome in all the terminals that are logged on.
C. echoes welcome only in the terminal in which it is run.
D. both (a) and ©
Answer» E.
502.

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

A. ls
B. ls -1
C. ls -x
D. lc
Answer» D. lc
503.

Which of the following features of UNIX may be used for inter process communication?

A. signals
B. pipes
C. semaphore
D. all of these
Answer» E.
504.

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

A. @
B. #
C. $
D. !
Answer» C. $
505.

Which of are following internal commands is used in mail to forward mail to user in user-list?

A. r user-list
B. m user-list
C. d user-list
D. e user-list
Answer» C. d user-list
506.

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
Answer» C. cancel all
507.

Which command is used to link the files?

A. ik
B. in
C. cp
D. tar
Answer» C. cp
508.

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
Answer» D. grep
509.

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

A. :q
B. :w
C. q!
D. :x
Answer» C. q!
510.

Which of the following commands is used to remove files?

A. erase
B. delete
C. rm
D. dm
Answer» D. dm
511.

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

A. rch
B. r
C. s
D. j
Answer» E.
512.

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
Answer» D. cat | /sales > empl.lst
513.

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^
Answer» D. pat^
514.

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

A. [ijk]
B. [!ijk]
C. ?
D. *
Answer» E.
515.

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
Answer» B. who > user.lst
516.

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
Answer» E.
517.

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
Answer» D. chmod u+r,g+r,o x note
518.

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
Answer» C. rch
519.

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

A. [control-d]
B. [control - u]
C. [control-c]
D. [control -p]
Answer» C. [control-c]
520.

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

A. x
B. x
C. dd
D. d
Answer» B. x
521.

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
Answer» B. -d
522.

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

A. $!
B. $$
C. $*
Answer» C. $*
523.

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

A. more
B. pg
C. cat
D. lp
Answer» C. cat
524.

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

A. cp
B. cpio
C. cp - p
D. copy
Answer» C. cp - p
525.

Which command is used to save the standard output in a file, as well as display it on the terminal?

A. more
B. cat
C. grep
D. tee
Answer» E.
526.

Which command is used to move all files to the bin sub-directory of the parent directory?

A. mv *.* /bin/
B. mv * /bin/*
C. mv * ../bin
D. mv * ../bin *.*
Answer» D. mv * ../bin *.*
527.

Which of the following command is used to count just the number of lines contained in a file?

A. wc -l
B. wc -c
C. wc -w
D. wc -r
Answer» B. wc -c
528.

The octal representation 652 indicates

A. execute permission for the owner
B. write permission for others
C. read and write permission of groups
D. all of the above
Answer» C. read and write permission of groups
529.

Which command is used to locate all the .profile files in the system?

A. ls profile
B. find /-name profile print
C. cd /.profile
D. l -u .profile
Answer» C. cd /.profile
530.

The File that contains a set of instructions which are performed when a user logs in, is

A. .exrc
B. .profile
C. .autoexec
D. autoexec.bat
Answer» C. .autoexec
531.

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

A. r
B. v
C. c
D. u
Answer» B. v
532.

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
Answer» C. who am i
533.

Which of the following commands can be used to get information about yourself?

A. who am i
B. i /4
C. pwd
D. which
Answer» B. i /4
534.

Which command is used to set the three permissions for all the three categories of users of a file?

A. chgrp
B. chown
C. chmod
D. chusr
Answer» D. chusr
535.

Which option will be used with disk free command to include the total amount of disk space in the file system?

A. -t
B. -tt
C. -4
D. -i
Answer» B. -tt
536.

The ls -l command tells

A. who the owner of the file is
B. the name of the group owner of the file
C. how large the file is and when the file was last modified.
D. all of the above
Answer» E.
537.

Which command is used to display the end of the file?

A. head - r
B. tail
C. eof
D. bof
Answer» C. eof
538.

The seventh field of /etc/password is………….

A. password
B. login
C. shell
D. home
Answer» D. home
539.

Which command is used to sort the lines of data in a file in alphabetical order?

A. sort
B. sh
C. st
D. sort -r
Answer» B. sh
540.

Which command is used to copy a file wb with the same name from the programs directory to the misc directory?

A. copy programs/wb misc/wb
B. cp programs/wb misc
C. tar programs/wb misc/wb
D. copy a:programs/wb b:misc/wb
Answer» C. tar programs/wb misc/wb
541.

If a file has read and write permissions for the owner, then the octal representation of the permissions will be

A. 1
B. 6
C. 5
D. 3
Answer» C. 5
542.

The commonly used UNIX commands like date, ls, cat, etc. are stored in………..

A. /dev directory
B. /bin and /usr/bin directories
C. /tmp directory
D. /unix directory
Answer» C. /tmp directory
543.

when the kernel services an intrrupt, it blocks out low priority interrupts but………..

A. services middle priority interrupt
B. services higher priority interrupts
C. both a and b
D. none of these
Answer» C. both a and b
544.

When a process executes a system call, the execution mode of the process changes from ………..

A. kernel mode to user mode
B. user mode to kernel mode
C. user mode to operating system mode
D. none of these
Answer» C. user mode to operating system mode
545.

The shell acts as an interface between the ………..

A. user and kernel
B. user and operating system
C. kernel and operating system
D. none of these
Answer» B. user and operating system
546.

Which of the following commands is used to summarize the disk usage?

A. chkdsk
B. fdisk
C. du
D. disk
Answer» D. disk
547.

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

A. cd
B. changedir
C. chdir
D. cdir
Answer» B. changedir
548.

Services provided by kernel are………

A. controlling execution of process
B. scheduling processes
C. allocating main memory for an executing process
D. all of these
Answer» E.
549.

Which command is used to delete all files in the current directory as well as all files and sub-directories in its subdirectories?

A. rm *
B. rm -r *
C. rm all
D. rm *.*
Answer» C. rm all
550.

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. wc
C. wcount
D. countw
Answer» C. wcount