MCQOPTIONS
Bookmark
Saved Bookmarks
→
Computer Science Engineering (CSE)
→
Software Design Modeling in Computer Science Engineering (CSE)
→
The new process called, child process gets a …â€..
1.
The new process called, child process gets a ………... return value from fork.
A.
-1
B.
0
C.
2
D.
1
Answer» C. 2
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
The shell acts as an interface between the ..
A file x is created with the following contentsecho today is: dateIf you type x.then
Consider the program main ( ){printf("He arose a victor from n"); system ("date") ;printf("the dark domain");}If a.out is the executable code corresponding to the above source code, then the command a.out > out f
The following commands gives the output like this #cat file1 file2#cat: file1: No such file or directory helloIf we execute the command cat file1 file2 1>2 2>&1 the output would be
Non leaf node of the file system structure is ..
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
For the below mentioned codeint main() { int fd;fd = open( logfile , O_CREAT|O_RDWR, 0600);lseek(fd, 5, SEEK_CUR);write(fd, Hello , 5);return 0;},
What is stored in logfile as per below mentioned code if we execute ./a.out > logfile?nt main() {int fd; close(1);fd = open( logfile ,O_RDWR, 0744); write(fd, Hello , 5); printf( World n );return 0;}
Code snippet (file1 size is 2024)f1 = fopen (file1, RDWR, RWX)lseek(f1,1024,SEEK_SET) write(f1,buf,10)What is offset now.
The statement z = expr 5 / 2 would store which of the following values in z?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply