Category Archives: Upwork Operating Systems

Upwork Operating Systems

Unix Test 2016

Published by:

1. The wc filter :

Answers:

  1. counts the number of words in a disk file or in the standard input
  2. counts the number of characters in a disk file or in the standard input
  3. counts the number of lines in a disk file or in the standard input
  4. can only be used with one file at a time

2. Which command compresses a file?

Answers:

  1. compress
  2. zip
  3. pack
  4. comp
  5. size

3. Who can change the password of a user account?

Answers:

  1. Administrator
  2. The root user
  3. All the members of the Administrator group
  4. Account owner

4. Which of the following commands can be used to view the calendar of April 2007?

Answers:

  1. $ cal april 2007
  2. $ cal april 07
  3. $ calendar 4 07
  4. $ cal 4 2007

5. The file oldies-goldies has the details of the sale of books.The records are sorted on the names of the authors and

are as follows

Alexandre Dumas

Alexandre Dumas

Alexandre Dumas

Gerald Durrell

Giovanni Guareschi

Giovanni Guareschi

James Herriot

Louisa May Alcott

Louisa May Alcott

Louisa May Alcott

Based on the above information, what will be the output of the command

uniq -u oldies-goldies ?

Answers:

  1. Gerald Durrell
  2. James Herriot
  3. Gerald Durrell James Herriot
  4. Alexandre Dumas Gerald Durrell Giovanni Guareschi James Herriot Louisa May Alcott
  5. Louisa May Alcott

6. Which keystroke combination sends or signals an interrupt request to a process ?

Answers:

  1. Ctrl+c
  2. Ctrl+d
  3. Ctrl+u
  4. Ctrl+s
  5. Ctrl+q

7. Which command will you use to count the number of words in a file?

Answers:

  1. count
  2. grep
  3. wc
  4. word count

8. The main objective of a time-sharing operating System like UNIX is to :

Answers:

  1. Minimize the net execution time.
  2. Maximize the processor utilization.
  3. Minimize the user response time.
  4. Minimize the number of instructions required for a process.
  5. Minimize the end user’s involvement required for a task.

9. Which command gives information about space being used by files and directories ?

Answers:

  1. sp
  2. mem
  3. hd
  4. du
  5. rm

10. The chmod command :

Answers:

  1. changes the current execution status from the user mode to the kernel mode.
  2. makes a file hidden so that it cannot be seen using the ls command.
  3. switches the screen from character to graphical mode.
  4. changes the access permissions of a file or directory.
  5. changes the password of a user.

11. Which of the following locations store the information about the currently installed Software on a local system?

Answers:

  1. /var/adm/sw/install
  2. /var/adm/sw/software
  3. /var/adm/sw/recent
  4. /var/adm/sw/products

12. What will be the result of command ” rm -r directory/* ”?

Answers:

  1. It will remove the directory and all the files present in that directory
  2. It will remove all the files but not the directory
  3. It will show an error message
  4. None of the above

13. What is the exit code of a successful command ?

Answers:

  1. 0
  2. 1
  3. -1
  4. 100
  5. 10

14. Which variable contains the system prompt ?

Answers:

  1. PS1
  2. PATH
  3. PROMPT
  4. HOME
  5. LOGNAME

15. The mv command :

Answers:

  1. changes the name of a file
  2. changes the name of a directory
  3. moves a file from one location to another
  4. a and b
  5. a,b and c

16. Which of the following commands can be used to change group ownership of a file/directory?

Answers:

  1. chmod
  2. chgroup
  3. chgrp
  4. grpch

17. Which option used along with find prompts the user for confirmation before any operation is performed on a file ?
Answers:

  1. -name
  2. -type
  3. -ok
  4. -exec
  5. -mtime

18. The command

rmdir c-prog

will not work if :

Answers:

  1. c-prog is not empty.
  2. c-prog is the current working directory.
  3. full pathname is specified with rmdir.
  4. a and b.
  5. a and c.

19. Which command is used by a user to define a printer for their session?

Answers:

  1. Using lpdest environmental variable
  2. Using spooler command
  3. Using lpadmin command
  4. Using printf command

20. The command

ls | more

displays a list of :

Answers:

  1. all the files in the current directory.
  2. all the files in the current directory one line at a time.
  3. all the files in the current directory one screen at a time.
  4. all the files in the current directory and then waits for the next command.
  5. all the files in all the directories.

21. Which special variable will display the exit status of the last executed command in Bourne or Korn shell?

Answers:

  1. $#
  2. $-
  3. $?
  4. $$
  5. $!

22. Which variable will display the list of the positional parameters?

Answers:

  1. $#
  2. $*
  3. $?
  4. $$
  5. $!

23. Which option of the uniq command would you use to display only those lines which have a multiple occurrence ?

Answers:

  1. -u
  2. -d
  3. -c
  4. -l
  5. -r

24. Point out the incorrect statement regarding standard input , output and error :

Answers:

  1. The terminal is the standard source for input and the standard output and standard error destination for most UNIX commands.
  2. All data sources and destinations are treated as files in UNIX.
  3. The three standard files have a file descriptor 0 – standard output file 1 – standard input file 2 – standard error file
  4. The input , output and error output can be redirected to a file other than the standard file using file descriptors and the > or < symbol.
  5. The output and error can be redirected in the append mode to add the redirected output or error to an existing file using the >> symbol.

25. Which option of the sort filter performs a numeric sort ?

Answers:

  1. -r
  2. -f
  3. -n
  4. -t
  5. -o

26. You want to read through the reference manual.What command will you use ?

Answers:

  1. assist
  2. help
  3. reference
  4. aid
  5. man

27. You want to make a new directory.What command will you use ?

Answers:

  1. md
  2. makedir
  3. mkdir
  4. dirmake
  5. newdir

28. Which UNIX command provides the type of information contained in a particular file ?

Answers:

  1. more filename
  2. type filename
  3. file filename
  4. info filename
  5. list filename

29. Which of the following statements regarding file naming is incorrect?

File names :

Answers:

  1. should not have a blank, or a tab.
  2. can contain digits, a dot, the hyphen or the underscore anywhere.
  3. can contain both upper-case and lower-case alphabets.
  4. are not case sensitive.

30. Which type of users can be associated with each file in UNIX ?

Answers:

  1. The file owner.
  2. The group owner of the file.
  3. Other users who are not part of the group.
  4. a and b.
  5. a,b and c.

31. Which of the following commands can be used to communicate directly with other users by sending messages?

Answers:

  1. $ msg
  2. $ talk
  3. $ send
  4. $ call

32. Which screen manipulation command sets the screen to reverse video?

Answers:

  1. tput cup
  2. tput smso
  3. tput rmso
  4. tput blink
  5. tput rev

33. Consider the following command cat re*

Which of the following files will not be displayed by this command ?

Answers:

  1. reminder
  2. receipt
  3. Receipt
  4. recipe-cake
  5. re.c

34. Suppose you have a file named trans and you want to display fields two to four. Which of the following commands will you use ?

Answers:

  1. cut -f4-2 trans
  2. cut -f2,3,4 trans
  3. cut -f2-4 trans
  4. a or b.
  5. b or c.

35. Which of the following files is configured for login name, login directory and login shell variables?

Answers:

  1. /etc/profile
  2. /etc/home
  3. /etc/passwd
  4. /etc/conf

36. Which option used along with the find command allows one to perform operations on the files that are located by the find command ?

Answers:

  1. -name
  2. -type
  3. -ok
  4. -exec
  5. c or d.

37. Which filter will you use to translate a set of charaters to another ?

Answers:

  1. grep
  2. cut
  3. tr
  4. wc
  5. tee

38. Which command will symbolically link two files in a directory?

Answers:

  1. link f1 f2
  2. link -s f1 f2
  3. ln f1 f2
  4. ln -s f1 f2
  5. ln -l f1 f2

39. What is the default standard error file ?

Answers:

  1. err
  2. error
  3. stderr
  4. errfile
  5. errdev

40. Which of the following commands can be used to add the read and write permissions to the user and group classes of a file named abc?
Answers:

  1. chmod ugo +rw abc
  2. chomd abc ug -rw
  3. chmod ug -rw abc
  4. chmod ug+rw abc

41. Which command identifies the current working directory ?

Answers:

  1. pwd
  2. cd
  3. dir
  4. ls
  5. cur

42. Mounting a file system means :

Answers:

  1. Preparing it for backup.
  2. Copying all the files from one filesystem to another.
  3. Moving all the files from one filesystem to another.
  4. Loading a filesystem from backup medium like tape.
  5. Providing a link to the filesystem to be mounted so that it appears as a local subdirectory.

43. What is the file descriptor for the standard error file ?

Answers:

  1. 0
  2. 1
  3. 2
  4. 3
  5. 4

44. With regard to UNIX, a process is :

Answers:

  1. the name of a command.
  2. the name of the administrator.
  3. the name of the UNIX server.
  4. a program in a state of execution.
  5. another name for a file.

45. Which of the following is incorrect about the restrictions imposed by the restricted shell ?

Answers:

  1. The user cannot move out of the current working directory.
  2. The user cannot change the path; execution of programs in directories other than those authorised by the system is prevented.
  3. The user cannot specify absolute path-names beginning at the root.
  4. The user cannot redirect input or output.
  5. The user is not allowed to see the listing of files in his working directory.

46. Which of the following characters can be used to run multiple commands on a single line?

Answers:

  1. /
  2. :
  3. ,
  4. ;

47. Which command will you use to see your current group?

Answers:

  1. who am i
  2. show group
  3. group
  4. id

48. Which command will delete a directory only if it is empty ?

Answers:

  1. rmdir
  2. rmdir -r
  3. rmdir -e
  4. rmdir -t
  5. rmdir -u

49. Using which command can you move to a different directory?

Answers:

  1. pwd
  2. cd
  3. ls
  4. mv
  5. rm

50. Pipes is/are :

Answers:

  1. special programs that prevent the system from crashing.
  2. disk management utilities.
  3. memory management utilities.
  4. a special feature by which the standard output of a command or user program can be sent as the standard input to another command or user program
  5. special channels for high speed data transfer.

51. Which command would make the scope of a shell variable global to the subshells ?

Answers:

  1. global
  2. export
  3. scope
  4. grant
  5. extend

52. Which of the following statements is incorrect ?

Answers:

  1. UNIX operating system is available on machines with a wide range of computing power, from microcomputers to mainframes.
  2. UNIX is a multi-user system designed to support a group of users simultaneously.
  3. UNIX uses a hierarchical file structure to store information.
  4. At the core of UNIX is the shell, a program controlling the computer’s resources.
  5. UNIX has facilities called pipes and filters which permit the user to create complex programs from simpler programs.

53. What is the correct command to delete all files with two character file-names from the directory /user/group2 ?

Answers:

  1. rm /user/group2/..
  2. rm /user/group2/??
  3. rm /user/group2/**
  4. rm /user/group2/–
  5. rm /user/group2/;;

54. Study the following statements and select the incorrect one :

Answers:

  1. UNIX files assume all data to be consisting of streams of bytes.
  2. UNIX commands use the system calls for their operations.
  3. UNIX adopts a priority based scheduling strategy.
  4. UNIX process priorities cannot be changed by the user.
  5. The UNIX system call signal is used to handle interrupts.

55. UNIX offers the following benefits :

Answers:

  1. Time-sharing
  2. Multi-tasking
  3. Multi-programming
  4. a and b.
  5. a,b and c.

56. In UNIX , shell is a program which :

Answers:

  1. reads a command line from the standard input and interprets it according to a fixed set of rules.
    is a framework into which functions or utilities can be added when required.
  2. is the interface between the user and the kernel.
  3. a and b.
  4. a and c.

57. You want to search for the pattern “Newa” or “Newb” or “Newc”. Which regular expression will you use with the grep command ?

Answers:

  1. “New[abc]”
  2. “New[a-c]”
  3. “New[^abc]”
  4. a or b.
  5. b or c.

58. Which of the following statements is incorrect regarding variables?

Answers:

  1. Variables have no data type.
  2. Variables can be local or global.
  3. Variables can be created at the $ prompt or within a shell script.
  4. Global variables are created by the global command.
  5. Environment variables are created by the shell.

59. What is the file descriptor for the standard output file ?

Answers:

  1. 0
  2. 1
  3. 2
  4. 3
  5. 4

60. Which command invokes a text editor ?

Answers:

  1. write
  2. edit
  3. editor
  4. pad
  5. vi

61. Which option of the uniq command would you use to display lines with only one occurence?

Answers:

  1. -u
  2. -d
  3. -c
  4. -l
  5. -r

62. What is the default UNIX prompt?

Answers:

  1. !
  2. #
  3. @
  4. $

63. What is the number of standard file pointers in UNIX?

Answers:

  1. 3
  2. 4
  3. 5
  4. 6
  5. 7

64. In which of the following high level languages most of the UNIX is written?

Answers:

  1. C++
  2. JAVA
  3. PASCAL
  4. FORTRAN
  5. C

65. Which command is used to run a command at a specified time ?

Answers:

  1. timer
  2. at
  3. time
  4. atq
  5. dd

66. You have two variables, v1 and v2. You want to assign the value of v2 to v1.Which of the following declarations is correct ?

Answers:

  1. v1=v2
  2. v1=$v2
  3. v1=${v2}
  4. a or b.
  5. b or c.

67. What communication command allows a user to communicate with another user logged on by splitting the screen and providing two way communication ?

Answers:

  1. talk
  2. write
  3. chat
  4. talkto
  5. transmit

68. The number of arguments can be known by which variable ?

Answers:

  1. $-
  2. $?
  3. $!
  4. $#
  5. $$

69. UNIX is an example of :

Answers:

  1. Batch processing operating system.
  2. Time sharing operating system.
  3. Real time sharing system.
  4. Single user operating system.
  5. Assembly language.

70. What information does the who am i command display?

Answers:

  1. The user’s name.
  2. The user’s terminal file name.
  3. The day the user logged in.
  4. The time the user logged in.
  5. The day the user logged in the last time.

71. You want to declare a variable vs with the value hello. Which of the following declarations is correct ?

Answers:

  1. vs = ‘hello’
  2. vs=’hello’
  3. vs=hello
  4. a or b
  5. b or c

72. Which of the following is not a filter ?

Answers:

  1. sort
  2. grep
  3. uniq
  4. pg
  5. echo

73. What is the command that can print lines of 1st file matching with 2nd file ?

Answers:

  1. printline
  2. cmp
  3. com
  4. comm
  5. prncomm

74. Which file contains the commands run by all users at login?

Answers:

  1. /usr/init
  2. /usr/profile
  3. /usr/startup
  4. /etc/startup
  5. /etc/profile

75. Which command would you use if you want to display selective fields from a file ?

Answers:

  1. pg
  2. wc
  3. tr
  4. cut
  5. tee

76. Which filter is used to copy the standard input to the standard output and also to a disk file ?

Answers:

  1. grep
  2. cut
  3. tr
  4. wc
  5. tee

77. You are writing a shell script.For a given condition, you want to terminate a loop. Which command will you use ?

Answers:

  1. terminate
  2. end
  3. break
  4. stop
  5. exit

78. The find command :

Answers:

  1. searches for specific patterns of characters in file.
  2. is used for locating words in a file.
  3. Is used to locate files in a directory and in all subdirectories of that directory.
  4. can only be used by the administrator.
  5. is used for locating users in a network.

79. By which screen manipulation command can you specify the coordinates for the cursor position ?

Answers:

  1. tput cup
  2. tput smso
  3. tput rmso
  4. tput blink
  5. tput reverse

80. Highlight the incorrect statement regarding the uniq command :

Answers:

  1. uniq is a filter.
  2. It compares adjacent lines in a sorted file.
  3. It can display lines that are unique.
  4. It can display lines that are repeated.
  5. It automatically sorts the file that is specified.

81. The command

rm -r project

Answers:

  1. deletes the file project from the current directory.
  2. deletes all the files from the directory project.
  3. recursively deletes the directory project and all its subdirectories.
  4. deletes the file project found in all directories.
  5. is invalid.

82. You want to specifically search for the character [ . What character(s) would you use in the expression to achieve this ?

Answers:

  1. []
  2. ^
  3. .
  4. $

83. Which screen manipulation command sets the screen back to normal?

Answers:

  1. tput cup
  2. tput smso
  3. tput rmso
  4. tput blink
  5. tput reverse

84. Which character of the grep filter specifies that the pattern preceding it must occur at the end of each line ?

Answers:

  1. []
  2. ^
  3. $
  4. .

85. Which option of the grep filter prints out all those lines that do not match the pattern specified by the regular expression ?

Answers:

  1. -n
  2. -c
  3. -d
  4. -l
  5. -v

86. Which character would be used in the grep filter to specify a pattern which consists of any one of a set of characters?

Answers:

  1. []
  2. ^
  3. $
  4. .

87. The user passwords are kept in which file on most Unix systems?

Answers:

  1. /etc/passwd
  2. /etc/password
  3. /usr/password
  4. /bin/passwd
  5. /system/password

88. Which option of the sort filter folds lower case characters to upper case ?

Answers:

  1. -r
  2. -f
  3. -n
  4. -t
  5. -o

89. Which file contains the commands that the system executes when a user logs in?

Answers:

  1. $HOME/startup
  2. user/init
  3. $HOME/.profile
  4. etc/startup

90. The executable file name for the Bourne shell is :

Answers:

  1. bsh
  2. sh
  3. csh
  4. ksh
  5. lsh

91. By which command a user can add a password for his login name?

Answers:

  1. passwd
  2. pass
  3. chpass
  4. password
  5. setpass

92. Which of the following is the only filter?

Answers:

  1. echo
  2. wc
  3. mv
  4. rm

93. Consider the following file listing of file abc1 for a user abc

-rw——- 1 abc student 10 jan 10:39 abc1

What inference would you make regarding the file access permissions ?

Answers:

  1. The group have full permissions.
  2. Only the owner has full permissions.
  3. Only the owner has read and write but no execute permissions.
  4. The group has read and write permissions.
  5. Others have read and write permissions.

94. Which command gives all differences between two files ?

Answers:

  1. filecmp
  2. filecompare
  3. filediff
  4. diff

95. Which of the following shells is typically used for guest logins and in secure systems ?

Answers:

  1. sh
  2. csh
  3. ksh
  4. rsh
  5. lsh

96. Which option of the sort filter changes the output to reverse order ?

Answers:

  1. -r
  2. -f
  3. -n
  4. -t
  5. -o

97. Which of the following is not a valid file command ?

Answers:

  1. ls
  2. cat
  3. mv
  4. cp
  5. break

98. Which wild-card matches one character ?

Answers:

  1. *
  2. #
  3. ?
  4. @

99. A single command which lists all files in a directory, distinguishing between a directory, executable and symbolic link files is:

Answers:

  1. ls -l
  2. ls -F
  3. ls -o
  4. ls -r
  5. ls -h

100. What would be displayed on the screen if the pwd command is entered when the user is in /usr directory?

Answers:

  1. /
  2. home
  3. /home/username
  4. usr/
  5. usr>
  6. usr/username

101. Which of the following statements is incorrect regarding positional parameters ?

Answers:

  1. They are used to create generalised scripts.
  2. There can be a maximum number of 9 variables.
  3. The shift command is used when the number of parameters exceeds 9 to shift the values of variables.
  4. Depending upon the number of arguments specified in the command line, the shell will assign values to some or all of the positional parameters.
  5. The command name is put into the variable $1.

102. How can a root user find the password of a user who has forgotten his password?

Answers:

  1. By looking in the etc/passwd
  2. By using passwd command
  3. It is not possible
  4. None of the above

103. Which of the following statements is incorrect regarding the UNIX environment?

Answers:

  1. It has the provision of security through the login and passwd programs.
  2. In it the file names are not case insensitive.
  3. It has the provision of various commands and utilities for file and directory manipulation.
  4. It does not allow relative path names.
  5. It allows the use of wild-card characters for file-name expansion.

104. Which command is used for splitting a file horizontally?

Answers:

  1. cut
  2. head
  3. tail
  4. b and c
  5. a, b and c

105. Which of the following is a responsibility of the system administrator?

Answers:

  1. Setting permissions for files and directories
  2. Creation of users and group-ids
  3. Providing security through the use of passwords
  4. a and c
  5. a,b and c

106. The shell variable that defines internal field separator is.

Answers:

  1. PS1
  2. PATH
  3. HOME
  4. LOGNAME
  5. IFS

107. Which of the following statements is not true regarding the grep filter?

Answers:

  1. It is used to seach a file for a particular pattern of characters and displays all lines that contain that pattern.
  2. The pattern that is searched for in the file is referred to as the regular expression.
  3. grep can be used without specifying a regular expression.
  4. The filenames are optional.In this case grep expects standard input.
  5. The -c option prints only a count of the lines that match the pattern.

108. What control character signals the end of the file ?

Answers:

  1. Ctrl+a
  2. Ctrl+b
  3. Ctrl+c
  4. Ctrl+d
  5. Ctrl+e

109. Which command will you use to see the available routes and their status?

Answers:

  1. show route
  2. route status
  3. netstat -rn
  4. None of the above

110. Which error will you see when an NFS client can no longer access mounted file system?

Answers:

  1. File Not Found
  2. Stale File Handle
  3. Invalid Command
  4. File Inaccessible

111. What is the user id of a root user?

Answers:

  1. 0
  2. 1
  3. 2
  4. 3

1,193 total views, 4 views today

Upwork Operating Systems

Unix Shell Script Test 2016

Published by:

1. Which of the following is/are allowed in an arithmetic statement involving expr command?

Answers:

  1. <>
  2. {}
  3. ( )
  4. &&
  5. %

2. A shell variable cannot start with:

Answers:

  1. An alphabet
  2. An underscore
  3. A number and an underscore
  4. An alphabet and an underscore
  5. A number and a special symbol other than the underscore

3. What is the error in the following shell script code?

1. until=1
2. while [ $until -eq 5 ]
3. do
4. echo until cannot be used as a variable name
5. until=`expr $until + 1`
6. done

Answers:

  1. Line 1 should be until=$1
  2. Until cannot be used as a variable name
  3. There is no error
  4. Line 4 should be echo “until cannot be used as a variable name”
  5. Line 4 should be enclosed within { }

4. What is the output of the following program?

b=
[ -n $b ]
echo $?
[ -z $b ]
echo $?

Answers:

  1. 1 1
  2. 2 2
  3. 0 0
  4. 0 1
  5. An error will occur

5. What is the output of the following program?

a=300
[ -n $a ]
echo $?
[ -z $a ]
echo $?

Answers:

  1. 1 2
  2. 0 2
  3. 2 3
  4. 0 0
  5. 0 1

6. What is the error in the following program?

1. x=10
2. if [ x -ge 2 ]
3. then
4. echo $x
5. fi

Answers:

  1. There is no error
  2. Line 4 should be echo x
  3. Test should be used on line 2 instead of []
  4. Line 1 should be x={10}
  5. Line 2 should be if [ $x -ge 2 ]

7. Which of the following is true about “until” loop?

Answers:

  1. The condition is tested at the end.
  2. It is executed as long as the given condition or list of items evaluate to true.
  3. It cannot test for conditions.
  4. We cannot use exit statement under until loop.

8. If x=11 and y=6, then what is the exit status of the following expression?

[ ! $x -gt 9 -a ! $y -ne 23 ]

Answers:

  1. 0
  2. 1
  3. 2
  4. 3
  5. 4

9. What is the output of the following program?

x=3
y='[$x -eq 10 ]’
z='[$x -lt 10 ]’
echo x=$x y=$y z=$z

Answers:

  1. x=3 y=1 z=1
  2. x=3 y=0 z=0
  3. x=3 y=3 z=5
  4. x=3 y=2 z=1
  5. None of the above

10. Which of the following statements is false?

Answers:

  1. Output of echo statement can be redirected to a file.
  2. Shell variables are case sensitive.
  3. Programs written for Bourne shell are compatible with Korn shell.
  4. expr can handle only integers.
  5. Comments can be split over multiple lines if each line is preceded by #.

11. What is the output of the following shell script code?

suite=3
case $suite in
1) echo Diamond ;;
2) echo Spade ;;
3) echo Heart ;;
4) echo Club ;;
esac

Answers:

  1. Diamond
  2. Spade
  3. Heart
  4. Club
  5. An error will occur

12. What would be the condition to check whether file with name “xyz” is a regular file?

Answers:

  1. if [ -f xyz ]
  2. if [ -d xyz ]
  3. if [ -v xyz ]
  4. if [ -r xyz ]
  5. if [ -e xyz ]

13. Which of the following statements is incorrect regarding if-then-fi?

Answers:

  1. It is a decision making construct.
  2. The group of commands between the then and else forms the if block.
  3. The else block is optional.
  4. The indentation is done in the if-then-fi to improve readability.
  5. The indentation is mandatory otherwise an error will occur on execution.

14. If x=11 and y=6, then what is the exit status of the following expression?

[ $x -eq 11 -a $y -ne 89 ]

Answers:

  1. 0
  2. 1
  3. 2
  4. 3
  5. 4

15. Which of the following expressions is correct?

Answers:

  1. a=expr $b + $c
  2. a=`expr $b * $c`
  3. a=`expr $b * ( $c + $d )`
  4. a=expr $c * $d
  5. a=`expr $b * ( $c + $d )`

16. What will be the output of the following program assuming that the command line arguments are dog parrot cuckoo?

for argument in “$*”
do
echo $argument
done

Answers:

  1. An error will occur
  2. No output will be displayed
  3. dog
  4. dog parrot cuckoo
  5. dog parrot cuckoo

17. Which of the following is true about the “continue” statement?

Answers:

  1. It cannot be used inside a loop.
  2. It continues the control to the beginning of the loop, bypassing the statements below it, inside the loop.
  3. It can only be used in a while loop.
  4. It has to be associated with an if statement.
  5. It is used with the case construct.

18. Which of the following lines have an error?

1. echo enter your name
2. read filename
3. read name < $filename
4. echo $name

Answers:

  1. 1
  2. 2
  3. 3
  4. 4
  5. There is no error.

19. What is the error in the following program?

1. while who | grep aa12 | wc -l
2. do
3. echo false
4. done

Answers:

  1. There is no error
  2. Condition on line 1 is invalid
  3. Line 3 should be echo “false”
  4. Line 3 should be enclosed with {}
  5. Line 3 should be echo {false}

20. Which of the following assignments is illegal?

Answers:

  1. a=’cat file’
  2. b=100
  3. c=50
  4. d = 25
  5. e=’ls’

21. What is the output of the following program?

i=1
for [ i -le 10 ]
do
echo $i
i=’expr $i + 1′
done

Answers:

  1. An error will occur
  2. 1
  3. 2
  4. 5
  5. 10

22. The break statement is used to exit from:

Answers:

  1. the script.
  2. a “for” loop.
  3. an “if” statement.
  4. the shell.
  5. the “case” construct.

23. What is the error in the following program?

1. j=10 k=12
2. if [ $k>=$j ]
3. then
4. k=$j
5. j=$k
6. fi
7. echo $j $k

Answers:

  1. One cannot declare two variables on line 1
  2. Statements on lines 4 and 5 must appear with curly braces {}
  3. On line 2, test should be used instead of []
  4. There is no error
  5. On line 2 -ge should be used instead of >=

24. Precedence hierarchy decides which operator:

Answers:

  1. is used last.
  2. is used first.
  3. is unary type i.e. the operators that operate on single operand.
  4. is binary type i.e. the operators that operate on two operands.

25. What is the output of the following program?

i=1 j=1 k=1
while [ $i -lt 10 ]
do
while [ $j -lt 10 ]
do
while [ $k -lt 10 ]
do
echo $i $j $k
k=’expr $k + 1′
break 3
done
j=’expr $j + 1′
done
i=’expr $i + 1′
done

Answers:

  1. An error will occur
  2. 3 4 5
  3. 2 2 2
  4. 2 3 4
  5. 1 1 1

26. The exit statement is used in a loop to:

Answers:

  1. exit from the “for” or “while” loop.
  2. exit from the “case” construct.
  3. terminate the execution of a script.
  4. exit from an “if” statement.

27. The expression expr -7 % 2 evaluates to:

Answers:

  1. 0
  2. 1
  3. -1
  4. 2
  5. -2

28. What is the error in the following shell script code?

#!/bin/sh
1. a=12.25 b=12.52
2. if [a=b]
3. then
4. echo “na and b are equal”
5. fi

Answers:

  1. There is no error
  2. Variable declaration on line 1 is incorrect
  3. The statement to be printed with echo on line 4 should be within curly brackets
  4. fi should be replaced by endif on line 5
  5. On line 2, [a=b] should be replaced with [ $a -eq $b ]

29. What is the output of the following program?

for i in ‘a b c d e’
do
echo $i
done

Answers:

  1. An error will occur
  2. 5
  3. e d c b a
  4. a b c d e
  5. a b c d e

30. What is the output of the following program?

i=4 z=12
[ $i = 5 -a $z -gt 5 ]
echo $?

Answers:

  1. 0
  2. 1
  3. 2
  4. 3
  5. 4

31. What is the output of the following program?

terminal=vt100
case $terminal in
vt100) echo Dec terminal;;
vt200) echo Old terminal;;
ansi) echo Commonly used terminal;;
v*) echo vt series terminal;;
*) echo Any terminal;;
esac

Answers:

  1. Dec terminal
  2. Old terminal
  3. commonly used terminal
  4. vt series terminal
  5. Any terminal

32. Which of the following is not a shell keyword?

Answers:

  1. shift
  2. readonly
  3. ls
  4. unset
  5. echo

33. What is the error in the following loop statement?

while [ $1 -gt 10 -a ($2 -o -w $3 ) ]

Answers:

  1. There is no error
  2. ( ) brackets are to be used instead of []
  3. {} brackets are to be used instead of []
  4. One cannot use -gt and -o in the same expression
  5. One cannot use -o and -w in the same expression

34. The statement z=`expr 5 / 2` would store which of the following values in z?

Answers:

  1. 0
  2. 1
  3. 2
  4. 2.5
  5. 3

35. The expression expr -2 % 7 evaluates to:

Answers:

  1. 1
  2. 2
  3. -2
  4. 0
  5. 0.285

36. Which of the following variable names is invalid?

Answers:

  1. _newvar
  2. variable
  3. #regpay
  4. expr

37. Which of the following assignments is illegal?

Answers:

  1. a=`ls`
  2. b=`ls -l`
  3. c=`1972`
  4. d=`who`
  5. e=`who | grep aa1`

38. On executing the statement:

set -3 + 1

Answers:

  1. $1 would be -3
  2. $1 would be 1
  3. $1 would be –
  4. $1 would be set
  5. An error would occur

39. Which of the following statements is true?

Answers:

  1. While executing a shell script, the shell acts as a compiler.
  2. Variables declared in a shell script can be displayed at the dollar prompt using the set command.
  3. There is no restriction on the length of a shell variable name.
  4. Any shell script by default gets executed in the current shell.
  5. A shell variable cannot hold negative values.

40. A shell script is executed by:

Answers:

  1. a code generator.
  2. an assembler.
  3. an interpreter./li>
  4. a compiler.

41. Which of the following is/are correct declaration(s) of a null variable “a” in shell script?

Answers:

  1. a=
  2. a= ”
  3. a= “”
  4. All of the above.

42. What is the error in the following program?

1. j=1
2. while [ $j -le 10 ]
3. do
4. echo $j
5. j = j + 1
6. done

Answers:

  1. There is no error
  2. Line 1 should be j=$1
  3. Statements on lines 3 and 4 should be between curly brackets
  4. Line 4 should be echo {$j}
  5. Line 5 should be j=`expr $j + 1`

43. What will be the output of the following program assuming that the command line arguments are dog parrot cuckoo?

for argument in $*
do
echo $argument
done

Answers:

  1. An error will occur
  2. dog
  3. cuckoo
  4. cuckoo parrot dog
  5. dog parrot cuckoo

44. What is the output of the following program?

for i in a b c d e
do
echo $i
done

Answers:

  1. 5
  2. 1 2 3 4 5
  3. a b c d e
  4. e d c b a
  5. An error will occur
  6. a b c d e

45. What will be the output of the following program assuming that the command line arguments are Unix shell scripting?

for argument in *
do
echo $argument
done

Answers:

  1. An error will occur
  2. Unix shell scripting
  3. Unix shell scripting
  4. shell
  5. The names of all files in the current directory would be displayed

46. What is the error in the following program?

1. j=10 k=12
2. if test [ $k -ge $j ]
3. then
4. k=$j
5. j=$k
6. fi
7. echo $j $k

Answers:

  1. There is no error.
  2. Variable declaration on line 1 is incorrect.
  3. The variables to be outputted on line 7 should be enclosed within quotes.
  4. Output will be 10 12 with a warning message in line 2
  5. fi should be replaced by endif on line 6

47. Which of the following loops is invalid?

Answers:

  1. while [ $? -eq 0 ]
  2. while [ $count -le 0.1]
  3. while [ $1 -gt 10]
  4. while [ 0 ]
  5. while $

48. Suppose you are writing a shell script that accepts five positional parameters from the terminal. What will be the effect of using statement “shift 1” in your shell script and then executing the shell script?

Answers:

  1. The positional parameters would be shifted by one position towards left i.e. parameter 1 will have value of parameter 2, parameter 2 will have value of parameter 3 and so on.
  2. Only the first positional parameter would be shifted to left position.
  3. All of the positional parameters would be shifted by one position towards right i.e. parameter 2 will have value of parameter 3, parameter 3 will have value of parameter 4 and so on.
  4. It would result in an error.

49. What is the output of the following program?

1. x=3 y=5 z=10
2. if [ ($x -eq 3) -a ( $y -eq 5 -o $z -eq 10 ) ]
3. then
4. echo $x
5. else
6. echo $y
7. fi

Answers:

  1. 1 and a warning about line 2 will occur
  2. 3 and a warning about line 2 will occur
  3. 5 and a warning about line 2 will occur
  4. 10 and a warning about line 2 will occur
  5. An error will occur

50. What is the output of the following program when directory name “home” is given as input?

echo Enter a directory Name
read dirname
case $dirname in
*) echo any directory name ;;
c*) echo cobol directory name ;;
f*) echo fortran directory name ;;
p*) echo pascal directory name ;;
esac

Answers:

  1. any directory name
  2. cobol directory name
  3. fortran directory name
  4. pascal directory name
  5. An error will occur

51. What is the output of the following program?

k=35
echo `[ $k -eq 35 ]“[ $k -eq 50 ]`

Answers:

  1. 1 1
  2. 0 0
  3. 0 1
  4. An error will occur
  5. A blank line will result

52. Which of the following expressions is valid?

Answers:

  1. t = 256 (space on both sides of ‘=’ operator)
  2. 3.14 * $r * $r = area
  3. k=`expr a*b`
  4. tput cup $row $col

53. Suppose there are three files test0.sh, test1.sh, and test2.sh in your current directory. Which of the following options would occur during the execution of read statement?

exec < test0.sh
exec < test2.sh
exec < test3.sh
read line
echo $line

Answers:

  1. It would not read any file
  2. It would read all the files in reverse order
  3. It would read only the test0.sh
  4. It would read only test3.sh

1,061 total views, 4 views today

Upwork Operating Systems

Redhat Linux 9.0 Admin Test 2016

Published by:

1. Which of the following files contains the IP address of the gateway?

Answers:

  1. /etc/sysconfig/network
  2. /etc/resolv.conf
  3. /etc/sysconfig/network-scripts/ifcfg-eth0
  4. /etc/sysconfig/network-scripts/gateway

2. Which of the following commands will format the /test partition?

Answers:

  1. ext2online -j /test
  2. mke2fs /test
  3. mke2fs -j /test
  4. ext2online /test

3. Which command is used to set a quota for user Debbie. The path is /test, the size of quota is 5MB and soft limit is 4MB. The user is not allowed to use more than 5MB.

Answers:

  1. setquota Debbie 4MB 5MB 0 0 /test
  2. setquota Debbie 4096 5120 0 0 /test
  3. setquota Debbie 0 0 4096 5120 /test
  4. setquota -s Debbie 4096 5120 0 0 /test

4. Which is the correct command to start the daemon of the printserver?

Answers:

  1. service printer start
  2. service cupsd start
  3. service cupd start
  4. service cups start

5. What problems will be faced during reboot, when the permissions of /tmp are 655, and the default permissions are 1777?

Answers:

  1. Xserver will not start
  2. System will not boot properly
  3. Device driver will not work
  4. man pages will not work

6. Which entry is not required in /etc/sysconfig/network ?

Answers:

  1. NETWORKING=YES
  2. HOSTNAME=stationx.example.com
  3. NAMESERVER=192.168.0.x
  4. NISDOMAIN=rhct

7. In which mode can LVM be created during installation?

Answers:

  1. CUI only
  2. GUI only
  3. Both CUI and GUI
  4. None of the above

8. Which entry does not belong to ifcfg-eth0 ?

Answers:

  1. DEVICE=eth0
  2. BOOTPROTO= static/dhcp
  3. HOSTNAME=stationx.example.com
  4. IPADDR=192.168.0.x
  5. ONBOOT=yes

9. Which statement correctly creates a Volume Group, named vg0, when there are two partitions /dev/hda6 and /dev/hda7 of 150 MB each, totalling 300MB?

Answers:

  1. vgcreate -n vg0 /dev/hda6 /dev/hda7
  2. vgcreate -l vg0 /dev/hda6 /dev/hda7
  3. vgcreate vg1 /dev/hda6 /dev/hda7
  4. vgcreate vg0 /dev/hda6 /dev/hda7

10. How can ext3 filesystem be converted to ext2 filesystem if the partition is /dev/hda7 ?

Answers:

  1. tune2fs -O ^has_journal /dev/hda7
  2. tune2fs -o ^has_journal /dev/hda7
  3. tune2fs -a ^has_journal /dev/hda7
  4. tune2fs -A ^hasjournal /dev/hda7

11. What is proc file system?

Answers:

  1. Physical partition created during installation
  2. Virtual file system
  3. It is the swap partition
  4. None of these

12. A new swap partition is created and entered correctly in /etc/fstab. How will it be mounted?

Answers:

  1. # swapon -s
  2. # swapon -a
  3. # swapon -m
  4. # swapon -A

13. What does the entry id:3:initdefault: define in the /etc/inittab file?

Answers:

  1. The system will boot by default in 3rd run level
  2. The system will boot by default in graphical mode
  3. The system will boot by default in single user run level
  4. The system will boot but not in 3rd run level

14. What is the correct format for kickstart installation through NFS, when the NFS IP is 192.168.0.254, and the file path on the server is /kickstart/ks.cfg ?

Answers:

  1. Linux kickstart=nfs:192.168.0.254/kickstart/ks.cfg
  2. Linux ks=nfs:192.168.0.254/kickstart/ks.cfg
  3. linux ks=nfs:192.168.0.254:/kickstart/ks.cfg
  4. linux kickstart=nfs:192.168.0.254:/kickstart/ks.cfg

15. How much space does the IPL (Initial Program Loader) take on the disk?

Answers:

  1. 511 MB
  2. 512 Bytes
  3. 512 MB
  4. 446 Bytes

16. How should a raid device /dev/md0, with level 0, and devices /dev/hda6, /dev/hda7 be created?

Answers:

  1. mdadm -c /dev/md0 -l 0 -n 2 /dev/hda{6,7}
  2. mdadm -c /dev/md0 -l 0 -n 2 /dev/hda6 /dev/hda7
  3. mdadm -C /dev/md0 -l 0 -n 2 /dev/hda6 /dev/hda7
  4. mdadm -C /dev/md0 -L 0 -n 2 /dev/hda{6,7}

17. The command which configures devices is:

Answers:

  1. kudzu
  2. netconfig
  3. kudu
  4. netstat

18. Which of the following commands enables ip forwarding permanently?

Answers:

  1. Echo “1” > /proc/sys/net/ipv4/ip_forward
  2. Open the file /etc/sysctl.conf and insert net.ipv4.ip_forward=1 in the file
  3. Open the file /etc/sysctl.conf and insert net.ipv4_forward=0 in the file
  4. Open the file /etc/sysctl.conf and insert net.ipv4.icmp_echo_ignore_all=1 in the file

19. How is an LVM of 200MB named lv0 created within the volume group vg0?

Answers:

  1. lvcreate -l 200MB lv0 vg0
  2. lvcreate -L 200MB lv0 vg1
  3. lvcreate -L 200MB lv0 vg0
  4. lvcreate -L 200MB vg0 lv0

20. Which of the following repquota command option is used to Report all quotas, even if there is no usage?

Answers:

  1. -a
  2. -v
  3. -t
  4. -n

21. Which file contains the configuration of the network card?

Answers:

  1. /etc/sysconfig/network-scripts/ifcfg-eth
  2. /etc/sysconfig/hwdata
  3. /etc/sysconfig/ntwork-scripts/hwdata
  4. /proc/sys/net/hwdata

22. What types of files does /proc filesystem consist of?

Answers:

  1. Pseudo Files
  2. System Binaries
  3. Temporary Files
  4. User Home Directories

23. A new partition /dev/hda6 has been created. How will it be formatted with ext3 file system (one block=1024 bytes, inode size=one inode every 2 blocks)?

Answers:

  1. mke2fs -b 2048 -i 2048 -j /dev/hda6
  2. mke2fs -b 1024 -i 1024 -j /dev/hda6
  3. mke2fs -b 1024 -i 2048 -j /dev/hda6
  4. mke2fs -b 2048 -i 4096 -j /dev/hda6

24. How should a cron job that prints “hello” every morning at 4:02am, be set up?

Answers:

  1. # crontab -e and insert into 02 04 * * * print “hello”
  2. # crontab -e and insert 02 04 * * * echo “hello”
  3. # crontab -e and insert into 02 04 * * * echo “hello”
  4. # crontab -e and insert into 02 4 * * * print “hello”

25. When the system is started, it shows Redhat Enterprise Linux. When the enter key is pressed, it shows the grub prompt. The present working directory is either / or /boot. How can you find the /boot partition at the grub prompt?

Answers:

  1. GRUB> find /boot/grub.conf
  2. GRUB> find /grub/grub.conf
  3. GRUB> find /grub/stage1
  4. GRUB> find /grub/stage2

26. During Linux installation, in which mode can RAID be created?

Answers:

  1. Only in graphical mode
  2. Only in CUI mode
  3. Both graphical and CUI mode
  4. None of the above

27. In which of the following locations are boot messages stored?

Answers:

  1. /var/log/dmessg
  2. /var/lag/dmesg
  3. /var/log/dmesg
  4. /var/log/messages

28. Which entry is specified in /etc/resolv.conf ?

Answers:

  1. IP address of own machine
  2. Nameserver IP address
  3. Router machine IP
  4. NIS domain IP

29. How can kernel-2.6.9-5 rpm be installed?

Answers:

  1. # rpm -U kernel-2.6.9-5.rpm
  2. # rpm -ivh kernel-2.6.9-5.rpm
  3. # rpm -IVH kernel-2.6.9-5.rpm
  4. # rpm -install kernel-2.6.9-5.rpm

30. What should be the command to view the details of raid device /dev/md0 ?

Answers:

  1. # mdadm –detail /dev/md0
  2. # mdadm -s /dev/md0
  3. # cat /proc/mdstat
  4. # mdstat –details /dev/md0

31. When VGs (Volume Groups) are created, where are the VG information files stored?

Answers:

  1. /etc/lvm/
  2. /etc/lvm/backup/
  3. /tmp/lvm/backup
  4. /etc/

32. Through which of the following commands can a corrupted initrd be recreated?

Answers:

  1. mkinitrd -f -v /boot/initrd-$(uname -r)img $(uname -r)
  2. mkinitrd -f -v /boot/initrd-$(uname -r).img $(uname -r)
  3. mkinitrd -f -v /boot/initrd-$(uname -r).EL $(uname -r)
  4. mkinitrd -f -v /boot/initrd-$(uname -r)img $(uname -r).EL

33. What should be done to extend a 200MB LVM named lv0 by 50MB. A volume group named vg0 of 100MB is available free, lv0 is mounted on /test ?

Answers:

  1. lvextend -L 50MB lv0 vg0
  2. lvextend -l 50MB lv0
  3. lvextend -I 50MB lv0 vg0
  4. lvextend -L 50MB lv0

34. How can you tell which RPM the /etc/inittab file belongs to?

Answers:

  1. rpm -ql /etc/initab
  2. rpm -qf /etc/inittab
  3. rpm -i /etc/inittab
  4. rpm -e /etc/inittab

35. There are 3 disks of 1 GB each, with mean total 3 GB. If a raid level 5 is implemented, what will be the size of the raid device?

Answers:

  1. 3 GB
  2. 2 GB
  3. 21/2 GB
  4. 1 GB

36. How can ext2 filesystem be converted to ext3 filesystem if the partition is /dev/hda7 ?

Answers:

  1. tune2fs -j /dev/hda7
  2. dump2fs -j /dev/hda7
  3. tune2fs -f /dev/hda7
  4. mke2fs -j /dev/hda7

37. Which of the following denotes Raid level 0?

Answers:

  1. Striping with parity
  2. Striping with mirroring
  3. Striping
  4. None of these

38. While troubleshooting Xserver, which of the following steps is not required?

Answers:

  1. service xfs restart
  2. system-config-display
  3. check permissions of /tmp
  4. check /usr permissions

39. What will be the behavior of the following command:

# echo “1” > /proc/sys/net/ipv4/ip_forward

Answers:

  1. Enables ip_forwarding permanently
  2. Enables ip_forwarding temporarily
  3. Disables ip_forwarding permanently
  4. Disables ip_forwarding temporarily

40. Can the size of LVM be decreased?

Answers:

  1. Yes
  2. No

41. Can / partition on lvm device be installed during installation?

Answers:

  1. Yes, it can be installed
  2. This facility is only available in rhel3.0
  3. / can install only one physical partition
  4. None of these

42. What is the path of rc.sysinit?

Answers:

  1. /etc/rc.d/rc.sysinit
  2. /etc/rc/rc.sysinit
  3. /etc/init.d/rc.sysinit

43. Sticky bit and suid are to be set on /home/test. Which command should be used to give rwx permissions to each user, group and others?

Answers:

  1. chmod 1777 /home/test
  2. chmod 3777 /etc/test
  3. chmod 3777 /home/test
  4. chmod 3777 /homes/test

44. If /root partition is installed on /dev/hda2, what defines hda2 ?

Answers:

  1. 1st hard disk 1st partition
  2. 2nd hard disk 2nd partition
  3. 2nd hard disk 1st partition
  4. 1st hard disk 2nd partition

45. /dev/hda6 and /dev/hda7 are two partitions of 150MB each. What is the correct statement to create physical volumes?

Answers:

  1. pvcreate pv0 /dev/hda6 /dev/hda7
  2. pvcreate /dev/hda6 /dev/hda7
  3. pvcreate -c pv0 /dev/hda6 /dev/hda7
  4. pvcreate pv /dev/hda6 /dev/hda7

46. How many disks are required in Raid level 5?

Answers:

  1. At least 2
  2. At least 3
  3. At least 1
  4. At least 4

47. What is the full form of MBR?

Answers:

  1. Memory buffer record
  2. Memory boot register
  3. Memory buffer register
  4. Master boot record

48. If the permissions of rc.sysinit are changed from 655 to 444, what will happen during the next reboot?

Answers:

  1. The system will boot but when the password is entered, “access denied” will be displayed
  2. The system will not boot
  3. The system will show only grub prompt during boot
  4. The system will automatically restart, without showing the login prompt after the exact boot process

933 total views, 1 views today

Upwork Operating Systems

Mac OS X 10.5 Test 2016

Published by:

1. Which of the following filesystems can be read by Mac OS X 10.5?

Answers:

  1. NTFS
  2. UFS
  3. EXT3
  4. FAT32
  5. ZFS

2. What is the sudo command?

Answers:

  1. It does not exist
  2. It is the super user do command
  3. It is the command to schedule commands
  4. None of the above

3. The dashboard allows you to instantly access any open window with a single keystroke.

Answers:

  1. True
  2. False

4. Which of the following is the command to manipulate disk images?

Answers:

  1. diskutil
  2. mount
  3. hdiutil
  4. mkimage

5. How do you know if a transaction has been secured with SSL under Safari?

Answers:

  1. It’s not possible
  2. All internet transactions are secured
  3. Safari does not support SSL
  4. A lock appears at the top right corner of the Safari window
  5. None of the above

6. Is Mac OS X POSIX compliant?

Answers:

  1. yes
  2. no

7. What is this view called?

Answers:

  1. Movie view
  2. Cover flow
  3. Super movie
  4. Movie flow
  5. Folder switching

8. Using default settings, what is located on the left part of the dock?

Answers:

  1. Applications
  2. Documents

9. Which of the following can do calculations?

Answers:

  1. Calculator
  2. Finder
  3. Spotlight
  4. Mail

10. While viewing a document with QuickLook, can you print it?

Answers:

  1. yes
  2. no

11. Which key should be pressed while clicking to open the menu on a window title bar, as in the image?

Answers:

  1. Command
  2. Option
  3. Control
  4. Shift

12. What is the folder separator under Mac OS X 10.5?

Answers:

  1. :
  2. /
  3. _

13. Is journaling supported by HFS+?

Answers:

  1. yes
  2. no

14. How do you manage your e-mail accounts under Mac OS X 10.5?

Answers:

  1. From the system preference panes
  2. By loading the installer from the install DVD
  3. By booting on the installer DVD
  4. From Mail.app preferences
  5. None of the above

15. Where do you change the default application to open a document in the Finder?

Answers:

  1. In the Desktop’s preferences
  2. In the document’s Info window
  3. In the Finder’s preferences
  4. In the enclosing folder’s Info window
  5. None of the above

16. Is HFS+ case sensitive by default?

Answers:

  1. yes
  2. no

17. What is the command to provide information about the currently running processes?

Answers:

  1. pl
  2. ps
  3. process list
  4. proc
  5. None of the above

18. Mail can detect addresses in e-mails.

Answers:

  1. True
  2. False

19. Which of the following commands is like the activity viewer?

Answers:

  1. activity
  2. top
  3. list
  4. nice
  5. truss

20. Is IPX supported by Mac OS X?

Answers:

  1. yes
  2. no

21. Under System Preferences, can the dock be put at the top of the screen?

Answers:

  1. Yes
  2. No

22. What is the command used to move a file?

Answers:

  1. move
  2. translocate
  3. mv
  4. cp
  5. cpy

23. How does Safari indicate progress in loading a web page?

Answers:

  1. It displays the current percentage of the loaded data
  2. A blue bar fills the address field
  3. The progress bar fills
  4. It doesn’t

24. What is the command to terminate an application from the command line?

Answers:

  1. term
  2. kill
  3. stop
  4. halt
  5. shutdown

25. Can you share a printer with a Windows client?

Answers:

  1. yes
  2. no

26. What version of the Internet Explorer is included in Mac OS X 10.5?

Answers:

  1. 7.0
  2. 5.0
  3. Both of the above
  4. None of the above

27. How can you create a PDF instead of printing?

Answers:

  1. It’s not possible
  2. By exporting it from the application
  3. By using the PDF button in the print dialog
  4. None of the above

28. What is mei?

Answers:

  1. An hard disk
  2. A Windows computer on the network
  3. A MacOS X server
  4. My computer

29. Is Mac OS X IPv6 capable?

Answers:

  1. yes
  2. no

30. What is this icon?

Answers:

  1. A walking folder
  2. A public folder
  3. A movie folder
  4. My computer

31. What is Safari?

Answers:

  1. A calendar application
  2. A contact list
  3. A web browser/span<
  4. A mail client
  5. None of the above

32. Left to right, what are those buttons functions?

Answers:

  1. Minimize, Rectify, Resize
  2. Maximize, Resize, Close
  3. Close, Minimize, Maximize
  4. Close, Rectify, Resize

33. How can you open a Finder window from the command line?

Answers:

  1. With the finder command
  2. With the open command
  3. It’s not possible
  4. With the win command

34. What does this icon denotes in the image shown above?

Answers:

  1. Internet icon
  2. Preference
  3. Info icon
  4. Spotlight icon

35. Which key should you hold at boot time to boot from a CD or DVD?

Answers:

  1. t
  2. f
  3. g
  4. c
  5. d

36. How do you usually install most of the applications under MacOS X?

Answers:

  1. With an msi installer
  2. By drag and drop of the .app bundle
  3. By using activeX controls
  4. None of the above

37. How can you mount a disk image from the command line?

Answers:

  1. You cannot
  2. By using mount
  3. By using hdiutil
  4. None of the above

38. How can you know the build number (like 9D34) of your installed Mac OS X?

Answers:

  1. By booting into the open firmware
  2. It’s not possible
  3. By looking into about this mac about box
  4. By booting from the DVD
  5. None of the above

39. What is a application bundle for the UNIX system?

Answers:

  1. A link
  2. A binary file
  3. A folder
  4. A special device
  5. None of the above

40. What is the name of the Mac OS X search engine?

Answers:

  1. fastsearch
  2. live search
  3. google
  4. spotlight

41. What feature was added to Leopard to reduce desktop clutter?

Answers:

  1. The Trash
  2. Stacks
  3. Folders
  4. Spaces

42. Which of the following features was added to MacOS X 10.5 in the Mail.app application?

Answers:

  1. IMAP
  2. POP
  3. RSS
  4. HTTP mail
  5. None of the above

43. Can the finder mount WebDav shares?

Answers:

  1. yes
  2. no

44. What is the name of the tool which allows looking inside a document without opening it?

Answers:

  1. Sneak Peak
  2. Preview
  3. Quick Look
  4. Sorcerer

45. What is the command to clear the terminal?

Answers:

  1. clean
  2. empty
  3. cleanse
  4. clear

46. Can PPC Mac run Boot Camp?

Answers:

  1. yes
  2. no

47. You can access Wikipedia through the Dictionary in OS X.

Answers:

  1. True
  2. False

48. What does the Private Browsing option do in Safari?

Answers:

  1. It prevents the sending of any information to websites
  2. It is equivalent to the invisible status in instant messaging systems
  3. It makes sure that the following aren’t stored: searches, cookies, history, form information
  4. All of the above

49. Which of the following are true?

Answers:

  1. Each user on a Mac OS X system can use the system in a different language
  2. Mac OS X 10.5 can run Mac OS 9 applications under classic
  3. Mac OS X is based on a UNIX system
  4. Mac OS X natively supports the IPX protocol
  5. Mac OS X can run Microsoft office

50. What are the view options for a folder in the Dock in Leopard?

Answers:

  1. Grid
  2. List
  3. Fan
  4. Dossier
  5. Automatic

51. Where are per user preferences stored?

Answers:

  1. In /etc
  2. In /System/Library/Preferences
  3. In ~/Library/Preferences
  4. In /Preferences
  5. In each application bundle

52. What is “Phoenix” ?

Answers:

  1. A hard disk
  2. A Windows computer on the network
  3. A MacOS X server
  4. My home folder

53. Which key can be used to immediately open a spring loaded folder?

Answers:

  1. Shift
  2. Alt
  3. Spacebar
  4. Delete

54. Which of the following URI are correct?

Answers:

  1. ftp://www.mysite.com/myfolder
  2. http.//mysite.com/mypath
  3. file:///Users/john/Documents
  4. http://ftp.mysite.com/mypath
  5. None

55. Can Safari automatically enter account names and passwords?

Answers:

  1. Yes
  2. No

56. Which key on the keyboard is used to open a file using quicklook?

Answers:

  1. q
  2. enter
  3. l
  4. spacebar
  5. Any key

57. Where are an application’s preferences usually located?

Answers:

  1. On the Desktop
  2. In the System preferences
  3. In a user’s library or the system-wide library
  4. In the application’s bundle

58. In which menu is an application preferences button usually located?

Answers:

  1. In the menu with the same name as the application
  2. In the Apple menu
  3. In the Help menu
  4. All of the above

59. Which is the current equivalent of Microsoft Office made by Apple for OS X?

Answers:

  1. iOffice
  2. iWork
  3. iDocs
  4. AppleWorks

60. Cups can be configured with a web browser. On which port is the cups server listening?

Answers:

  1. 132
  2. 2546
  3. 631
  4. 548
  5. 9845

61. Which key should you hold to boot a mac in target mode?

Answers:

  1. c
  2. d
  3. p
  4. t
  5. m

62. What is the orange button in the MacOS X windows title bar?

Answers:

  1. Auto resize
  2. Minimize in the dock
  3. Open
  4. Close
  5. None of the above

63. How do you customize a toolbar?

Answers:

  1. By double clicking it
  2. By right clicking it
  3. You cannot
  4. None of the above

64. If you have only one button on your mouse, which key would you press to emulate the right button?

Answers:

  1. command
  2. option
  3. ctrl
  4. shift
  5. fn

65. Can we mount windows shares on MAC OS X?

Answers:

  1. yes
  2. no

66. What is Boot Camp?

Answers:

  1. A recruitment pamphlet
  2. A tool to run Windows natively on a Mac
  3. A booting assistant
  4. None of the above

67. What system will you use to execute a command each day at 3pm?

Answers:

  1. You cannot
  2. cron
  3. at
  4. jobs
  5. None of the above

68. Is it possible to use a Mac to share an internet connection?

Answers:

  1. yes
  2. no

69. What is the Mac OS X printing system?

Answers:

  1. an hp printing system
  2. cups
  3. a linux printing system
  4. None of the above

70. What are the possible views for items in Finder windows in Leopard?

Answers:

  1. Icons, stacks, columns and list
  2. Only icons
  3. Icons, list, columns and cover flow
  4. None of the above

71. What does ~ mean in a path?

Answers:

  1. Hard drive root
  2. Document folder
  3. Home folder
  4. Network root
  5. None of the above

72. In Mac OS X 10.5, where can you change the default paper size?

Answers:

  1. You cannot
  2. In the Print & Fax preference pane
  3. In the print dialog
  4. None of the above

73. Which of the following applications have tabs in Leopard?

Answers:

  1. Safari
  2. Terminal
  3. Mail
  4. iTunes

74. What is the default filesystem under MacOS X 10.5?

Answers:

  1. UFS
  2. EXT3
  3. ZFS
  4. HFS+
  5. NTFS

75. What happens if the target of a hardlink is deleted?

Answers:

  1. The hardlink is not valid anymore.
  2. The hardlink stays valid.

76. Does Safari 5.x support SSL versions 2 and 3 and Transport Layer Security (TLS)?

Answers:

  1. Yes
  2. No

919 total views, 3 views today

Upwork Operating Systems

Knowledge of Windows 7 Skills Test 2016

Published by:

1. Which of the following Windows 7 features lists the recently or frequently opened items, such as files, folders, tasks, or websites, organized by the program that you use to open them?

Answers:

  1. Aero Peek
  2. Jump Lists
  3. Aero Snap
  4. Aero Shake

2. Which of the following statements is INCORRECT with regard to Windows 7 workgroup networks?

Answers:

  1. All computers are peers; no computer has control over another computer.
  2. Each computer has a set of user accounts. To log on to any computer in the workgroup, you must have an account on that computer.
  3. The computers can be on different local networks.
  4. All computers must be on the same local network or subnet.

3. What functions does the option “Parental Controls”, marked as icon “A” in the image and available under Control Panel =>User Accounts and Family Safety, perform in Windows 7?

Answers:

  1. It helps you make changes to your own user account on the computer.
  2. It helps you limit how much computer time children have, as well as which programs and games they can use.
  3. It helps you securely store the various usernames and passwords that you need to supply in order to access various websites.
  4. All of the above.

4. Which of the following is an INVALID Shut down option in the Start menu in Windows 7?

Answers:

  1. Switch User
  2. Log Off
  3. Restart
  4. Lock
  5. Sleep or Hibernate
  6. All of the above are valid Shut down options.
  7. Only a, b and c.

5. What does the Snipping Tool do in Windows 7?

Answers:

  1. It is used to capture screenshots of any object on your screen.
  2. It is used to perform all kinds of quick calculations.
  3. It is used to create and edit the graphics files you work with.
  4. It is used to record sounds via your computer’s built-in microphone.

6. What happens when you click on the icon, marked as “A” in the image, which shows on the Taskbar in Windows 7?

Answers:

  1. It opens the Property dialog box from where you can change the background and Windows color scheme.
  2. It opens the date and time property window from where you can set the date and time of your Windows.
  3. It minimizes all open programs and reveals the desktop.

7. What is the function of Start Narrator, marked as “B” in the image, which is available under Control Panel =>Ease of Access Center in Windows 7?

Answers:

  1. This feature reads aloud the names of each key you press, all system messages and onscreen messages that you receive, as well as all menu and toolbar options you select with the mouse.
  2. This control is used for various settings, including whether the Screen Magnify window appears full screen at startup and assigning a new magnification factor.
  3. This feature enables you to make text entries by clicking its keys to input letters, numbers, and punctuation, plus the accelerator keys, etc.
  4. It is used to displays all Windows elements in very high contrasting colors.

8. How do you adjust the Taskbar location on the Windows 7 screen?

Answers:

  1. You can’t adjust the Taskbar location on the Windows 7 screen.
  2. Right-click on any empty area of the Taskbar and select the Properties option from the list. In the Taskbar tab, click on the “Taskbar location on screen” and set the location you want.
  3. Go to the Control Panel from the Start menu and click on the “Taskbar and Start Menu” icon and set the Taskbar location.

9. What is the function of the Aero Peek feature in Windows 7?

Answers:

  1. It is used to capture screenshots of anything on your desktop, like a picture or a section of a webpage.
  2. It allows you to see your desktop without minimizing all your currently opened windows.
  3. It is used to create and edit the graphics files you work with.
  4. It is used to perform all kinds of quick calculations.

10. What result will the search criteria “tropical AND island” yield in Windows 7 library?

Answers:

  1. It will find files that contain either of the words “tropical” or “island”.
  2. It will find files that contain neither the word “tropical” nor the word “island”.
  3. It will find files that contain both of the words “tropical” and “island”.
  4. It will find files that contain only the word “tropical”.

11. In Windows 7, Snipping Tool is used to capture screenshots or snips of any object on your screen. Which of the following snips is NOT supported by the Snipping Tool when you navigate to

Start=>All Programs=>Accessories=>Snipping Tool?

Answers:

  1. Window Snip
  2. Full-screen Snip
  3. Rectangular Snip
  4. Free-form Snip
  5. All of the above snips are supported by the Snipping Tool.

12. What is the function of Start Magnifier, marked as “A” in the image, which is available under Control Panel => Ease of Access =>Ease of Access Center in Windows 7?

Answers:

  1. This feature reads aloud the names of each key you press, all system messages and onscreen messages that you receive, as well as all menu and toolbar options you select with the mouse.
  2. This control is used for various settings, including whether the Screen Magnify window appears full screen at startup and assigning a new magnification factor.
  3. This feature enables you to make text entries by clicking its keys to input letters, numbers and punctuation, plus the accelerator keys, etc.
  4. It is used to displays all Windows elements in very high contrasting colors.

13. Which of the following toolbars can be added to the Taskbar in Windows 7?

Answers:

  1. Address toolbar
  2. Tablet PC Input Panel toolbar
  3. Desktop toolbar
  4. Links toolbar

14. What is the function of the Snap feature in Windows 7?

Answers:

  1. It automatically sizes or snaps two windows to fit together on the screen thus allowing you the convenience of viewing them next to each other.
  2. It performs all kinds of quick calculations.
  3. It helps to create and edit the graphics files you work with.
  4. It can capture screenshots of anything on your desktop, like a picture or a section of a webpage.

15. In Windows 7, which of the following statements about BitLocker Drive Encryption is correct?

Answers:

  1. It is used to hide known file extensions by default. In other words, rather than displaying a full file name like “pcworld.docx”, Windows will only display “pcworld”.
  2. It is the best way to protect portable systems such as laptops from loss of data and information when the laptops themselves are lost or stolen.
  3. The BitLocker on desktop systems is a good consideration when you consider how much information can be lost from recycled desktop systems that have not undergone a proper hard drive wipe routine before being sold off.
  4. Both b and c.
  5. Both a and c.

16. Which of the following search filters will search for photos in a pictures folder by the date they were snapped on?

Answers:

  1. datetaken
  2. datemodified
  3. datecreated
  4. None of the above

17. What are the functions of Windows Media Center in Windows 7?

Answers:

  1. It uses a computer like a DVR to record television content.
  2. It is used to play downloaded movies.
  3. It is used to view digital photos on your TV.

18. Which of the following network discovery states will you set to prevent your computer from seeing other network computers and devices, and to prevent people on other network computers from seeing your computer?

Answers:

  1. On
  2. Off
  3. Custom

19. What is the function of Tasks, one of the options in the main menu of Media Center, in Windows 7?

Answers:

  1. It is used to burn media files stored on your computer’s hard drive to a CD or DVD.
  2. It is used to access the digital photos that are stored in your Pictures library.
  3. It is used to access live TV, recorded TV, and the online TV guide.
  4. It is used to access the Extras Library where you can play your favorite games on the computer or access the Extras
  5. Gallery, where you can sign up for special online services such as HSN Vision, etc.

20. Which of the following statements refers to the Certificate-Based Credentials of the Credential Manager option available under Control Panel =>User Accounts =>Credential Manager in Windows 7?

Answers:

  1. It is used to store digitally signed public key certificates that identify you and your computer.
  2. It is used to store the URL addresses, usernames, and passwords required for you to access the other websites you deal with that require you to log on in order to conduct business with them.
  3. It is used to store the network addresses, usernames, and passwords required for you to access various company intranet and SharePoint sites.

21. Which of the following is NOT a valid feature of Disk Management which is available under Control Panel=> Administrative Tools=> Computer Management in Windows 7?

Answers:

  1. It allows you to create a basic, spanned or striped partition directly from the menu.
  2. It allows you to extend and shrink partitions directly from the windows interface.
  3. It allows you disk conversion options whereby you can convert the disk to dynamic partition style or to GUID partition table when you add more than four partitions to a basic disk.
  4. It allows you to schedule a task to run in response to an event.

22. How do you add programs from the Start menu to Taskbar’s Quick Launch area in Windows 7?

Answers:

  1. Just drag and drop the program you want to add to the Quick Launch area on the Taskbar from the Start menu.
  2. Right-click the program you want to add to the Quick Launch area on the Taskbar from the Start menu and select “Pin to Taskbar”.
  3. There is no method to add a program from the Start menu to the Quick Launch area on the Taskbar.
  4. Both a and b.

23. Which of the following are valid options for organizing your files and folders in the Windows Explorer in Windows 7?

Answers:

  1. Small Icons
  2. Extra Large Icons
  3. List
  4. Content
  5. All of the above

24. Which of the following statements about Sticky Notes in Windows 7 is correct?

Answers:

  1. You can format text, add bullets to make a list, or change the text size by using keyboard shortcuts.
  2. You can resize a note by dragging an edge or corner of the note to make it larger or smaller.
  3. You can change the color of the sticky note.
  4. All of the above.

25. State true/false

If you forget where you had stored or downloaded a particular file, you can search the file location from the Start menu in Windows 7.

Answers:

  1. True
  2. False

26. What result will the following search criteria yield in Windows 7 library?
System.FileName:~<“notes”

Answers:

  1. It will show a listing of files whose names begin with the word “notes”.
  2. It will show a listing of files whose names do not begin with the word “notes”.
  3. It will show a listing of files whose names contain the word “notes”.

27. Which of the following option will be displayed in the box, marked as “A” in the image, when you right-click on the toolbar address?

Answers:

  1. Copy address
  2. Copy address as text
  3. Edit address
  4. Delete history
  5. All of the above
  6. None of the above

28. The image above shows a jump list of Windows 7. What does the icon marked as “A” in the image indicate?

Answers:

  1. It indicates that, if clicked, the highlighted item will be pinned to the jump list.
  2. It indicates that the highlighted item is a video file.
  3. It indicates that, if clicked, the highlighted item will be deleted from the jump list.

29. Which of the following functions can be performed by the Windows Management Instrumentation (WMI) Control which is available under Control Panel=> Administrative Tools=> Computer Management in Windows 7?

Answers:

  1. You can configure the WMI Control to back up your WMI repository.
  2. You can change the default namespace that is targeted in WMI scripts.
  3. You can change hardware configuration settings.
  4. You can roll back to the previous version of a driver.

30. Which of the following accessories are by default listed under the Accessories when you navigate to Start ?All Programs? Accessories in Windows 7?

Answers:

  1. Calculator
  2. Command Prompt
  3. Snipping Tool
  4. All of the above

31. What is the correct order of steps to record a live TV program after setting up the Windows Media Center in Windows 7?

Step1: Launch the Media Center by choosing Start ?All Programs ?Windows Media Center. Press the green button (sporting the Windows four-color flag logo) on the Media Center remote control.

Step2: Use the arrow keys on the keyboard to select the time and channel of a program playing sometime later in the day that you want the Media Center to record in the onscreen TV guide.

Step3: Highlight TV on the Media Center main menu and then click the Guide option to display the online TV guide where you can Select the program to record. Press the Guide button on the Media Center remote.

Step4: Press the Enter key to display a Program Info Screen and then click its Record button – note that the program now displays a red dot in the TV guide indicating that it will be recorded. Press the Record button on the Media Center remote.

Answers:

  1. 2,4,3,1
  2. 4,2,3,1
  3. 1,3,2,4
  4. 1,2,3,4

32. Which of the following options in the main menu of Media Center will you use to get the current and final scores for recent games involving your favorite sports teams as well as a schedule of upcoming televised sporting events in Windows 7?

Answers:

  1. TV
  2. Extras
  3. Sports
  4. Tasks

33. Which of the following Windows Media Player views of Windows 7 is represented in the image shown above?

Answers:

  1. Library view
  2. Skin view
  3. Now Playing view
  4. None of the above

1,228 total views, 1 views today