Top 550+ Solved Operating System Architecture MCQ Questions Answer

From 331 to 345 of 627

Q. 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

  • d. both b and c

Q. Applications of Shell programming include

a. simplifying complex jobs

b. automating repetitive tasks

c. both a and b

d. none of the above

  • c. both a and b

Q. Another term for shell programs is

a. scripts

b. c programs

c. compiled programs

d. shell command language

  • a. scripts

Q. Shell programs are

a. compiled

b. interpreted

c. command processed

d. none of the above

  • b. interpreted

Q. A shell program is a

a. binary file

b. system file

c. text file

d. linked file

  • c. text file

Q. 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

  • d. all of the above

Q. 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

  • c. all of the above

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

a. fi

b. endif

c. end

d. none of the above

  • a. fi

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

a. if

b. for

c. until

d. while

  • a. if

Q. A loop that continues indefinitely is called a

a. indefinite loop

b. non-stop loop

c. infinite loop

d. none of the above

  • c. infinite loop

Q. 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

  • c. any combination of zero or more characters

Q. 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

  • b. represents any string of characters that fit its definition
Subscribe Now

Get All Updates & News