MCQOPTIONS
Saved Bookmarks
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.
| 651. |
The Hardware at centre of UNIX system provides…………. |
| A. | basic services |
| B. | operating system with basic services |
| C. | kernel service |
| D. | none of these |
| Answer» C. kernel service | |
| 652. |
Consider the following program main ( ) { printf ("Aayush won a football match on \n"); system ("date"); printf("In Berlin"); } if a.out is the executable code corresponding to the above source code,then the command a.out >out f |
| A. | redirects the output of date to a file out f |
| B. | displays the output of date on the screen |
| C. | prints everything on screen |
| D. | prints the two messages on the screen |
| Answer» B. displays the output of date on the screen | |
| 653. |
Writing a c program that accepts input from keyboard,rather than from a file is advantageous because |
| A. | keyboard is a file that is already open |
| B. | it can be used in a pipe,if it writes to stdout |
| C. | both a & b |
| D. | non of above |
| Answer» D. non of above | |
| 654. |
If are does not want anyone else to read or write to a file named datfile,except through a program in a file filex,then he may use |
| A. | chmod u+s filex; chmod go -rw datfile |
| B. | chmod 4711 filex; chmod go -rw datfile |
| C. | chmod 4711 datfile; chmod go - rw filex |
| D. | both a & b |
| Answer» E. | |
| 655. |
The permission bits of a filenoname,can be set to - rws - - * - - * by the command |
| A. | chmod 711 noname |
| B. | chmod go -rw noname |
| C. | chmod 2711 noname |
| D. | none of above |
| Answer» E. | |
| 656. |
The advantage of binary files over text files is that |
| A. | it is compact |
| B. | it can be accessed faster |
| C. | they are more reliable |
| D. | all of these |
| Answer» E. | |
| 657. |
/bin/passwork has the user execution permission set to 's' because |
| A. | this facility assigns to the user, permissions of the program owner temporarily |
| B. | it should allow users who don\t have write permission to /etc/passwd to write to it |
| C. | /etc/passwd is write protected |
| D. | all of these |
| Answer» E. | |
| 658. |
/dev/null |
| A. | is a file |
| B. | has write permission for all |
| C. | is the unix builtin dustbin |
| D. | all of these |
| Answer» E. | |
| 659. |
The command echo welcome >/dev/tty |
| A. | echoes welcome in all the terminals that are switched on |
| B. | echoes welcome in all the " that are logged on |
| C. | echoes welcome only in the terminal in which it is run |
| D. | both (a) and ( c) |
| Answer» E. | |
| 660. |
In a system,if 5 people are currently using the vi editor,then the number of corresponding processes will be |
| A. | 1 |
| B. | 5 |
| C. | 2 |
| Answer» C. 2 | |
| 661. |
Which of the following features of unix may be used for interprocess communication |
| A. | signals |
| B. | pipes |
| C. | semaphores |
| D. | all of these |
| Answer» E. | |
| 662. |
Why is man command used |
| A. | to shut down |
| B. | search all files |
| C. | deleting files |
| D. | getting help command on format |
| Answer» E. | |
| 663. |
Which command makes an empty directory |
| A. | mkdirectory |
| B. | makedirectory |
| C. | mkdir |
| D. | newdir |
| Answer» D. newdir | |
| 664. |
Which is the carrect command to list files & folders in unix |
| A. | list |
| B. | ls |
| C. | dir |
| D. | list files |
| Answer» C. dir | |
| 665. |
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» C. ls-b | |
| 666. |
Why is PWD used |
| A. | show current user |
| B. | show present working directory |
| C. | to display error messages |
| D. | to copy files |
| Answer» C. to display error messages | |
| 667. |
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» D. shows a calender | |
| 668. |
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» E. | |
| 669. |
root in unix system is represented by |
| A. | % |
| B. | \\ |
| C. | $ |
| D. | / |
| Answer» E. | |
| 670. |
The command used to display a specified file |
| A. | mkdir |
| B. | chmod |
| C. | cat |
| D. | compress |
| Answer» D. compress | |
| 671. |
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» E. | |
| 672. |
What command do you have to use to go to parent directory |
| A. | cd-, |
| B. | cd - |
| C. | cd/up |
| D. | cd.. |
| Answer» E. | |
| 673. |
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» B. a process is an executable file and program is a instance of the process in execution | |
| 674. |
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» D. both wrong | |
| 675. |
To the user,the unix system treats devices as if they are |
| A. | devices |
| B. | interfaces |
| C. | hardware |
| D. | files |
| Answer» E. | |
| 676. |
permission to access the file is controlled by |
| A. | n/w structure |
| B. | directory structure |
| C. | access permissions |
| D. | file structure |
| Answer» D. file structure | |
| 677. |
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» B. expects to find last character at the end of each line of text | |
| 678. |
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» B. 1 and 6 | |
| 679. |
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» C. expects to sort the records | |
| 680. |
The x in the cat x command is |
| A. | binary file |
| B. | data file |
| C. | text file |
| D. | source file |
| Answer» B. data file | |
| 681. |
directory attributes are displayed by |
| A. | ls-l-a |
| B. | ls-l-b |
| C. | ls-l-c |
| D. | ls-l-d |
| Answer» E. | |
| 682. |
       is used to stop a process |
| A. | kill |
| B. | remove |
| C. | clear |
| D. | overt |
| Answer» B. remove | |
| 683. |
       interacts with inner part of kernel |
| A. | interface |
| B. | shell |
| C. | terminal |
| D. | compiler |
| Answer» C. terminal | |
| 684. |
The root node in the file system is write as |
| A. | / |
| B. | \\ |
| C. | /.. |
| D. | ../ |
| Answer» B. \\ | |
| 685. |
       script is run for successful login |
| A. | /etc/profile |
| B. | /etc/str |
| C. | /etc/strtms |
| D. | /etc/.conf |
| Answer» B. /etc/str | |
| 686. |
The standard name for executable files produced by c compiler is |
| A. | b.out |
| B. | c.out |
| C. | a.out |
| D. | d.out |
| Answer» D. d.out | |
| 687. |
Internal or external command is checked using |
| A. | ls |
| B. | tty |
| C. | etc |
| D. | type |
| Answer» E. | |
| 688. |
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» B. systems hardware | |
| 689. |
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» E. | |
| 690. |
grep means |
| A. | global regular expression print |
| B. | global revearse expression print |
| C. | global random expression print |
| D. | global relative expression rpint |
| Answer» B. global revearse expression print | |
| 691. |
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» D. internal " "os | |
| 692. |
How many fields are there in /etc/passwd file |
| A. | 3 |
| B. | 7 |
| C. | 10 |
| D. | 8 |
| Answer» C. 10 | |
| 693. |
Command to reboot the system |
| A. | shutdown -k now |
| B. | shutdown -l now |
| C. | shutdown -r now |
| D. | shutdown -s now |
| Answer» D. shutdown -s now | |
| 694. |
NFS stands for |
| A. | normal file system |
| B. | network file system |
| C. | network format system |
| D. | normal format system |
| Answer» C. network format system | |
| 695. |
A thread is a ---- process |
| A. | light weight |
| B. | interface |
| C. | heavy weight |
| D. | inter thread |
| Answer» B. interface | |
| 696. |
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» E. | |
| 697. |
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» D. increase processor speed | |
| 698. |
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» C. suspended state | |
| 699. |
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» B. /etc/str | |
| 700. |
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» B. data | |