Top 550+ Solved Operating System Architecture MCQ Questions Answer

From 436 to 450 of 627

Q. If a file with execute permissions set, but with unknown file format is executed

a. the file is passed to/bin/sh

b. the system returns an error

c. the current shell will try to execute it

d. none of the mentioned

  • c. the current shell will try to execute it

Q. Which of the following is true?

a. shell is a process and can be started by superuser only

b. shell is a built-in kernel functionality

c. shell is a wrapper for all the commands and utilities

d. none of the mentioned

  • c. shell is a wrapper for all the commands and utilities

Q. Which is true with regards to the shell prompt

a. it can be accidentally erased with backspace

b. the prompt cannot be modified

c. the prompt can be customized (modified)

d. none of the mentioned

  • c. the prompt can be customized (modified)

Q. What is a shell in UNIX?

a. a program through which users can issue commands to unix

b. a window management system

c. the login screen

d. the thing that rides on the back of a turtle in unix

  • a. a program through which users can issue commands to unix

Q. Which of the following represents an absolute path?

a. ../home/file.txt

b. bin/cat

c. cs2204/

d. /usr/bin/cat

  • d. /usr/bin/cat

Q. The user bhojas logged in and performed the following sequence of command. What will be the output of the last command? $ cd project/module1$ pwd

a. /home/bhojas/project/m odule1

b. /home/project/mod ule1

c. /usr/bhojas/project/module1

d. project/module1

  • a. /home/bhojas/project/m odule1

Q. BASH shell stands for?

a. bourne-again shell

b. basic access shell

c. basic to advanced shell

d. big & advanced shell

  • a. bourne-again shell

Q. Which of the following files will not be displayed by the command cat re* ?

a. reminder

b. receipt

c. receipt

d. recipe-cake

  • c. receipt

Q. The redirection 2> abc implies

a. write file 2 to file abc

b. write standard output to abc

c. write standard error to abc

d. none of the mentioned

  • c. write standard error to abc

Q. cmd 2>&1 > abc will

a. write file2 to file1

b. write standard output and standard error to abc

c. write standard error to abc

d. write standard output to abc & standard error to monitor

  • d. write standard output to abc & standard error to monitor

Q. cmd > abc 2>&1 will

a. write file2 to file1

b. write standard output and standard error to abc

c. write standard error to abc

d. write standard output to abc & standard error to monitor

  • b. write standard output and standard error to abc

Q. Which of these is the correct method for appending “foo” in /tmp/bar file?

a. echo foo > /tmp/bar

b. echo foo >>/tmp/bar

c. echo foo |/tmp/var

d. /tmp/bar < echo foo

  • b. echo foo >>/tmp/bar

Q. Syntax to suppress the display of command error to monitor?

a. command > &2

b. command 2> &1

c. command 2> &2

d. command 2>/dev/null

  • d. command 2>/dev/null

Q. The following commands gives the output like this #cat file1 file2#cat: file1: No such file or directory helloIf we execute the command “cat file1 file2 1>2 2>&1” the output would be

a. cat: file1: no such file or directory hello

b. no output is displayed

c. cat: 1>2: no such file or directory

d. hello

  • b. no output is displayed

Q. cat < file1 >> file2 | file3

a. file1 content will be appended to file2 and finally stored in file3

b. file1 content will be appended to file2 and file3 will be ignored

c. file2 and file3 will have same content

d. syntax error

  • d. syntax error
Subscribe Now

Get All Updates & News