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.
| 601. |
The Unix command used to find out the number of characters in a file is |
| A. | nc |
| B. | wc |
| C. | chcnt |
| D. | c |
| Answer» C. chcnt | |
| 602. |
Which of the following commands is used for an automatic remainder service? |
| A. | write |
| B. | calender |
| C. | |
| D. | mesg |
| Answer» C. mail | |
| 603. |
The cc command makes a total of |
| A. | 1 pass |
| B. | 2 pass |
| C. | 4 pass |
| D. | 5 pass |
| Answer» E. | |
| 604. |
Which of the following commands is used to count the total number of lines,words and characters contained in a file? |
| A. | count p |
| B. | wcount |
| C. | wc |
| D. | count w |
| Answer» D. count w | |
| 605. |
Which command is used to display a file contents in octal form? |
| A. | cd |
| B. | of |
| C. | od |
| D. | oct |
| Answer» D. oct | |
| 606. |
Which of the following commands is used to rename a file? |
| A. | rename |
| B. | mv |
| C. | remove |
| D. | ren |
| Answer» C. remove | |
| 607. |
Which command is used with vi editor to delete a single character? |
| A. | z |
| B. | y |
| C. | a |
| D. | x |
| Answer» E. | |
| 608. |
The tar command in UNIX |
| A. | used to create compressed archives of directories and files |
| B. | used to extract directories and files from an archives |
| C. | both a and b |
| D. | none of the above |
| Answer» D. none of the above | |
| 609. |
Which command is used to sort the lines of data in a file in reverse order |
| A. | sort |
| B. | sh |
| C. | st |
| D. | sort -r |
| Answer» E. | |
| 610. |
Which of the following changes permission to deny write permission to group and others? |
| A. | chmod go-w filex |
| B. | chmod go w filex |
| C. | chmod go=w file |
| D. | none of the above |
| Answer» B. chmod go w filex | |
| 611. |
Which command is used with vi editor to move the cursor to the left? |
| A. | i |
| B. | k |
| C. | j |
| D. | h |
| Answer» E. | |
| 612. |
Which command is used to create a directory? |
| A. | crdir |
| B. | mkdir |
| C. | md |
| D. | cr |
| Answer» C. md | |
| 613. |
Which of the following is not a communication command? |
| A. | write |
| B. | |
| C. | mesg |
| D. | grep |
| Answer» E. | |
| 614. |
Which command is used to extract specific columns from the file? |
| A. | cut |
| B. | grep |
| C. | past |
| D. | cat |
| Answer» B. grep | |
| 615. |
Which command allows you to view your file 24 lines at a time ? |
| A. | more |
| B. | cat |
| C. | pg |
| D. | none of the above |
| Answer» B. cat | |
| 616. |
Which command is used to display the device name of the terminal you are using? |
| A. | who |
| B. | ls |
| C. | tty |
| D. | stty |
| Answer» D. stty | |
| 617. |
Which command will be used with vi editor to append text at end of line? |
| A. | a |
| B. | i |
| C. | a |
| D. | l |
| Answer» B. i | |
| 618. |
Which of the following command the file names in multiple columns? |
| A. | is–x |
| B. | is |
| C. | is–1 |
| D. | is–f–x |
| Answer» C. is–1 | |
| 619. |
Which command is used to remove a file …… |
| A. | rename |
| B. | mv |
| C. | rm |
| D. | del |
| Answer» D. del | |
| 620. |
The tail command in UNIX…… |
| A. | can be used to look at the tail or bottom of the file |
| B. | can be used to display the list of last 10 files in the current directory |
| C. | can be used to display the list of last 15 in the current directory |
| D. | none of the above |
| Answer» B. can be used to display the list of last 10 files in the current directory | |
| 621. |
Which command is used to remove a directory? |
| A. | rd |
| B. | rmdir |
| C. | dldir |
| D. | rdir |
| Answer» C. dldir | |
| 622. |
The sort command in UNIX …. |
| A. | used to sort a file |
| B. | used to sort the list of files in a directory |
| C. | both a and b |
| D. | none of the above |
| Answer» B. used to sort the list of files in a directory | |
| 623. |
The command that can be used to restrict incoming messages to a user is……….. |
| A. | mesg |
| B. | halt |
| C. | grep |
| D. | sleep |
| Answer» B. halt | |
| 624. |
Which of the following file names can be found in more than one directory? |
| A. | passwd |
| B. | bin |
| C. | date |
| D. | none of the above |
| Answer» B. bin | |
| 625. |
Which of the following system calls transforms an executable binary file into a process? |
| A. | fork |
| B. | exec |
| C. | ioct1 |
| D. | longjmp |
| Answer» C. ioct1 | |
| 626. |
The child process invoke …….to execute program copy . |
| A. | fork |
| B. | execl |
| C. | wait |
| D. | printf |
| Answer» C. wait | |
| 627. |
When a process makes a system call ,its mode changes from……… |
| A. | user to kernel |
| B. | kernel to user |
| C. | restricted to unrestricted |
| D. | unrestricted to restricted |
| Answer» B. kernel to user | |
| 628. |
The new process called, child process gets a ………... return value from fork. |
| A. | -1 |
| B. | 0 |
| C. | 2 |
| D. | 1 |
| Answer» C. 2 | |
| 629. |
The read system calls return 0 when ……….. |
| A. | it reaches middle of file |
| B. | it reaches end of the file |
| C. | file is empty |
| D. | none of these |
| Answer» C. file is empty | |
| 630. |
File discriptor programs uses………………... |
| A. | to delete file |
| B. | to save file |
| C. | for subsequent references for file |
| D. | none of these |
| Answer» D. none of these | |
| 631. |
All system calls return ……..if open or create call fails |
| A. | -2 |
| B. | 0 |
| C. | 1 |
| D. | -1 |
| Answer» E. | |
| 632. |
The open and create system calls returns an integer called a ………. |
| A. | file number |
| B. | file discriptor |
| C. | file variable |
| D. | none of these |
| Answer» C. file variable | |
| 633. |
Permission mode 0666(octal) means………… |
| A. | allowing all users acess to file for writing |
| B. | allowing all users acess to file for reading |
| C. | restrict to read and write |
| D. | allowing all users access to file for reading writing |
| Answer» E. | |
| 634. |
Permission mode on newly created file will be…… |
| A. | 0666(octal) |
| B. | 0666(hexadecimal) |
| C. | 0999(octal) |
| D. | 0798(hex) |
| Answer» B. 0666(hexadecimal) | |
| 635. |
Unix system treats devices as a …….. |
| A. | hardware |
| B. | file |
| C. | byte |
| D. | none of these |
| Answer» C. byte | |
| 636. |
The Newly created files are ………….. of the file system directory structure. |
| A. | main nodes |
| B. | root nodes |
| C. | leaf nodes |
| D. | middle nodes |
| Answer» D. middle nodes | |
| 637. |
Access permission can be set to ………… |
| A. | the file owner |
| B. | a file group |
| C. | everyone else |
| D. | all of these |
| Answer» E. | |
| 638. |
what is use of ls command ? |
| A. | to list names and attribute of files |
| B. | to list size of files |
| C. | to list length of files |
| D. | none of these |
| Answer» B. to list size of files | |
| 639. |
System treats the data in a directory as a …………….. |
| A. | byte stream |
| B. | bit stream |
| C. | stream |
| D. | none of these |
| Answer» B. bit stream | |
| 640. |
System accounting program acctcom find ………. |
| A. | variable length record |
| B. | fixed length record |
| C. | no record |
| D. | none of these |
| Answer» C. no record | |
| 641. |
Text formatting program troff find …………. character at the end of each line |
| A. | newline |
| B. | slash |
| C. | dot |
| D. | none of these |
| Answer» B. slash | |
| 642. |
Full path name starts with ….. |
| A. | dot |
| B. | slash |
| C. | double slash |
| D. | non of these |
| Answer» C. double slash | |
| 643. |
Directories are ……. |
| A. | fixed files |
| B. | regular files |
| C. | variable files |
| D. | none of these |
| Answer» C. variable files | |
| 644. |
Non leaf node of the file system structure is ………….. |
| A. | leaf node of file |
| B. | directory of file |
| C. | regular file |
| D. | path name |
| Answer» C. regular file | |
| 645. |
How many system calls in system V |
| A. | 32 |
| B. | 64 |
| C. | 128 |
| D. | 16 |
| Answer» C. 128 | |
| 646. |
what is a.out ? |
| A. | system user program |
| B. | private user program |
| C. | local program |
| D. | none of these |
| Answer» C. local program | |
| 647. |
…………responsible for exchanging data between kernel and programs |
| A. | system calls |
| B. | thread |
| C. | process |
| D. | none of these |
| Answer» B. thread | |
| 648. |
Out of 64 system calls in system V how many are frequently used… |
| A. | 64 |
| B. | 32 |
| C. | 16 |
| D. | 128 |
| Answer» C. 16 | |
| 649. |
Program such as Shell and editors interact with kernel by invoking ………. |
| A. | process |
| B. | thread |
| C. | system calls |
| D. | none of these |
| Answer» D. none of these | |
| 650. |
Operating System is also called as ………. |
| A. | system kernel |
| B. | kernel |
| C. | both a and b |
| D. | none of these |
| Answer» D. none of these | |