McqMate
These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Computer Science Engineering (CSE) .
1. |
What is an internal command in Unix ? |
A. | commands that are executed directly by the kernel |
B. | commands that are executred directly by the shell |
C. | commands that are executed directly by shell and kernel |
D. | commands will have a process id running for it |
Answer» B. commands that are executred directly by the shell |
2. |
What is major device number ? |
A. | it is an index to the kernel table that contains the address of all device driver functions known to the system |
B. | it is an index to theuser process table that contains the address of all device driver functions known to the system |
C. | it is an index to the kernel table that contains the address of all files |
D. | it is an index to the kernel table that contains the address of all directories |
Answer» A. it is an index to the kernel table that contains the address of all device driver functions known to the system |
3. |
The game program,"space travel"for GECOS system was written in |
A. | basic |
B. | cobol |
C. | fortran |
D. | vb |
Answer» C. fortran |
4. |
What does OSS stand for |
A. | open system software |
B. | original source software |
C. | open source software |
D. | original system server |
Answer» C. open source software |
5. |
Which of the following is used to write disk block images from memory to disk |
A. | stty |
B. | cmd |
C. | sync |
D. | clri |
Answer» C. sync |
6. |
How many line are there are in the result of date command |
A. | three |
B. | one |
C. | two |
D. | five |
Answer» B. one |
7. |
While providing a text processing system for the patent department at bell labs,the unix system was moved to in 1971 |
A. | pdp-6 |
B. | pdp-7 |
C. | pdp-9 |
D. | pdp-11 |
Answer» D. pdp-11 |
8. |
What is minor device number |
A. | it tells the device driver function what actual physical device it is talking |
B. | it tells the device driver functionwhat actual physiacl device it is talking to and i/0 buffernig scheme to be used for reading |
C. | it tells the device driver functionwhat actual physical device it is talking to and i/0 buffernig scheme to be used for writing |
D. | it tells the device driver functionwhat actual physiacl device it is talking to and i/0 buffernig scheme to be used for data transfer |
Answer» D. it tells the device driver functionwhat actual physiacl device it is talking to and i/0 buffernig scheme to be used for data transfer |
9. |
What is directory hierarchy ? |
A. | it is an organizational structure in which directories can contain files and other sub directories |
B. | it is an organizational structure in which directories can contain only files |
C. | it is an organizational structure in which directories can contain only sub directories |
D. | it is an organizational structure in which directory contains only one level |
Answer» A. it is an organizational structure in which directories can contain files and other sub directories |
10. |
what is the relationship of a filename to its inode |
A. | one to one |
B. | one to many |
C. | many to one |
D. | many to many |
Answer» C. many to one |
11. |
Unix os was first rewritten in C in |
A. | 1971 |
B. | 1972 |
C. | 1973 |
D. | 1974 |
Answer» C. 1973 |
12. |
Among the directory entries inode and file contents which will be changed when a file is updated |
A. | only inode |
B. | only inode and file contents |
C. | only directory entry and file contents |
D. | none of the above |
Answer» B. only inode and file contents |
13. |
what is the use of exec command |
A. | command that can be used to write files in shell scripts |
B. | command that can be used to read files in shell scripts |
C. | command that can be used to open files in shell scripts |
D. | all of the above |
Answer» C. command that can be used to open files in shell scripts |
14. |
Which of the following sections of an executable binary file has all un initialized data items |
A. | bss |
B. | data |
C. | header |
D. | symbol table |
Answer» A. bss |
15. |
The previous system administartor has put useless messages at login . What file do you edit to change the system message |
A. | /etc/motd |
B. | /etc/str |
C. | /etc/strtms |
D. | /etc/.conf |
Answer» A. /etc/motd |
16. |
Suppose that a process is in BLOCKED state waiting for some i/o service. When a service is completed, it goes to the |
A. | running state |
B. | ready state |
C. | suspended state |
D. | terminated state |
Answer» B. ready state |
17. |
Buffering mechanisms regulated the data between |
A. | secondary storage device and memory |
B. | system call interface and device driver |
C. | kernel and secondary storage device |
D. | buffer cache and file system |
Answer» D. buffer cache and file system |
18. |
A thread is a ---- process |
A. | light weight |
B. | interface |
C. | heavy weight |
D. | inter thread |
Answer» A. light weight |
19. |
A RAID system is useful because -- |
A. | it increases interface performance |
B. | it increases speed of the processor |
C. | increases disk storage capacity |
D. | increase processor speed |
Answer» C. increases disk storage capacity |
20. |
NFS stands for |
A. | normal file system |
B. | network file system |
C. | network format system |
D. | normal format system |
Answer» B. network file system |
21. |
How many fields are there in /etc/passwd file |
A. | 3 |
B. | 7 |
C. | 10 |
D. | 8 |
Answer» B. 7 |
22. |
Thomson and Ritchie published a paper describing unix system in |
A. | ieee xsactions on computers |
B. | international jouranal of computer |
C. | communicatio-ns of the acm |
D. | internal " "os |
Answer» C. communicatio-ns of the acm |
23. |
Command to reboot the system |
A. | shutdown -k now |
B. | shutdown -l now |
C. | shutdown -r now |
D. | shutdown -s now |
Answer» C. shutdown -r now |
24. |
grep means |
A. | global regular expression print |
B. | global revearse expression print |
C. | global random expression print |
D. | global relative expression rpint |
Answer» A. global regular expression print |
25. |
A history file |
A. | contains list of files used during a session |
B. | contains list of directories used during a session |
C. | contains list of directories and sub directories used during a session |
D. | contains list of commands used during a session |
Answer» D. contains list of commands used during a session |
26. |
Programs like shell and editors (ed and vi) interact with the kernal by invoking |
A. | system calls |
B. | systems hardware |
C. | n/w program |
D. | interfacing hardware |
Answer» A. system calls |
27. |
Internal or external command is checked using |
A. | ls |
B. | tty |
C. | etc |
D. | type |
Answer» D. type |
28. |
The standard name for executable files produced by c compiler is |
A. | b.out |
B. | c.out |
C. | a.out |
D. | d.out |
Answer» C. a.out |
29. |
script is run for successful login |
A. | /etc/profile |
B. | /etc/str |
C. | /etc/strtms |
D. | /etc/.conf |
Answer» A. /etc/profile |
30. |
The root node in the file system is write as |
A. | / |
B. | \\ |
C. | /.. |
D. | ../ |
Answer» A. / |
31. |
interacts with inner part of kernel |
A. | interface |
B. | shell |
C. | terminal |
D. | compiler |
Answer» B. shell |
32. |
is used to stop a process |
A. | kill |
B. | remove |
C. | clear |
D. | overt |
Answer» A. kill |
33. |
directory attributes are displayed by |
A. | ls-l-a |
B. | ls-l-b |
C. | ls-l-c |
D. | ls-l-d |
Answer» D. ls-l-d |
34. |
The x in the cat x command is |
A. | binary file |
B. | data file |
C. | text file |
D. | source file |
Answer» A. binary file |
35. |
what is the run level for shut down and reboot respectively |
A. | 0 and 6 |
B. | 1 and 6 |
C. | 0 and 4 |
D. | 1 and 4 |
Answer» A. 0 and 6 |
36. |
The text formatting program traff |
A. | expects to find new line character at the end of each line of text |
B. | expects to find last character at the end of each line of text |
C. | expects to find each line of text |
D. | expects to neglect each line of text |
Answer» A. expects to find new line character at the end of each line of text |
37. |
The system acctcom accounting program |
A. | expects to find variable length records |
B. | expects to find fixed length record |
C. | expects to sort the records |
D. | expects to merge the records |
Answer» B. expects to find fixed length record |
38. |
permission to access the file is controlled by |
A. | n/w structure |
B. | directory structure |
C. | access permissions |
D. | file structure |
Answer» C. access permissions |
39. |
To the user,the unix system treats devices as if they are |
A. | devices |
B. | interfaces |
C. | hardware |
D. | files |
Answer» D. files |
40. |
Two invocations copy copy.c newcopy.c copy copy newcopy |
A. | 1st is carrect |
B. | 2nd is carrect |
C. | both carrect |
D. | both wrong |
Answer» C. both carrect |
41. |
In processing environment of unix |
A. | a program is an executable file and process is an instance of the program in execution |
B. | a process is an executable file and program is a instance of the process in execution |
C. | a process and program are both same |
D. | all above are carrect |
Answer» A. a program is an executable file and process is an instance of the program in execution |
42. |
The fork system call |
A. | creates a new program |
B. | creates a new interface |
C. | creates a new hardware |
D. | creates a new process |
Answer» D. creates a new process |
43. |
What command do you have to use to go to parent directory |
A. | cd-, |
B. | cd - |
C. | cd/up |
D. | cd.. |
Answer» D. cd.. |
44. |
The command used to display a specified file |
A. | mkdir |
B. | chmod |
C. | cat |
D. | compress |
Answer» C. cat |
45. |
root in unix system is represented by |
A. | % |
B. | \\ |
C. | $ |
D. | / |
Answer» D. / |
46. |
what does cd.. Do ? |
A. | not a valid unix command |
B. | logs out of the computer |
C. | changes the working directory to login directory |
D. | " " " " " " the parent of current working directory |
Answer» D. " " " " " " the parent of current working directory |
47. |
What does command LS do |
A. | opening a file |
B. | display contents of a file |
C. | display of file & folders, present in the folder where you are |
D. | shows a calender |
Answer» C. display of file & folders, present in the folder where you are |
48. |
Why is PWD used |
A. | show current user |
B. | show present working directory |
C. | to display error messages |
D. | to copy files |
Answer» B. show present working directory |
49. |
Which is the carrect command to list files & folders in unix |
A. | list |
B. | ls |
C. | dir |
D. | list files |
Answer» B. ls |
50. |
How can you display a list of files including hidden files |
A. | find all |
B. | ls-a |
C. | ls-b |
D. | all answers a,b,c |
Answer» B. ls-a |
Done Studing? Take A Test.
Great job completing your study session! Now it's time to put your knowledge to the test. Challenge yourself, see how much you've learned, and identify areas for improvement. Don’t worry, this is all part of the journey to mastery. Ready for the next step? Take a quiz to solidify what you've just studied.