Home > CompTIA Network+ Certification Exam > 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. The following code is written to be accessed by multiple detached threads. : const char * c; char * d; : /* no lock and no mutex is used in any way here */ my_print_func (c - &d); : Which one of the following will happen when this code is re-entered by multiple threads?
2. What is a UNIX directory?
3. Threads and processes are related in which one of the following ways?
4. Which of the following is an advantage of using pipes over shared memory for interprocess communication?
5. Yousee the following function call in some code: pthread_setspecific(key - value); What will this allow the coder to do?
6. Which of the following is true of hard links?
7. You see the line: listen (s - 3); You are looking at code for:
8. Sharing memory between processes using mmap vs. shm_open has which of the following advantages?
9. Which of the following best describes the purpose of the unlink() call?
10. Choose the answer that corrects the following code. FILE * file1; : if ((file1 = open('/valid_dir/existing_file' - O_RDONLY - 0666)) == ERROR) { /* /valid_dir/existing_file is guaranteed to exist */ :
11. In a Publish-And-Subscribe implementation - a subscriber must:
12. CORBA's DII allows a client to do which one of the following?
13. Which of the following IPC mechanisms has an inode?
14. Thrashing caused by loading a large file can be reduced by mapping the file to memory due to which of the following features?
15. Any code that calls a function whose interface includes the line raises(aLibrary:BookIsMissing); should do which one?
16. Which of the following could the fork() command return to the child process?
17. Which of the following provides the most random seed source for a pseudo random number generator?
18. In an IDL which one of the following is NOT a valid declaration?
19. Which of the following functions sends a signal to the executing process?
20. In Multi-Threaded programming you want an active thread to push itself back in the background in favour of some other thread. You will use which function:
21. Which is true - given the following code: tok = strtok_r(data - ' ??? - &last); while (tok) { strcat(strcpy(full_name - the_path) - tok); make_secondary(eAma_full_name - TRUE); tok = strtok_r(NULL - ' ??? - &last); }
22. Is it good programming that the following function call is recursive? void func(unsigned long a) { unsigned long x; struct t_struct[] *p; : p = (struct t_struct *)alloca(a*sizeof(t_struct)); : While (x = f2()) func(x); : return; }
23. The ioctl() function is used to interact with which of the following?
24. What does the following function return? Class retVal = [self class]; if ([retVal class] != [NSObject class]) { while ([retVal superclass] != [NSObject class]) retVal = [retVal superclass]; } return retVal;
25. The language of choice for Systems Programming is: