

McqMate
These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Computer Science Engineering (CSE) .
451. |
The command that can be used to restrict incoming messages to a user is |
A. | halt |
B. | mesg |
C. | grep |
D. | sleep |
Answer» B. mesg |
452. |
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 abov |
Answer» A. used to sort a file |
453. |
Which of the following keys is used to replace a single character with new text? |
A. | s |
B. | s |
D. | c |
Answer» B. s |
454. |
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» A. can be used to look at the tail or bottom of the file |
455. |
Which command is used to change protection mode of files starting with the string emp and ending with 1,2, or 3? |
A. | can be used to look at the tail or bottom of the file |
B. | chmod u x emp[l-3] |
C. | chmod u r ??? emp |
D. | chmod 222 emp? |
Answer» B. chmod u x emp[l-3] |
456. |
Which command will be used with vi editor to append text at end of line? |
A. | is–x |
B. | is |
C. | is–1 |
D. | is–f–x |
Answer» B. is |
457. |
Which command is used to display the device name of the terminal you are using? |
A. | who |
B. | stty |
C. | tty |
D. | ls |
Answer» C. tty |
458. |
Which command allows you to view your file 24 lines at a time ? |
A. | more |
B. | cat |
C. | none of the above |
D. | pg |
Answer» A. more |
459. |
The tar command in UNIX |
A. | used to create compressed archives of directories and file |
B. | used to extract directories and files from an archives |
C. | both a and b |
D. | none of the abov |
Answer» C. both a and b |
460. |
Which of the following commands is used to rename a file? |
A. | rename |
B. | remove |
C. | mv |
D. | ren |
Answer» C. mv |
461. |
Which of the following calls never returns an error? |
A. | getpid |
B. | ioct1 |
C. | fork |
D. | open |
Answer» A. getpid |
462. |
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. | wc |
C. | wcount |
D. | count w |
Answer» B. wc |
463. |
The cc command makes a total of |
A. | 1 pass |
B. | 2 pass |
C. | 3 pass |
D. | 4 pass |
Answer» D. 4 pass |
464. |
Which command will be used with vi editor to move back to the beginning of a word |
A. | b |
B. | e |
C. | a |
D. | w |
Answer» A. b |
465. |
Mounting a file system results in the loading of |
A. | boot block |
B. | super block |
C. | i-node table |
D. | all of thes |
Answer» B. super block |
466. |
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» A. user to kernel |
467. |
Which of the following files contains information related to password aging? |
A. | hadow |
B. | profile |
C. | password |
D. | all of these |
Answer» C. password |
468. |
Which of the following are character special files? |
A. | terminal |
B. | printer |
C. | modem |
D. | tape drive |
Answer» B. printer |
469. |
To allow only one user to work with a particular file at a particular time ,one has to |
A. | semaphore |
B. | critical region |
C. | locking |
D. | dedicated mode |
Answer» C. locking |
470. |
A popular boot loader used by most Linux distributions to boot Linux is called |
A. | fifo |
B. | lilo |
C. | lifo |
D. | none |
Answer» B. lilo |
471. |
LILO can also be used to boot other operating systems as well such as …….. |
A. | ms-dos |
B. | windows 98 |
C. | windows nt |
D. | all of these |
Answer» D. all of these |
472. |
LILO can be installed to either ……..of Linux root partition. |
A. | mbr |
B. | to the boot record |
C. | both a and b |
D. | none |
Answer» C. both a and b |
473. |
What is LILO ? |
A. | list in list out |
B. | last in last out |
C. | linux loader |
D. | none |
Answer» C. linux loader |
474. |
LILO’s configuration file is |
A. | /etc/lilo.conf |
B. | lilo.config |
C. | etc/lilo.config |
D. | none |
Answer» A. /etc/lilo.conf |
475. |
Other boot loaders which can be used to load Linux exist: |
A. | grub |
B. | loadlin |
C. | both a and b |
D. | none |
Answer» C. both a and b |
476. |
The kernel itself is a program that usually lives in the root partition of the UNIX filesystem. Most Linux distributions call it and it often a symbolic link to the real kernel file which lives in “/boot”. |
A. | /vmlinuz |
B. | /kernel |
C. | /root |
D. | none |
Answer» A. /vmlinuz |
477. |
After the kernel is brought in from disk into main memory, it begins execution and one of the first things it does is ………… |
A. | initialize the system\s kernel |
B. | initialize the system’s hardware. |
C. | initialize the system\s ram |
D. | none |
Answer» B. initialize the system’s hardware. |
478. |
All those cryptic messages you see fly by when the Linux kernel first starts up are messages from the initializing and configuring your hardware. |
A. | compiled-in-ram |
B. | compiled-in-root |
C. | compiled-in kernel drivers |
D. | none |
Answer» C. compiled-in kernel drivers |
479. |
The first program the kernel attempts to execute after basic system initialization is complete is called |
A. | fork |
B. | init |
C. | kill |
D. | none |
Answer» B. init |
480. |
init’s job after basic system initialization is |
A. | is to take over the system start-up procedure |
B. | complete the system bootstrap process |
C. | both a and b |
D. | none |
Answer» C. both a and b |
481. |
The actual program which the Linux kernel executes as the init process can be specified via the command line parameter. |
A. | "kernel" |
B. | "init" |
C. | "root" |
D. | none |
Answer» B. "init" |
482. |
The system start-up scripts are executed by when the system starts up and it is these scripts which are responsible for completing the bootstrap process of the UNIX system. |
A. | init |
B. | kernel |
C. | root |
D. | none |
Answer» A. init |
483. |
Styles of system start-up scripts… |
A. | the system v style |
B. | the bsd style |
C. | both a and b |
D. | none |
Answer» C. both a and b |
484. |
All start-up scripts are typically kept in a directory named which usually lives somewhere under “/etc” |
A. | init.d |
B. | init.c |
C. | intit.e |
D. | none |
Answer» A. init.d |
485. |
Each start-up script can usually accept at least two command line arguments: |
A. | start and stop |
B. | start and pause |
C. | start and resume |
D. | none |
Answer» A. start and stop |
486. |
Steps in boot process |
A. | loading and initialzation of kernel |
B. | device detection and configuration |
C. | creation of processess and execution of system starup scripts |
D. | all of these |
Answer» D. all of these |
487. |
Hardware configuration while booting includes |
A. | check what hardware present |
B. | locate and initialize each device as specified |
C. | probe the bus for devices and ask the appropriate drivers for information |
D. | all of these |
Answer» D. all of these |
488. |
Environment variables can be accessed by |
A. | system programs |
B. | c programs |
C. | shell scripts |
D. | none of the above |
Answer» C. shell scripts |
489. |
Which of the following shell scripts looping features does not recognize the break command? |
A. | while |
B. | until |
C. | for |
D. | none of the above |
Answer» D. none of the above |
490. |
Which of the following is not a filter? |
A. | cat |
B. | wc |
C. | grep |
D. | sort |
Answer» A. cat |
491. |
Shell functions |
A. | are another name for shell procedures |
B. | execute faster than shell procedures |
C. | are executed by a new shell |
D. | are not executed by new shell |
Answer» D. are not executed by new shell |
492. |
The shell does the following in Unix |
A. | is the user interface |
B. | provides security to files |
C. | talks to the hardware |
D. | is the file manager |
Answer» A. is the user interface |
493. |
"bash" is an example of a |
A. | kernel |
B. | shell |
C. | security system |
D. | file manager |
Answer» B. shell |
494. |
Which of the following is not a component of a user account? |
A. | home directory |
B. | password |
C. | group id |
D. | kernel |
Answer» D. kernel |
495. |
The Superuser can |
A. | create accounts |
B. | delete accounts |
C. | read and write files in user accounts |
D. | all the above |
Answer» D. all the above |
496. |
Who needs to possess the superuser account? |
A. | ordinary users |
B. | system administrator |
C. | department manager |
D. | president of the company |
Answer» B. system administrator |
497. |
To use a Unix system with a GUI you need this type of window to enter Unix commands |
A. | terminal |
B. | dialog box |
C. | dos |
D. | command |
Answer» A. terminal |
498. |
Multiple Unix commands can be put into a file to form a program. This is called a |
A. | pipe |
B. | script |
C. | link |
D. | shell |
Answer» B. script |
499. |
To get to the on-line reference manual, you use this command |
A. | manual |
B. | online |
C. | man |
D. | none of the above |
Answer» C. man |
500. |
The letters "bash" stand for |
A. | born after shell |
B. | bourne again shell |
C. | berkeley admin shell |
D. | none of the above |
Answer» B. bourne again shell |
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.