πŸ“Š Operating System Architecture
Q. What is output of following perl program ? My $val='x'; print ref($val);
  • (A) scalar
  • (B) empty value
  • (C) string
  • (D) "not a reference"
πŸ’¬ Discuss
βœ… Correct Answer: (B) empty value
πŸ“Š Operating System Architecture
Q. Choose the correct answers if the command ls -l /dev/mt0 display's brw_rw_ _ _ _ 1 root 3, 0 Apr18 1:05 mt0
  • (A) the \b\ indicates that it is a special file
  • (B) mt0 indicates that it is a tape drive
  • (C) the \ b\ indicates that data transfer is done in blocks
  • (D) all of these
πŸ’¬ Discuss
βœ… Correct Answer: (D) all of these
πŸ“Š Operating System Architecture
Q. Which of the following shell's wildcards are used to match any number of characters including none?
  • (A) [ijk]
  • (B) [!ijk]
  • (C) ?
  • (D) *
πŸ’¬ Discuss
βœ… Correct Answer: (D) *
πŸ“Š Operating System Architecture
Q. Which command is used to display all the lines with the string 'sales' from the file empl.lst?
  • (A) cut sales empl.lst
  • (B) /sales > empl.lst
  • (C) grep sales empl.lst
  • (D) cat | /sales > empl.lst
πŸ’¬ Discuss
βœ… Correct Answer: (C) grep sales empl.lst
πŸ“Š Operating System Architecture
Q. /bin/passwd has the user execution permission set to 's' because
  • (A) this facility assigns to the user, permissions of the program owner. temporarily
  • (B) it should allow users who don\t have write permission to /etc/passwd to write to it
  • (C) /etc/passwd is write protected
  • (D) all of these
πŸ’¬ Discuss
βœ… Correct Answer: (D) all of these
πŸ“Š Operating System Architecture
Q. If one doesn't want anyone else to read or write to a file named datfile, except through a program in a file filex , then he may use
  • (A) chmod u+s filex ; chmod go_rw datfile
  • (B) chmod 4711 filex ; chmod go_rw datfile
  • (C) chmod 4711 datfile ; chmod go_rw filex
  • (D) both (a) and (b)
πŸ’¬ Discuss
βœ… Correct Answer: (D) both (a) and (b)
πŸ“Š Operating System Architecture
Q. The differences between malloc( ) and calloc() are:
  • (A) malloc is used for dynamic allocation of memory, while cal:1c can't be used for that purpose
  • (B) malloc needs only one argument. while cal loc needs two.
  • (C) unlike malloc, calloc allocates memory and initializes it to 0.
  • (D) both (b) and ©
πŸ’¬ Discuss
βœ… Correct Answer: (D) both (b) and ©
πŸ“Š Operating System Architecture
Q. The command line argument a.out x 'a b' "c d"
  • (A) is acceptable
  • (B) is acceptable if the double quotes are replaced by single quotes
  • (C) is acceptable if the single quotes arc replaced by double quotes
  • (D) none of the above
πŸ’¬ Discuss
βœ… Correct Answer: (A) is acceptable

Jump to