Quiznetik

Operating System Architecture | Set 6

1. To invoke "bash" you type

Correct : C. bsh

2. The last character of the "bash" prompt is usually

Correct : A. $

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

Correct : C. the shell

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

Correct : C. &

5. Which of the following is not a major Unix shell?

Correct : C. bash shell

6. A personal run control file for bash is

Correct : D. .bashrc

7. The shell in the Unix system is the

Correct : D. both b and c

8. Applications of Shell programming include

Correct : C. both a and b

9. Another term for shell programs is

Correct : A. scripts

10. Shell programs are

Correct : B. interpreted

11. A shell program is a

Correct : C. text file

12. Comments in a shell program are important because

Correct : D. all of the above

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

Correct : C. all of the above

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

Correct : A. fi

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

Correct : A. if

16. A loop that continues indefinitely is called a

Correct : C. infinite loop

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

Correct : C. any combination of zero or more characters

18. A metacharacter is any character that

Correct : B. represents any string of characters that fit its definition

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

Correct : C. cut

20. Which programming language has a powerful regular expression engine?

Correct : B. perl

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

Correct : D. $

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

Correct : A. ^

23. The character separating fields is called a

Correct : B. delimiter

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

Correct : C. fields

25. A bootstrap is :

Correct : D. a small intialization program to start up the computer

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

Correct : A. booting

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

Correct : D. system software manages hardware wheras application software performs user tasks

28. BIOS stands for ……….

Correct : C. basic input output system

29. What is size of master boot record ?

Correct : B. 512 byte segment

30. What is master boot record ?

Correct : A. the master boot record is the information in the first sector of any hard disk

31. GRUB stands for ………

Correct : A. grand unified boot loader

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

Correct : A. /boot/grub/menu.lst

33. To enter command line mode from GRUB boot screen, type

Correct : B. c

34. At run level the system is complelety shut down.

Correct : D. 0

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

Correct : B. telinit

36. Runlevel System command is used for

Correct : D. all of the above

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

Correct : B. 3

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

Correct : A. runlevel

39. 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 ?

Correct : A. 5:3.once:/etc/myproces s

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

Correct : C. kern.warning/dev/ console

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

Correct : A. shutdown -k

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

Correct : A. use the useradd command with the -f switch

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

Correct : A. lilo -u

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

Correct : D. history

45. 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 ?

Correct : D. use the tar command with the -u switch

46. Perl stands for

Correct : A. practical extraction and report language

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

Correct : B. empty value

48. perl

Correct : D. can handle a variety of tasks involving large amounts of data with ease

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

Correct : B. the shebang line the perl statement

50. The print function

Correct : D. outputs a string to standard out

51. Which of the following is true of all Perl scripts ?

Correct : D. perl statements are always followed by a semicolon

52. Scalar variables

Correct : C. are the building blocks of more complicated data structure

53. Which of the following expression operators increments a varibale by one ?

Correct : B. .

54. STDIN, or standard in, is a mechanism for

Correct : B. retrieving data from the user while a script is executing

55. Perl is scripting language which is based on

Correct : A. inerpreter

56. Perl define scalar variable by

Correct : C. $

57. What is the extension of the perl file ?

Correct : B. .pl

58. which is escape character in perl ?

Correct : C. \\

59. comments are placed inside a perl program file using the character

Correct : D. #

60. An array, in perl, is an

Correct : B. ordered list of scalar data

61. The logical operator op1 && op2 means

Correct : C. performs a logical and of the two operands

62. Perl uses this <=> operator for

Correct : B. comparision

63. Which of the following statements is NOT TRUE statements ?

Correct : D. it deletes the last ending varibale character regardless of whatever it is.

64. Default file accessed through a print statement in perl is

Correct : B. stdout

65. What is python ?

Correct : A. it is object oriented programming language

66. In python, the list L contains the following elements : ['A', 1,'1','George']. Which of the following ways of slicing would assign only the first two elements to the variable X ?

Correct : C. x=[l[0:2]

67. "//" in pyhon is

Correct : A. floor division operator

68. "**" in python is an

Correct : A. exponentiation

69. In python, multi line string are given by

Correct : C. triple quotes

70. python source code file has an extension of

Correct : B. py

71. which of the following translate and execute programe statements in sequence, instead of having separate translation and execution steps ?

Correct : B. interpreter

72. Which of the following procedure a true or false result ?

Correct : D. boolean express

73. Which of the following language has an IF statement for making decision ?

Correct : D. all of these

74. Which of following language does not requires declarations ?

Correct : C. python

75. Which of the following is not a valid data type in python ?

Correct : C. double

76. How do you find out what's your shell ?

Correct : A. echo $shell

77. What is command to find out todays date ?

Correct : B. date

78. What's the command to find out users on the system ?

Correct : A. who

79. How do you find current directory you are in ?

Correct : B. pwd

80. Which variable contains current shell process id ?

Correct : C. $$

81. Which command is used to debug a shell script program ?

Correct : B. set -x

82. How do you remove a file ?

Correct : B. rm

83. How do you find your own username ?

Correct : C. whoami

84. Which of the following display content of file1 ?

Correct : A. cat file1

85. Which of the following creates a file named file1 ?

Correct : B. cat > file1

86. What are the files attributes for executing perl programs ?

Correct : B. 755

87. What is default administrator username ?

Correct : D. root

88. The name of the Unix scheduling utility is

Correct : B. cron

89. Examples of repetitive tasks performed by system administrators

Correct : D. all of the above

90. Another term for shell programs is

Correct : B. interpreted

91. The Unix slang for " #! " is

Correct : D. more than one of the above

92. Which of the following is not true of program variables

Correct : C. can hold data

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

Correct : D. none of the above

94. Shell script is preferable to other forms of programming because it

Correct : D. all of these

95. Choose the incorrect statements.

Correct : D. shell scripts are compiled

96. Files that store data in the same format as used in program are called

Correct : D. core

97. Which of the following file names can be found in more than one directoy?

Correct : D. both b and c

98. Which one of the following options is not a shell in UNIX system?

Correct : C. net shell

99. Which command is used to display the top of the file?

Correct : C. head

100. Lint should be used

Correct : A. before compilation