Home > Basic Programming > Quizzes > System Programming Fundamentals Test 2
System Programming Fundamentals Test 2
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 0% Most missed: “Wha does the following line do?”
System Programming Fundamentals Test 2
Time left 00:00
25 Questions

1. Thread joining synchronizes threads by doing which of the following?
2. If a function is a 'blocking function' then:
3. What is a UNIX directory?
4. What type of attack can be mitigated by using ulimit - setrlimit() - and quotactrl()?
5. Which of the following provides the most random seed source for a pseudo random number generator?
6. It is not possible to set the sticky bit of a file when creating it. Therefore it is necessary to create the directory and then set the sticky bit by executing: mkdir(???/tmp/dir??? - 0744); chmod(???/tmp/dir??? - 07744). Why?
7. A thread has its own copy of which of th following?
8. Which of the following fields in the stat struct contain last time the file was modified?
9. The language of choice for Systems Programming is:
10. Given the following line: my_fd = open(filename - O_WRONLY | O_CREAT | O_TRUNC | O_APPEND - 0644); Which statement is true?
11. You want to listen on a port for some user-defined data stream. Would you use port 80?
12. An Internet socket connection essentially is:
13. Any code that calls a function whose interface includes the line raises(aLibrary:BookIsMissing); should do which one?
14. Race conditions are caused by which of the following conditions in a multithreaded system?
15. Using strncpy() to copy strings can help prevent which of the following attacks?
16. Which one of the following is NOT applicable in real-time Systems Programming?
17. Which of the following is correct for the standard file descriptors that are automatically opened in UNIX?
18. Using a terminal you want to log in to an account on a remote computer and securely build. Which would you use?
19. Which of the following methods is used by system programs to access a character device (such as keyboards - audio cards - etc) on a UNIX system?
20. Which of the following functions sends a signal to the executing process?
21. How can two processes communicate despite having firewalls between them?
22. The sticky bit is used to enable which of the following features?
23. What is thread safety?
24. In order to prevent signal handler race conditions - a developer must do which of the following?
25. Which one of the folloing is NOT necessary for a basic CORBA system?