Share this Post

1. Core of Linux operating system is

  1. Kernel
  2. Shell
  3. Terminal
  4. Command

Answer: A

2. Which one provide command interpreter environment?

  1. Kernel
  2. Shell
  3. CPU
  4. Hardware

Answer: B

3. Which directory contains configuration files in Linux?

  1. /etc/
  2. /bin/
  3. /dev/
  4. /root/

Answer: A

4. How many times below program will print hello?

main()

             {

                          fork();

                          fork();

                          fork();

                          printf(“hello”);

             }

  1. 3
  2. 6
  3. 8
  4. 9

Answer: C

5. Process which terminates before the parent process exits is known as

  1. Orphan
  2. Zombie
  3. Child
  4. None of the above

Answer: B

6. What is maximum filename size in Linux in bytes?

  1. 32
  2. 64
  3. 128
  4. 255

Answer: D

7. What does fork system call return to parent process on success?

  1. 0
  2. 1
  3. -1
  4. Child process id

Answer: D

8. Which command is used to check Linux version?

  1. uname -a
  2. uname -n
  3. uname -s
  4. kernel

Answer: A

9. Which command is used to keep a process running even after logout from shell?

  1. nohup
  2. &
  3. bg
  4. cron

Answer: A

10. Command to create file in Linux is ______

  1. touch
  2. cat
  3. echo
  4. All the above

Answer: D

11. Linux operating system supports

  1. Multi User
  2. Multi Process
  3. Multi-Tasking
  4. All of the above

Answer: D

12. True statement about chown command in Linux is

  1. Creates a thread
  2. Creates a child process
  3. Changes the mode of operation to kernel mode
  4. Changes the users and/or group ownership of each given file

Answer: D

13. Context switching in Linux is

  1. Kernel switches from executing one process to another.
  2. Process switches from kernel mode to user mode.
  3. Process switches from user mode to kernel mode.
  4. None of the other option listed for this question

Answer: C

14. Linux operating system is virus free.

  1. true
  2. false

Answer: B

15. Maximum number of processes in Linux is

  1. 32768
  2. 1024
  3. 2048
  4. 16384

Answer: A

16. The Command do you use to create Linux file system is —

  1.  fsck
  2. mkfs
  3. mount
  4. None of the mentioned

Ans:B

17. Core of Linux operating system is_____________ .

  1.  Shell
  2.  Kernel
  3.  Terminal
  4.  Command

Ans:B

18. Which of the following directory contains configuration files in Linux?

  1.  /dev/
  2.  /etc/
  3.  /bin/
  4.  /root/

Ans:B

19. The maximum filename size in Linux in bytes is 255.

  1.  True
  2.  False

Ans:A

20. Which command is used to remove files?

  1.  rm
  2.  dm
  3.  erase
  4.  delete

Ans:A

21. ____________ command is used to remove the directory.

  1.  rdir
  2.  rd
  3.  rmdir
  4.  None of the above

Ans:C

22. How many primary partitions can exist on one drive?

  1.  16
  2.  1
  3.  2
  4.  4

Ans:D

23. FSF stand for –

  1.  Free Software File
  2.  Free Software Foundation
  3.  First Serve First
  4.  None of the above

Ans:B

24. FSF stand for –

  1.  Free Software File
  2.  Free Software Foundation
  3.  First Serve First
  4.  None of the above

Ans:B

25. ___________is not a communication command.

  1.  mail
  2.  mesg
  3.  grep
  4.  write

Ans:C

26. mv command can be used for –

  1.  Renaming a file
  2.  Move the file to different directory.
  3.  Both 1 and 2
  4.  None of these

Ans:C

27. The OS which is not based on Linux is –

  1.  BSD
  2.  Ubuntu
  3.  CentOs
  4.  Redhat

Ans:A

28. ___________command is used to record session in Linux.

  1.  session
  2.  script
  3.  both 1 and 2
  4.  None of the above

Ans:C

29. mv command can be used for –

  1.  Renaming a file
  2.  Move the file to different directory.
  3.  Both 1 and 2
  4.  None of these

Ans:C

30. mv command can be used for –

  1.  Renaming a file
  2.  Move the file to different directory.
  3.  Both 1 and 2
  4.  None of these

Ans:C

31. The range of nice number in linux system is –

1)  -20 to 0

2)  -20 to 19

3) 0 to 19  

4) 10 to 10

Ans:B

32. User passwords are stored in _____________

  1.  /root/password
  2.  /etc/password
  3.  /etc/passwd
  4.  /root/passwd     

Ans 1 /root/password

33. Which is the default file system type of Linux.

  1. etx
  2. ext2
  3. etx3
  4. mimix

Ans:C

34. Hidden file can be viewed using ______.

  1. ls -a
  2.  ls -l
  3.  ls -h
  4.  Is – k

Ans:A

35. Linux is an operating system based on UNIX and was first introduced by Linus Torvalds.

  1. True
  2. False

Ans:A

36. System structure of the Linux is

  1. Microsoft Windows
  2. UNIX
  3. Window Vista
  4. Monolithic Kernel

Ans:D

37. In Linux a user can load or upload

  1. I/O Modules
  2. I/O Devices
  3. Kernel Modules
  4. File Base I/O

Ans:c

38. Linux is an

  1. Closed Source
  2. freeware
  3. Open source software
  4. both a and b

ans:D

 39. File name that handle interrupts in Linux is

  1. Access file
  2. Control file
  3. Interrupts file
  4. Proc interrupts file

Ans:D

 40. In Kernel Signals are used to notify a certain

  1. Decisions
  2. Faults
  3. Strategies
  4. Procedures

Ans:B

41. Maximum how long can a Linux filename be?

A.128 bytes                 

B.255 bytes

C.32 bytes                  

D.64 bytes

Ans:B

42. Which command(s) is/are used to get help about a command in Linux?

A).info                         

B).man

C).None of these                     

D).Both a and b

Ans:D

43. Which of the following OS is not based on Linux?

A. Ubuntu                                   B.Redhat

C. CentOs                                   D.BSD

Ans:D

44.Which command is used to get the kernel version in Linux?

  1. uname-r
  2. kernel
  3. uname –n
  4. uname –s

ans:A

45. Which command is used to list all the files in your current directory(including hidden)?

  1. Ls –l
  2. Ls –t
  3. Ls –a
  4. Ls –i

Ans: C

46. Does Ubuntu need antivirus?

  1. Yes
  2. No
  3. Partial
  4. None

Ans:B

47. Linux is a ________ and ___________ OS.

  1. Mail
  2. Mesg
  3. Grep
  4. Write

Ans:B

48. Linux kernel was invented by

  1. Linux Van Pelt
  2. Linux Torvalda
  3. Linux Pauling
  4. None

Ans:B

49. OS for mobile Phone and tablet is

  1. Windows OS
  2. Android OS
  3. iOS
  4. All of above

Ans:D

50. Which extension is used for standard bitmapped format for storing graphics_____.

  1. .bmp
  2. .wav
  3. .xls
  4. .jpeg

Ans:A

51. Which command is/are used to remove directory in Linux?

  1. Rmdir
  2. Rm –r
  3. Only B
  4. Both A and B

Ans:D

52. Which key combination is used to see all the hidden files in Nautilus file manager?

  1. Ctrl+shift+h
  2. Ctrl+h
  3. Ctrl+alt+h
  4. None of the above

Ans:B

53. Which of the following command is used to create file in linux?

  1. Touch
  2. Cat
  3. Echo
  4. All of the above

Ans: D

54. In linux everything stored as a

  1. File
  2. Directory
  3. Executables
  4. None of the above

Ans:A

55. In Linux which of following command do you use to know the purpose of a command?

  1. Which
  2. Whatis
  3. What
  4. purpose

Ans: B

56. What is the process id of init process?

  1. 2
  2. 6
  3. 4
  4. 1

Ans: D

57. Suppose I have made some changes in my Php.ini file and I want to restart my Apache server, which of following command should I use?

  1. Sudo service apache2 restart
  2. sudo /etc/init.d/apache2 restart
  3. Both A and B
  4. Only A

Ans:C

58. Which command is used to show process hierarchy in tree format?

  1. ps –tree
  2. pstree
  3. ps –t
  4. none of these

ans:B

59. Which of the following command is used to see the content of tar(backup.tar) file without extracting it?
A.tar -xvf backup.tar
B.tar -svf backup.tar
C.tar -tvf backup.tar
D.none of these

Ans:C

59. Which command is used to execute the last command you have executed?

A. !!
B. !-1

C. Both A and B
D. Only A

Ans:C

60. What is the purpose of id command?

  1. Print effective and real UID
  2. Print effective and real GID
  3. Print effective and real UID and GID
  4. None of these

Ans: C

61. Which command is used to print the login shell of an user?

  1. Echo $SHELL
  2. Echo $LOGIN
  3. Echo $LSHELL
  4. None of the above

Ans:A

62. Which of the following command return the exit status of last command?

  1. $!
  2. $$
  3. $?
  4. $#

Ans: C

63. Which command is used to print the current working directory?

  1. Pwd
  2. Echo $PWD
  3. Both A and B
  4. Only A

Ans: C

64. What is context switch?

A. Process switches from user mode to kernel mode
B. Process switches from kernel mode to user mode
C. Kernel switches from one process to another process
D. None of these

Ans:C

65. Maximum number of processes exist in linux system?

  1. 32678
  2. 1024
  3. 2048
  4. 16384

Ans: A

66. Which of the following command keep a process running even after you logout from your shell?

  1. &
  2. Nohup
  3. Bg
  4. Hup

Ans: B

67. What is the range of nice number in linux system?

  1. 0 to 19
  2. -20 to 19
  3. -20 to 0
  4. -10 to 10

Ans:B

68. On success fork return _______ to parent process?

  1. 0
  2. 1
  3. Parent process id
  4. Child process id

Ans: D

69. which of the following command kill all the process including shell?

  1. Kill kill 0
  2. Kill -9 kill 0
  3. Kill –s kill 0
  4. Both B and C

Ans: D

70. Which of the following statement is true?

  1. Echo $$ return PID of login shell and echo $? Return status of last command
  2. Echo $$ return status of last command and echo $? Return PID of login shell
  3. Echo $$ and echo $? Return some integer value of no significance
  4. All of the statements are false

Ans:A

71. Priority of the process can be changed using which of the following command?

  1. Nice
  2. Chpriority
  3. Renice
  4. Not allowed to change process priority

Ans:C

72. In ________ state of a process, the process will be terminated and the information will still be available in the process table.

  1. Interruptible
  2. Uninterruptible
  3. Zombie
  4. Running

Ans:C

73. What is ppid(parent process id) of daemon process in Linux?

  1. Any arbitrary number
  2. 1
  3. Zombie
  4. Running

Ans:B

74. Which of the following commands are used to display last 10 line of the file?

  1. Tail filename
  2. Tail -10 filename
  3. Both A and B
  4. Only B

Ans:C

75. Which of the following file responsible for storing basic information about user like UID, GUI, login shell etc in?

  1. /etc/passwd
  2. /etc/users
  3. /etc/shadows
  4. None of these

Ans:A

76. Sun jan 5 11:18:37 IST 2014

      hii

   Suppose I want to achieve above output using command, which of the following command would help me to achieve this?

  1. date;echo “hii”
  2. date && echo “hii”
  3. Both A and B
  4. date,echo “hii”

ans:C

78.Which of the following used to edit and execute command no. 25 in history list?

  1. History –e 25
  2. Fc 25
  3. 125
  4. None of these

Ans:B

79. Which of the following command is used unmount a filesystem?

  1. Demount
  2. Unmount
  3. Dmount
  4. Umount

Ans:D

80. Which of the following statement is true in context of “more” and “less” command in linux?

  1. Less command allows you to scroll both ways whereas more command allows you to scroll downward only
  2. Less command load file more fastly than more command
  3. You can use arrows key in less command while you you are not allowed to do so in more command
  4. All of the above is correct

Ans:D

81. Which of the following command use to list file like file1, file, file12 and file2?

  1. Ls –l | egrep “file[1]+2”
  2. Ls –l | egrep “file[1]+2*”
  3. Ls –l | egrep “file1*2+”
  4. Ls –l | egrep “file[1]*2*”

Ans:D

82. $ oneko & what is the meaing of above command?

  1. Run “oneko” in background
  2. Run “oneko” in foreground
  3. Stop “oneko”
  4. Above command is wrong

Ans: A

83. What does rwx r-x r– means in octal?

  1. 755
  2. 743
  3. 754
  4. 745

Ans: C

84. Which of the following file contain your CPU information?

  1. /proc/cpustats
  2. /proc/cpuitems
  3. /proc/cpuinfo
  4. None of these

Ans: C

85. Which of the following is not a valid login shell in linux?

  1. C shell
  2. Net shell
  3. Bash shell
  4. Z shell

Ans:B

86. Which command is used to record session in linux?

  1. Script
  2. Session
  3. Both A and B
  4. None of these

Ans:A

87. Which of the following command can be used as an alternative to echo command?

  1. Print
  2. Printr
  3. Printf
  4. None of these

Ans:A

88. Which command is used to change password of your Linux system?

  1. Password
  2. Pass
  3. Change –p
  4. Passwd

Ans:D

89. Which command is used see the list of users who are currently logged-in?

  1. Login
  2. Users
  3. Who
  4. Which

Ans:C

90. Which directory in linux contains all the config file of the system?

/etc

/var

/lib

/bin

Ans:A

91. Which of the following command is used to know last shutdown/reboot date and time?

  1. Last
  2. Lastlogin
  3. Lastreboot
  4. Lastshudown

Ans:A

92. Which of the following command is used to count number of lines in a file?

  1. Wc –l
  2. Wc –c
  3. Wc –w
  4. None of these

Ans:A

93. Which of the following statement is incorrect about /bin and /sbin directory?

  1. /sbin contain only binaries essential for booting, restoring, recovering, and/or repairing the system in addition to the binaries in /bin
  2. There is no difference between /bin and /sbin, they are just two directories
  3. /bin contains commands that may be used by both the system administrator and by users, but which are required when no other filesystems are mounted.
  4. Utilities used for system administrator are stored in /sbin.

Ans:B

94. Which of the following command(s) is/are used to reboot a Linux system?

  1. Shutdown –h
  2. Reboot
  3. Init 6
  4. All of the above

Ans:D

95. Who founded the Linux kernel?

  1. Bill Gates
  2. Ben Thomas
  3. Richard Stallman
  4. Linus Torvalds

Ans:D

96. Which program is used to schedule particular jobs or programs at particular times on the system?
A. Vi B. Outlook C. Scheduler D. Cron Ans:D

97. Which command can force all buffers to disk?

  1. Save
  2. Sync
  3. Edbuff
  4. Flush

Ans:B

98. Which file contains the list of port numbers (and associated names) monitored by intend?

  1. /etc/services
  2. /etc/nsorder
  3. /etc/nsswitch.conf/
  4. /etc/hosts

Ans:A

99. The location of some system configuration and system administrator executable files, is:

  1. /home
  2. /proc
  3. /var
  4. /sbin

Ans:D

100. Which of the following is not a filter command?

  1. Sort
  2. Wc
  3. Grep
  4. Cat

Ans:D


Share this Post

2 Replies to “OPERATING SYSTEM[MCQ] (Chapter-2)”

Leave a Reply

Your email address will not be published. Required fields are marked *