Home > Computer Engineering > Quizzes > CS407 Final Exam - Network Applications Development
CS407 Final Exam - Network Applications Development
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 22% Most missed: “Which of the following statements best describes using a thread pool?”

MCQs on the design and implementation of network-based applications, focusing on object-oriented programming and programming techniques, both at the application layer and the transport layer of the TCP/IP protocol stack.
 

CS407 Final Exam - Network Applications Development
Time left 00:00
25 Questions

1. Which of the following is a set of built-in (default) template rules defined in XSLT?
2. Data encapsulation includes which of the following?
3. Which of the following is an advantage of object-oriented code?
4. Which of the following is NOT defined in XSLT's built in template rules?
5. When coding in XML, which of the following is similar to coding in HTML?
6. The Java Network Interface can be used to do which of the following?
7. How is an element in XML similar to a HTML statement?
8. Which of the following statements best describes an XML filter chain in Java?
9. Which of the following is a keyword used in programming a Java interface?
10. When you include a try..catch statement in your code, which of the following is true?
11. Which statement best describes JAXP?
12. Examine the following code.  Then complete the question below.

Joe SmithMath 

What internet standard is being used?
13. Consider the following interface code:

public interface House {
    /**
   * @deprecated use of open
   * is discouraged, use
   * openFrontDoor or
   * openBackDoor instead.
   */
    @Deprecated
    public void open();
    public void openFrontDoor();
    public void openBackDoor();
}

and its implementation:

public class MyHouse implements House {
    public void open() {}
    public void openFrontDoor() {}
    public void openBackDoor() {}
}

If you compile this program, the compiler complains that open has been deprecated (in the interface). What should you do before running the program?
14. Which of the following must you consider in creating an rmi reference?
15. Consider the following code:

public class IdentifyMyParts {
public static int x = 7;
public int y = 3;
}

Which of the following is a variable?
16. Which of the following statements best describes how networks that use blocking apply multi-threading?
17. The package java.io includes a class named URL.Which statement best describes what this class does?
18. Consider this code:

private static class CountDivisorsThread extends Thread {
CountDivisorsThread() {
setDaemon(true);
}
public void run() {
while (true) {
'margin-left:120px;'> try {
'margin-left:160px;'> Task task = blockingTaskQueue.take();
'margin-left:160px;'> task.compute();
'margin-left:120px;'> }
'margin-left:120px;'> catch (InterruptedException e) {
'margin-left:120px;'> }
}
}
}

Which statement best describes the appropriate code, if the queue is not empty?
19. Which of the following applications require code to generate the input/output stream?
20. The TCP protocol provides a reliable channel for internet applications developed in HTML under which condition?
21. The SAX parsing APIs include which of the following error interface?
22. When you use preconditions in your code, which of the following is true?
23. Which of the following statements best describes using a thread pool?
24. Which of the following is an API that developers can use to write XML messaging?
25. Consider this code:

public class ThreadSafeCounter {

private int count = 0; // The value of the counter.

synchronized public void increment() {
'margin-left:80px;'>count = count + 1;

}

synchronized public int getValue() {
'margin-left:80px;'>return count;

}

}

Which statement best describes the appropriate code?