McqMate
Sign In
Hamberger menu
McqMate
Sign in
Sign up
Home
Forum
Search
Ask a Question
Sign In
McqMate Copyright © 2024
→
Computer Science Engineering (CSE)
→
Operating System Architecture
→
printf() uses which system call
Q.
printf() uses which system call
A.
open
B.
read
C.
write
D.
close
Answer» C. write
1k
0
Do you find this helpful?
9
View all MCQs in
Operating System Architecture
Discussion
No comments yet
Login to comment
Related MCQs
Consider the following program main ( ) { printf ("Aayush won a football match on \n"); system ("date"); printf("In Berlin"); } if a.out is the executable code corresponding to the above source code,then the command a.out >out f
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
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; }
Below is the codeint main() { int fd1, fd2; struct stat buff1, buff2; fd1 = open(“1.txt”, O_RDWR); fd2 = open(“2.txt”, O_RDWR | O_APPEND); lseek(fd1, 10000, SEEK_SET); write(fd1, “abcdefghij”, 10); write(fd2, “abcdefghij”, 10); fstat(fd1, &buff1); fstat(fd2, &buff2); printf(“ %d %d”, buff1.st_size, buff2.st_size); return 0; } Before running the program, the file 1.txt and 2.txt size is 20 each. What is the output?
Which system call is used to create a hard link?
The fork system call
All system calls return ……..if open or create call fails
When a process makes a system call ,its mode changes from………
When the read system call encounters EOF ,it returns
System call mknod creates a