143
87k

620+ Operating System Architecture Solved MCQs

These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Computer Science Engineering (CSE) .

501.

To invoke "bash" you type

A. bsh
B. sh
C. bsh
D. either a or c
Answer» C. bsh
502.

The last character of the "bash" prompt is usually

A. $
B. #
C. %
D. ?
Answer» A. $
503.

The part of the Unix operating system that interacts with the hardware is called

A. gnu project
B. the kernal
C. the shell
D. linux
Answer» C. the shell
504.

To start a process in the background, enter the command with this character at the end.

A. $
B. #
C. &
D. %
Answer» C. &
505.

Which of the following is not a major Unix shell?

A. x shell
B. c shell
C. bash shell
D. korn shell
Answer» C. bash shell
506.

A personal run control file for bash is

A. .cshrc
B. profile
C. .bsh
D. .bashrc
Answer» D. .bashrc
507.

The shell in the Unix system is the

A. outer layer of a seed
B. user interface with the operating system
C. provides a prompt
D. both b and c
Answer» D. both b and c
508.

Applications of Shell programming include

A. simplifying complex jobs
B. automating repetitive tasks
C. both a and b
D. none of the above
Answer» C. both a and b
509.

Another term for shell programs is

A. scripts
B. c programs
C. compiled programs
D. shell command language
Answer» A. scripts
510.

Shell programs are

A. compiled
B. interpreted
C. command processed
D. none of the above
Answer» B. interpreted
511.

A shell program is a

A. binary file
B. system file
C. text file
D. linked file
Answer» C. text file
512.

Comments in a shell program are important because

A. keeps complex programs understandable
B. other programmers may try to read your program
C. you may revise an old program
D. all of the above
Answer» D. all of the above
513.

Flow control in a shell program allows parts of a shell program to be executed

A. repeatedly
B. conditionally
C. all of the above
D. none of the above
Answer» C. all of the above
514.

In "bash", "if" constructs are ended with

A. fi
B. endif
C. end
D. none of the above
Answer» A. fi
515.

Which of the following is not a iterative construct in "bash"?

A. if
B. for
C. until
D. while
Answer» A. if
516.

A loop that continues indefinitely is called a

A. indefinite loop
B. non-stop loop
C. infinite loop
D. none of the above
Answer» C. infinite loop
517.

The asterisk is a metacharacter which in the command "ls *.txt" means

A. any single character
B. any combination of one or more characters
C. any combination of zero or more characters
D. none of the above
Answer» C. any combination of zero or more characters
518.

A metacharacter is any character that

A. is taken literally
B. represents any string of characters that fit its definition
C. is an "asterisk" or "question mark"
D. all of the above
Answer» B. represents any string of characters that fit its definition
519.

Which of the following Unix utilities are not commonly used to process regular expressions?

A. grep
B. sed
C. cut
D. awk
Answer» C. cut
520.

Which programming language has a powerful regular expression engine?

A. c++
B. perl
C. pearl
D. c
Answer» B. perl
521.

Which meta-noncharacter is used to indicate the end of the line?

A. ^
B. ?
C. >
D. $
Answer» D. $
522.

Which meta-noncharacter is used to indicate the beginning of the line?

A. ^
B. ?
C. <
D. $
Answer» A. ^
523.

The character separating fields is called a

A. separator
B. delimiter
C. blank
D. semicolon
Answer» B. delimiter
524.

"Awk" is a program that is primarily concerned with formatting output. It is designed to work best with pieces of data called

A. records
B. characters
C. fields
D. strings
Answer» C. fields
525.

A bootstrap is :

A. the flat cable that connects the cpu to thre printer
B. the flat cable from the disk controller card to the disk driver
C. additional memory device
D. a small intialization program to start up the computer
Answer» D. a small intialization program to start up the computer
526.

Which process checks to ensure the componenets of the computer and operating system are connected properly ?

A. booting
B. processing
C. saving
D. editing
Answer» A. booting
527.

The main difference between application and system software is that ………

A. application software is composed of program instruction but system software is not
B. application software is stored in memory whereas system software is only the cap
C. system software is unnecessary wheras application software must be present on the computer
D. system software manages hardware wheras application software performs user tasks
Answer» D. system software manages hardware wheras application software performs user tasks
528.

BIOS stands for ……….

A. boss india operating system
B. basic input operating system
C. basic input output system
D. boston input output system
Answer» C. basic input output system
529.

What is size of master boot record ?

A. 256 byte segment
B. 512 byte segment
C. 1024 byte segment
D. 128 byte segment
Answer» B. 512 byte segment
530.

What is master boot record ?

A. the master boot record is the information in the first sector of any hard disk
B. the master boot record is the information in the first sector of any floopy
C. the master boot record contains information about operating system
D. all of these
Answer» A. the master boot record is the information in the first sector of any hard disk
531.

GRUB stands for ………

A. grand unified boot loader
B. greater rochester urban bounty
C. greedy reclamation of unused bandwidth
D. none of the above
Answer» A. grand unified boot loader
532.

By default, GRUB reads its default boot configuration from………

A. /boot/grub/menu.lst
B. /boot/grub/splash.x pm.gz
C. /boot
D. grub.config
Answer» A. /boot/grub/menu.lst
533.

To enter command line mode from GRUB boot screen, type             

A. d
B. c
C. find
D. boot
Answer» B. c
534.

At run level the system is complelety shut down.

A. 4
B. 3
C. 1
D. 0
Answer» D. 0
535.

Which command is used for changing init's run level once the system is up ?

A. inittab
B. telinit
C. restart
D. chkconfig
Answer» B. telinit
536.

Runlevel System command is used for

A. getting the present and previous runlevel of the system
B. setting the runlevel attribute of the system in the inittab file
C. can be used to restart or reboot the system
D. all of the above
Answer» D. all of the above
537.

Pick the run level to run Linux in Multi user mode with networking                  

A. 0
B. 3
C. 5
D. 6
Answer» B. 3
538.

What command be used to find the systems previous run level ?

A. runlevel
B. level
C. rlevel previous
D. show level previous
Answer» A. runlevel
539.

You want to have the process /etc/myprocess run when the system enters run level 3. Which of the following inittab entries would accomplish this ?

A. 5:3.once:/etc/myproces s
B. 3:4:once:/etc/mypr ocess
C. once:3:4:/etc/myp rocess
D. once:5:3:/etc/my process
Answer» A. 5:3.once:/etc/myproces s
540.

Which of the following syslog.config entries would cause kernel error message to be sent to the system console ?

A. kern warning console
B. kern.error console
C. kern.warning/dev/ console
D. kern error console
Answer» C. kern.warning/dev/ console
541.

What option can be used with shutdown command to send a warning message alerting users that the system will be shutdown ?

A. shutdown -k
B. shutdown -w
C. shutdown -a
D. shutdown -c
Answer» A. shutdown -k
542.

You want there to be 3 grace days after a password expires before an account becomes disabled. How would you do this ?

A. use the useradd command with the -f switch
B. check the delay option in user admin
C. edit the user\s user.config file
D. use the useradd command with the -d switch
Answer» A. use the useradd command with the -f switch
543.

You want to install lilo. Which of the following would you do to accomplish this ?

A. lilo -u
B. remove lilo
C. uninstall lilo
D. lilo -r
Answer» A. lilo -u
544.

You want to view a listing of previously enetered commands. What command would you use ?

A. hist
B. histfile
C. showbuff
D. history
Answer» D. history
545.

You want to add files to a previously created tar file. You want to replace existing files with newer files, how can you do this ?

A. use the append command
B. use the tar command with the - t switch
C. use the add command
D. use the tar command with the -u switch
Answer» D. use the tar command with the -u switch
546.

Perl stands for

A. practical extraction and report language
B. practical extraction and ready language
C. post expression and report language
D. none of the above
Answer» A. practical extraction and report language
547.

What is output of following perl program ? My $val='x'; print ref($val);

A. scalar
B. empty value
C. string
D. "not a reference"
Answer» B. empty value
548.

perl                              

A. is an effective multi tasking langugae that requires a great deal of development time.
B. is easy to learn and use, but awkward when dealing with compex tasks.
C. is available in all major operating system, but is quite expensive
D. can handle a variety of tasks involving large amounts of data with ease
Answer» D. can handle a variety of tasks involving large amounts of data with ease
549.

What is the first line in every perl script that contains special instructions to the operating system ?

A. the perl interpreter line
B. the shebang line the perl statement
C. the standard out line
D. the perl statement
Answer» B. the shebang line the perl statement
550.

The print function                  

A. retrives data from the user while a script is executing
B. prompts the user for specific information
C. modifies a string
D. outputs a string to standard out
Answer» D. outputs a string to standard out

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.