1. Core of Linux operating system is
- Kernel
- Shell
- Terminal
- Command
Answer: A
2. Which one provide command interpreter environment?
- Kernel
- Shell
- CPU
- Hardware
Answer: B
3. Which directory contains configuration files in Linux?
- /etc/
- /bin/
- /dev/
- /root/
Answer: A
4. How many times below program will print hello?
main()
{
fork();
fork();
fork();
printf(“hello”);
}
- 3
- 6
- 8
- 9
Answer: C
5. Process which terminates before the parent process exits is known as
- Orphan
- Zombie
- Child
- None of the above
Answer: B
6. What is maximum filename size in Linux in bytes?
- 32
- 64
- 128
- 255
Answer: D
7. What does fork system call return to parent process on success?
- 0
- 1
- -1
- Child process id
Answer: D
8. Which command is used to check Linux version?
- uname -a
- uname -n
- uname -s
- kernel
Answer: A
9. Which command is used to keep a process running even after logout from shell?
- nohup
- &
- bg
- cron
Answer: A
10. Command to create file in Linux is ______
- touch
- cat
- echo
- All the above
Answer: D
11. Linux operating system supports
- Multi User
- Multi Process
- Multi-Tasking
- All of the above
Answer: D
12. True statement about chown command in Linux is
- Creates a thread
- Creates a child process
- Changes the mode of operation to kernel mode
- Changes the users and/or group ownership of each given file
Answer: D
13. Context switching in Linux is
- Kernel switches from executing one process to another.
- Process switches from kernel mode to user mode.
- Process switches from user mode to kernel mode.
- None of the other option listed for this question
Answer: C
14. Linux operating system is virus free.
- true
- false
Answer: B
15. Maximum number of processes in Linux is
- 32768
- 1024
- 2048
- 16384
Answer: A
16. The Command do you use to create Linux file system is —
- fsck
- mkfs
- mount
- None of the mentioned
Ans:B
17. Core of Linux operating system is_____________ .
- Shell
- Kernel
- Terminal
- Command
Ans:B
18. Which of the following directory contains configuration files in Linux?
- /dev/
- /etc/
- /bin/
- /root/
Ans:B
19. The maximum filename size in Linux in bytes is 255.
- True
- False
Ans:A
20. Which command is used to remove files?
- rm
- dm
- erase
- delete
Ans:A
21. ____________ command is used to remove the directory.
- rdir
- rd
- rmdir
- None of the above
Ans:C
22. How many primary partitions can exist on one drive?
- 16
- 1
- 2
- 4
Ans:D
23. FSF stand for –
- Free Software File
- Free Software Foundation
- First Serve First
- None of the above
Ans:B
24. FSF stand for –
- Free Software File
- Free Software Foundation
- First Serve First
- None of the above
Ans:B
25. ___________is not a communication command.
- mesg
- grep
- write
Ans:C
26. mv command can be used for –
- Renaming a file
- Move the file to different directory.
- Both 1 and 2
- None of these
Ans:C
27. The OS which is not based on Linux is –
- BSD
- Ubuntu
- CentOs
- Redhat
Ans:A
28. ___________command is used to record session in Linux.
- session
- script
- both 1 and 2
- None of the above
Ans:C
29. mv command can be used for –
- Renaming a file
- Move the file to different directory.
- Both 1 and 2
- None of these
Ans:C
30. mv command can be used for –
- Renaming a file
- Move the file to different directory.
- Both 1 and 2
- 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 _____________
Ans 1 /root/password
33. Which is the default file system type of Linux.
- etx
- ext2
- etx3
- mimix
Ans:C
34. Hidden file can be viewed using ______.
- ls -a
- ls -l
- ls -h
- Is – k
Ans:A
35. Linux is an operating system based on UNIX and was first introduced by Linus Torvalds.
- True
- False
Ans:A
36. System structure of the Linux is
- Microsoft Windows
- UNIX
- Window Vista
- Monolithic Kernel
Ans:D
37. In Linux a user can load or upload
- I/O Modules
- I/O Devices
- Kernel Modules
- File Base I/O
Ans:c
38. Linux is an
- Closed Source
- freeware
- Open source software
- both a and b
ans:D
39. File name that handle interrupts in Linux is
- Access file
- Control file
- Interrupts file
- Proc interrupts file
Ans:D
40. In Kernel Signals are used to notify a certain
- Decisions
- Faults
- Strategies
- 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?
- uname-r
- kernel
- uname –n
- uname –s
ans:A
45. Which command is used to list all the files in your current directory(including hidden)?
- Ls –l
- Ls –t
- Ls –a
- Ls –i
Ans: C
46. Does Ubuntu need antivirus?
- Yes
- No
- Partial
- None
Ans:B
47. Linux is a ________ and ___________ OS.
- Mesg
- Grep
- Write
Ans:B
48. Linux kernel was invented by
- Linux Van Pelt
- Linux Torvalda
- Linux Pauling
- None
Ans:B
49. OS for mobile Phone and tablet is
- Windows OS
- Android OS
- iOS
- All of above
Ans:D
50. Which extension is used for standard bitmapped format for storing graphics_____.
- .bmp
- .wav
- .xls
- .jpeg
Ans:A
51. Which command is/are used to remove directory in Linux?
- Rmdir
- Rm –r
- Only B
- Both A and B
Ans:D
52. Which key combination is used to see all the hidden files in Nautilus file manager?
- Ctrl+shift+h
- Ctrl+h
- Ctrl+alt+h
- None of the above
Ans:B
53. Which of the following command is used to create file in linux?
- Touch
- Cat
- Echo
- All of the above
Ans: D
54. In linux everything stored as a
- File
- Directory
- Executables
- None of the above
Ans:A
55. In Linux which of following command do you use to know the purpose of a command?
- Which
- Whatis
- What
- purpose
Ans: B
56. What is the process id of init process?
- 2
- 6
- 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?
- Sudo service apache2 restart
- sudo /etc/init.d/apache2 restart
- Both A and B
- Only A
Ans:C
58. Which command is used to show process hierarchy in tree format?
- ps –tree
- pstree
- ps –t
- 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?
- Print effective and real UID
- Print effective and real GID
- Print effective and real UID and GID
- None of these
Ans: C
61. Which command is used to print the login shell of an user?
- Echo $SHELL
- Echo $LOGIN
- Echo $LSHELL
- None of the above
Ans:A
62. Which of the following command return the exit status of last command?
- $!
- $$
- $?
- $#
Ans: C
63. Which command is used to print the current working directory?
- Pwd
- Echo $PWD
- Both A and B
- 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?
- 32678
- 1024
- 2048
- 16384
Ans: A
66. Which of the following command keep a process running even after you logout from your shell?
- &
- Nohup
- Bg
- Hup
Ans: B
67. What is the range of nice number in linux system?
- 0 to 19
- -20 to 19
- -20 to 0
- -10 to 10
Ans:B
68. On success fork return _______ to parent process?
- 0
- 1
- Parent process id
- Child process id
Ans: D
69. which of the following command kill all the process including shell?
- Kill kill 0
- Kill -9 kill 0
- Kill –s kill 0
- Both B and C
Ans: D
70. Which of the following statement is true?
- Echo $$ return PID of login shell and echo $? Return status of last command
- Echo $$ return status of last command and echo $? Return PID of login shell
- Echo $$ and echo $? Return some integer value of no significance
- All of the statements are false
Ans:A
71. Priority of the process can be changed using which of the following command?
- Nice
- Chpriority
- Renice
- 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.
- Interruptible
- Uninterruptible
- Zombie
- Running
Ans:C
73. What is ppid(parent process id) of daemon process in Linux?
- Any arbitrary number
- 1
- Zombie
- Running
Ans:B
74. Which of the following commands are used to display last 10 line of the file?
- Tail filename
- Tail -10 filename
- Both A and B
- Only B
Ans:C
75. Which of the following file responsible for storing basic information about user like UID, GUI, login shell etc in?
- /etc/passwd
- /etc/users
- /etc/shadows
- 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?
- date;echo “hii”
- date && echo “hii”
- Both A and B
- date,echo “hii”
ans:C
78.Which of the following used to edit and execute command no. 25 in history list?
- History –e 25
- Fc 25
- 125
- None of these
Ans:B
79. Which of the following command is used unmount a filesystem?
- Demount
- Unmount
- Dmount
- Umount
Ans:D
80. Which of the following statement is true in context of “more” and “less” command in linux?
- Less command allows you to scroll both ways whereas more command allows you to scroll downward only
- Less command load file more fastly than more command
- You can use arrows key in less command while you you are not allowed to do so in more command
- All of the above is correct
Ans:D
81. Which of the following command use to list file like file1, file, file12 and file2?
- Ls –l | egrep “file[1]+2”
- Ls –l | egrep “file[1]+2*”
- Ls –l | egrep “file1*2+”
- Ls –l | egrep “file[1]*2*”
Ans:D
82. $ oneko & what is the meaing of above command?
- Run “oneko” in background
- Run “oneko” in foreground
- Stop “oneko”
- Above command is wrong
Ans: A
83. What does rwx r-x r– means in octal?
- 755
- 743
- 754
- 745
Ans: C
84. Which of the following file contain your CPU information?
- /proc/cpustats
- /proc/cpuitems
- /proc/cpuinfo
- None of these
Ans: C
85. Which of the following is not a valid login shell in linux?
- C shell
- Net shell
- Bash shell
- Z shell
Ans:B
86. Which command is used to record session in linux?
- Script
- Session
- Both A and B
- None of these
Ans:A
87. Which of the following command can be used as an alternative to echo command?
- Printr
- Printf
- None of these
Ans:A
88. Which command is used to change password of your Linux system?
- Password
- Pass
- Change –p
- Passwd
Ans:D
89. Which command is used see the list of users who are currently logged-in?
- Login
- Users
- Who
- 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?
- Last
- Lastlogin
- Lastreboot
- Lastshudown
Ans:A
92. Which of the following command is used to count number of lines in a file?
- Wc –l
- Wc –c
- Wc –w
- None of these
Ans:A
93. Which of the following statement is incorrect about /bin and /sbin directory?
- /sbin contain only binaries essential for booting, restoring, recovering, and/or repairing the system in addition to the binaries in /bin
- There is no difference between /bin and /sbin, they are just two directories
- /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.
- 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?
- Shutdown –h
- Reboot
- Init 6
- All of the above
Ans:D
95. Who founded the Linux kernel?
- Bill Gates
- Ben Thomas
- Richard Stallman
- 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?
- Save
- Sync
- Edbuff
- Flush
Ans:B
98. Which file contains the list of port numbers (and associated names) monitored by intend?
- /etc/services
- /etc/nsorder
- /etc/nsswitch.conf/
- /etc/hosts
Ans:A
99. The location of some system configuration and system administrator executable files, is:
- /home
- /proc
- /var
- /sbin
Ans:D
100. Which of the following is not a filter command?
- Sort
- Wc
- Grep
- Cat
Ans:D
2 Replies to “OPERATING SYSTEM[MCQ] (Chapter-2)”