Home > Basic Programming > Quizzes > System Programming Fundamentals Test
System Programming Fundamentals Test
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 40% Most missed: “Which of the following are true of Unix system calls?”
System Programming Fundamentals Test
Time left 00:00
25 Questions

1. Which of the following sequences creates a socket based connection for communication?
2. Which of the following redirects the standard error output of a command to the log file 'error.log'?
3. Which of the following commands generates a listing of the system calls being executed by a program on Solaris?
4. Which of the following commands can be used on a Linux system to kill process 8977 and all its children?
5. What is the name of the standard linker on Unix?
6. What is the network byte order in Unix?
7. What does the '-pg' option of the Unix compiler do?
8. Which of the following shell operators redirects the standard input of the command being executed?
9. Which of the following gcc compiler options turns on optimization?
10. A process opens a file and forgets to close the file descriptor when it
11. Which of the following segments within the process address space are unique to each thread?
12. If a process is terminated due to a SEGFAULT on a Solaris 9 system - what is the name of the core file that is created?
13. What does the command 'mknod temp p' do?
14. If a write system call fails and if errno is set to EFAULT - what does it signify?
15. A C program 'domath.c' utilizes the math library. Which of the following commands correctly creates the corresponding executable 'domath'?
16. If a process executes the following C code on a Linux system - what is the outcome? char *cp = 0 - c = *cp;
17. Which of the following shell parameters contains the return value of the previously executed shell command?
18. Which of the following shell operators is used to send the standard output of the first command to the standard input of the second command?
19. The library routine printf does not use any system calls.
20. Which of the following commands can be used to generate a listing of all the shared libraries that an executable needs?
21. Which of the following commands can be used to create a static (archive) library?
22. What is the effect of setting the 'sticky' bit on an application's executable image?
23. Which of the following commands can be used to list all the active TCP connections on a Linux system?
24. What are the typical system calls the Unix shell invokes when it has to execute a new command?
25. Which of the following gdb commands can be used to obtain the stack trace of all the threads of a multi threaded program running on Linux?