CSIS 212 FINAL EXAM - QUESTION AND ANSWERS
CSIS 212 Final Exam. Course Spring 2020 CSIS 212-B01 LUO Test Final Exam Started 3/6/20 7:51 PM Submitted 3/6/20 8:45 PM Due Date 3/6/20 11:59 PM Status Completed Attempt Score 144 out of 150 points Time Elapsed 53 minutes out of 2 hours Instructions covers Modules/Weeks 5–8 open-book, open-notes 2-hour time limit 50 questions - Multiple Choice and True/False Do not click the BACK button because this will lock you out of the exam. The timer will continue if you leave this exam without submitting it. Results Displayed Submitted Answers, Feedback • Question 1 3 out of 3 points Which statement below could be used to simulate the outputs of tossing a quarter to get heads or tails? Suppose randomNumbers is a SecureRandom object. Selected Answer: randomNInt(2); • Question 2 3 out of 3 points Overloaded methods always have the same . Selected Answer: method name • Question 3 3 out of 3 points The identifiers in an enumeration . Selected Answer: must be unique. • Question 4 3 out of 3 points Declaring main as static allows the JVM to invoke main . Selected Answer: without creating an instance of the class in which main is declared. • Question 5 3 out of 3 points Variables should be declared as fields only if . Selected Answer: they are required for use in more than one method or their values must be saved between calls to the class’s methods • Question 6 3 out of 3 points The package contains classes for manipulating all of the following items except . Selected Answer: classes • Question 7 3 out of 3 points Which set of statements totals the items in each row of two-dimensional array items, and displays each row’s total? Selected Answer: for (int row = 0; row h; row++) { int total = 0; for (int column = 0; column items[row].length; column++) { total += items[row][column]; Sf("Row %d's total is %d%n", row, total); } • Question 8 Which of the following statements is false? 3 out of 3 points Selected Answer: When an argument is passed by reference, the called method can access the argument’s value in the caller directly but cannot modify it. • Question 9 A programmer must do the following before using an array: 3 out of 3 points Selected Answer: declare then create the array. • Question 10 0 out of 3 points How many Book objects are created by the following statement? Book[] books = new Book[10]; Selected Answer: None of the above. • Question 11 In Java, multidimensional arrays . 3 out of 3 points Selected Answer: All of the above.
Written for
- Institution
- South University
- Course
- CSIS 212
Document information
- Uploaded on
- February 13, 2022
- Number of pages
- 15
- Written in
- 2021/2022
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
csis 212 final exam course 202020 spring 2020 csis 212 b01 luo test final exam started 3620 751 pm submitted 3620 845 pm due date 3620 1159 pm status completed attempt score 144 out of 1