Given a code snippet below? #define PERMS (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) int main() { int fd1, fd2; umask(0); fd1 = open(“file1”, O_CREAT | O_RDWR, PERMS) umask(S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); fd2 = open(“file2”, O_CREAT | O_RDWR, PERMS) return 0;}The newly created files file1 and file2 will have the permissions respectively

🎲 Try a Random Question  |  Total Questions in Quiz: 629  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Operating System Architecture Practice Test — practice the complete quiz, review flashcards, or try a random question.

The architecture of an operating system is basically the design of its software and hardware components. The core software components of an operating system are collectively known as the kernel.  For example, The architecture of the Linux operating system consists of the Kernel, system library, system, hardware layer, and shell utility. 

Related tests:

Operating System (OS) Practice Test Questions

Advanced Operating System Practice Test 


Given a code snippet below? #define PERMS (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) int main() { int fd1, fd2; umask(0); fd1 = open(“file1”, O_CREAT | O_RDWR, PERMS) umask(S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); fd2 = open(“file2”, O_CREAT | O_RDWR, PERMS) return 0;}<br>The newly created files file1 and file2 will have the permissions respectively