Q. Which of the following umask settings allow execute permission to be
set by default on regular files

  • (A) 000
  • (B) 111
  • (C) 222
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (D) None of these

Q. The command chmod 4777 a.out

  • (A) will set the sticky bit of a.out
  • (B) is not a valid command
  • (C) will set the suid bit of a.out only if the command is issued by root
  • (D) will set the suid bit of a.out
πŸ’¬ Discuss
βœ… Correct Answer: (D) will set the suid bit of a.out

Q. SOCK_STREAM sockets are used by ______ processes.

  • (A) UDP
  • (B) TCP
  • (C) SCTP
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (B) TCP

Q. SOCK_DGRAM sockets are used by ______ processes.

  • (A) UDP
  • (B) TCP
  • (C) SCTP
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (A) UDP

Q. An interface is a set of ___________ designed to facilitate interaction between two entities

  • (A) rules
  • (B) programs
  • (C) instructions
  • (D) none of these
πŸ’¬ Discuss
βœ… Correct Answer: (C) instructions

Q. How many types of sockets are there?

  • (A) 2
  • (B) 4
  • (C) 3
  • (D) 5
πŸ’¬ Discuss
βœ… Correct Answer: (B) 4

Q. If a signal is received by a process, when will it be processed?

  • (A) It is processed in the next time slice given to the process
  • (B) It is processed immediately
  • (C) It is processed when process is switching to kernel mode
  • (D) All of these
πŸ’¬ Discuss
βœ… Correct Answer: (C) It is processed when process is switching to kernel mode

Q. Which signal is generated when we press control-C?

  • (A) SIGSEGV
  • (B) SIGKILL
  • (C) SIGTERM
  • (D) SIGINT
πŸ’¬ Discuss
βœ… Correct Answer: (D) SIGINT

Q. Which signal is generated when we press ctrl-Z?

  • (A) SIGINT
  • (B) SIGABRT
  • (C) SIGSTOP
  • (D) SIGKILL
πŸ’¬ Discuss
βœ… Correct Answer: (A) SIGINT

Q. Which signal is sent when the Child process terminates?

  • (A) SIGCHLD
  • (B) SIGSTOP
  • (C) SIGKILL
  • (D) SIGINIT
πŸ’¬ Discuss
βœ… Correct Answer: (C) SIGKILL