Linux MCQs with answers Page - 51

Here, you will find a collection of MCQ questions on Linux. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 833.24K Points
Coach

Q. If you are a root user, how can you grand execute permission only for the owner of the file project1?

  • (A) chmod U+X project1
  • (B) chmod a+x project1
  • (C) chmod u+x project1
  • (D) chmod +x project1

A

Admin • 833.24K Points
Coach

Q. A user executes the following command successfully: $ chmod +x file1.txt Which of the following is true of the output of this command?

  • (A) The command results in adding execute permission for all users (i.e., user,group & others)
  • (B) The command results in an error since the file is not an executable file
  • (C) The command results in adding execute permission for the owner of the file
  • (D) The command results in adding execute permission to the user who ran this command

A

Admin • 833.24K Points
Coach

Q. What does chmod +t do?

  • (A) set the sticky bit
  • (B) set effective groupid for filename
  • (C) set effective userid for filename
  • (D) wrong syntax

A

Admin • 833.24K Points
Coach

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

A

Admin • 833.24K Points
Coach

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

A

Admin • 833.24K Points
Coach

Q. SOCK_STREAM sockets are used by ______ processes.

  • (A) UDP
  • (B) TCP
  • (C) SCTP
  • (D) None of these

A

Admin • 833.24K Points
Coach

Q. SOCK_DGRAM sockets are used by ______ processes.

  • (A) UDP
  • (B) TCP
  • (C) SCTP
  • (D) None of these

A

Admin • 833.24K Points
Coach

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

  • (A) rules
  • (B) programs
  • (C) instructions
  • (D) none of these

A

Admin • 833.24K Points
Coach

Q. How many types of sockets are there?

  • (A) 2
  • (B) 4
  • (C) 3
  • (D) 5

A

Admin • 833.24K Points
Coach

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