Question 5 Yet Answered Marked 100 Subclasses Class Exception Subclasses Runtimeexception Q26894867

Question 5 Not yet answered Marked out of 1.00 Subclasses of the class Exception which are not subclasses of RuntimeException require mandatory exception handling. What are the practical implications of this statement? Select one or more: a. If a method can throw such an exception, then it must declare this fact by adding a throws clause to the method heading b. If a routine includes any code that can generate such an exception, then the routine must deal with the exception. c. The routine cannot handle the exception by adding a throws clause to the method definition. d. The routine can handle the exception by including the code in a try statement that has a catch clause to handle the exception. Flag question Question 6 Not yet answered Marked out of 1.00 In the linked list implementation of the queue class, where does the insert method place the new entry on the linked list? Select one a. At the head. Flag question O b. At the tail O c. After all other entries that are greater than the new entry. d. After all other entries that are smaller than the new entry Question 7 Consider the tree in the previous question. What is the order of nodes visited using an in-order traversal? Not yet answered Select one O a. 12 3 7 10 11 14 30 40 O b. 1 2 3 147 10 11 40 30 O C. 13 27 10 40 30 11 14 Marked out of 1.00 P Flag question d. 14 2 1 3 11 10 7 30 40 Question 8 Not yet answered Marked out of 1.00 How can you drink an entire keg of root beer? Select one a. (1) take one swallow, then (2) take another swallow. Flag question O b. (1) If the keg is empty do nothing, otherwise (2) take one swallow, then drink the rest of the keg O c. (1) take one enormous gulp, and (2) wish you hadnt. d. (1) drink one keg, and (2) drink another keg.

Question 5 Not yet answered Marked out of 1.00 Subclasses of the class Exception which are not subclasses of RuntimeException require mandatory exception handling.” What are the practical implications of this statement? Select one or more: a. If a method can throw such an exception, then it must declare this fact by adding a throws clause to the method heading b. If a routine includes any code that can generate such an exception, then the routine must deal with the exception. c. The routine cannot handle the exception by adding a throws clause to the method definition. d. The routine can handle the exception by including the code in a try statement that has a catch clause to handle the exception. Flag question Question 6 Not yet answered Marked out of 1.00 In the linked list implementation of the queue class, where does the insert method place the new entry on the linked list? Select one a. At the head. Flag question O b. At the tail O c. After all other entries that are greater than the new entry. d. After all other entries that are smaller than the new entry Question 7 Consider the tree in the previous question. What is the order of nodes visited using an in-order traversal? Not yet answered Select one O a. 12 3 7 10 11 14 30 40 O b. 1 2 3 147 10 11 40 30 O C. 13 27 10 40 30 11 14 Marked out of 1.00 P Flag question d. 14 2 1 3 11 10 7 30 40 Question 8 Not yet answered Marked out of 1.00 How can you drink an entire keg of root beer? Select one a. (1) take one swallow, then (2) take another swallow. Flag question O b. (1) If the keg is empty do nothing, otherwise (2) take one swallow, then drink the rest of the keg O c. (1) take one enormous gulp, and (2) wish you hadn’t. d. (1) drink one keg, and (2) drink another keg. Show transcribed image text

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *