Explore topic-wise MCQs in Technical Programming.

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

401.

Which of the following runs the last command you entered?

A. ~!
B. !~
C. !!
D. ..
Answer» D. ..
402.

How do you direct the shell to execute a command in the background?

A. Put an & symbol at the end of the command line.
B. Key in fg followed by the command name.
C. Press Ctrl+c after you have keyed in the command.
D. Press Ctrl+d after you have keyed in the command.
Answer» B. Key in fg followed by the command name.
403.

What is the following syntax used for? command >file1 2>file2

A. Send command's standard output to file1,and its standard error to file2
B. Send command's standard error to file1, and its standard output to file2
C. Send command's standard error to file1, and its standard input to file2
D. Send command's standard input to file1,and its standard output to file2
Answer» B. Send command's standard error to file1, and its standard output to file2
404.

How would you lock the user account named csm099?

A. usermod -l csm099
B. usermod -L csm099
C. usermod --l csm099
D. usermod -lock csm099
Answer» C. usermod --l csm099
405.

How do you delete your crontab entry?

A. crontab -d
B. crontab -e
C. crontab -r
D. del -crontab
Answer» D. del -crontab
406.

You need to change some settings on your Apache server. Which is the best tool to use for logging in remotely?

A. rsh
B. ssh
C. rlogin
D. telnet
Answer» C. rlogin
407.

How would you search for the string clothes at the end of the line in a file called shopping?

A. grep 'clothes#' shopping
B. grep 'clothes!' shopping
C. grep 'clothes$' shopping
D. grep 'clothes^' shopping
Answer» D. grep 'clothes^' shopping
408.

Which file is the list of commands you recently entered stored in?

A. .bashrc_history
B. .history
C. .bash_history
D. .bash_list_history
Answer» D. .bash_list_history
409.

Command used to create an empty file.

A. mtfile
B. touch
C. intouch
D. file
Answer» C. intouch
410.

How would you sort a file called shopping on column 3?

A. sort -n 3 shopping
B. sort -k 3 shopping
C. sort -c 3 shopping
D. sort -c3 shopping
Answer» C. sort -c 3 shopping
411.

What command is used to list only the files chap0l, chap02 and chap04?

A. ls chap*
B. ls chap[124]
C. ls - x chap0[124]
D. ls chap0[124]
Answer» D. ls chap0[124]
412.

How would you avoid accidentally removing files?

A. rm -i
B. rm -chk
C. rm -a
D. rm -r
Answer» B. rm -chk
413.

Which is the commmand used to remove or delete file with out confirmation msg ?

A. rm-f
B. rm
C. del
D. remove
Answer» C. del
414.

In which directory are the crontab files for users stored on suse linux?

A. /var/spool/cron/tabs
B. /usr/lib/cron
C. /usr/bin/cron/crontabs
D. /var/spool/cron/users/tabs
Answer» B. /usr/lib/cron
415.

How would you display running httpd processes?

A. ps -C httpd
B. ps -d httpd
C. ps -r httpd
D. ps -D httpd
Answer» B. ps -d httpd
416.

What does the 2>&1 at the end of the following command mean?find / -name fred.txt > names 2>&1

A. Send standard error to a file called &1
B. Append standard error to a file called &1
C. Send standard error to the same place as standard output
D. Send the output of the find command to /dev/null
Answer» D. Send the output of the find command to /dev/null
417.

To run date first, and then ls -l, which of the following is correct?

A. date $ ls -l
B. date ; ls -l
C. date - ls -l
D. date > ls -l
Answer» C. date - ls -l
418.

What is the shortcut to the home directory?

A. shift+cd
B. cd+enter key
C. alt+ctrl+cd
D. ctrl+cd
Answer» C. alt+ctrl+cd
419.

What is the shortest command to take you to your home directory?

A. cd ~
B. cd $HOME
C. cd
D. .
Answer» D. .
420.

How would you show a list of files and directories that are inside the current directory.

A. list
B. listfiles
C. ls
D. lst
Answer» D. lst
421.

Which runlevel allows full multiuser mode but with no graphical login manager?

A. Runlevel 1
B. Runlevel 2
C. Runlevel 3
D. Runlevel 0
Answer» D. Runlevel 0
422.

Which of the following runlevels will reboot the system?

A. 0
B. 2
C. 4
D. 6
Answer» E.
423.

How do you run a job that will continue running even if you are logged out?

A. hup.out command
B. hup command
C. jobc command
D. nohup command
Answer» E.
424.

What keyboard combination can be used to exit the shell?

A. Ctrl+E
B. Ctrl+C
C. Ctrl+D
D. Ctrl+Z
Answer» D. Ctrl+Z
425.

56. What command can be used to get information about yourself?

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

Which of the following subdirectory(ies) contains the system configuration scripts.

A. /dev
B. /bin
C. /etc
D. /home
Answer» D. /home
427.

The head command writes the first ____________ lines of a file to screen by default.

A. Five
B. Twenty
C. Ten
D. Fifteen
Answer» D. Fifteen
428.

What does the permission string rwxr-xr-- correspond with in octal?

A. 742
B. 754
C. 724
D. 624
Answer» C. 724
429.

How do you display your current crontab entry?

A. crontab -display
B. crontab -d
C. list --crontab
D. crontab -l
Answer» E.
430.

........command is used to show the logger or user

A. ?
B. who
C. no of
D. ???
Answer» C. no of
431.

To display information about the processor itself - display the contents of which file?

A. /bin/cpu
B. /dev/cpuinfo
C. /etc/cpu
D. /proc/cpuinfo
Answer» E.
432.

"cat" is the command used to

A. change directory
B. move directory
C. come out of shell
D. see the contents of file
Answer» E.
433.

Your PC is unable to boot off the Linux install CD. Which utility should be used to create an installation boot floppy?

A. fdisk
B. cp
C. dd
D. tar
Answer» B. cp
434.

What is the following syntax used for command 2> /dev/null

A. Send the output of command to a file called /dev/null
B. Discard standard error entirely.
C. Append the output of command to a file called /dev/null
D. Send error messages from command to a file called /dev/null
Answer» E.
435.

Which of the following commands can be used to change the group owner of a file?

A. chown
B. chmod
C. chattr
D. attrch
Answer» C. chattr
436.

Which command is used to unmount a filesystem?

A. dmount
B. dismount
C. unmount
D. umount
Answer» E.
437.

Which of the following is the BEST way to set up SSH(Secure Shell) for communicating between System without needing passwords?

A. Use ssh-keygen for generating public-private keys.
B. Disable passwords on specific accounts that will use SSH.
C. Both A and B
D. None of the above
Answer» B. Disable passwords on specific accounts that will use SSH.
438.

... controls the way in which the computer system functionsand provides a means by which users can interact with the computer

A. The platform
B. The operating system
C. Application software
D. The motherboard
Answer» C. Application software
439.

The ....command is used to open windows based applicationdirectly from DOS prompt

A. Run
B. Start
C. Load
D. Execute
Answer» C. Load
440.

... transforms one interface into other interface

A. Program
B. Software
C. Data
D. None
Answer» C. Data
441.

... show characteristics with both hardware and software

A. Operating system
B. Software
C. Data
D. None
Answer» B. Software
442.

CHKDSK command

A. Check the disk
B. Dos command
C. Give information about disk
D. All of the above
Answer» E.
443.

To access properties of an object, the mouse technique to use is __________.

A. dragging
B. dropping
C. right-clicking
D. shift-clicking
Answer» D. shift-clicking
444.

A ....allows you to write on screen with a digital pen andconvert that writing into characters that the PC can process

A. Monitor RS
B. Tablet PC
C. Database manager
D. Media Center
Answer» C. Database manager
445.

What program runs first after computer is booted and loadingGUI?

A. Desktop Manager
B. File Manager
C. Windows Explorer
D. Authentication
Answer» E.
446.

Microsoft Windows provides a graphics application named

A. Paint
B. Adobe Photoshop
C. Jasc Paint Sho
D. None of these
Answer» B. Adobe Photoshop
447.

The My Computer windows include icons that represent the....installed on your computer

A. Disk drive
B. Memory
C. CPU
D. All of above
Answer» B. Memory
448.

ctrl, shift and alt are called __________ keys.

A. adjustment
B. function
C. modifier
D. alphanumeric
Answer» D. alphanumeric
449.

Which of the following is an essential file of a MS-DOS boot disk?

A. COMMAND.COM
B. START.COM
C. TREE.COM
D. VER.COM
Answer» B. START.COM
450.

The primary purpose of an operating system is a ...

A. To make the most efficient use of computer hardware
B. To allow people to use the computer
C. To keep system programmer employed
D. To make computer easier to use
Answer» B. To allow people to use the computer