EECS 1520 Study Guide - Final Guide: Paper Mate, Loop Invariant, Object Copying

97 views10 pages
mahika.c06 and 40040 others unlocked
EECS 1520 Full Course Notes
54
EECS 1520 Full Course Notes
Verified Note
54 documents

Document Summary

1 (8 marks) (a) a static method is invoked on a(n) Marking scheme: 4 marks for a correct answer, 0 marks otherwise. (b) a non-static method is invoked on a(n) Marking scheme: 4 marks for a correct answer, 0 marks otherwise. Answer: the values of all of its attributes. Answer: its address, or some other unique indenti er. Answer: equality of identity, or equality of value. Marking scheme: 4 marks for a correct answer, 0 marks otherwise. (e) consider the following fragment of java code: Circle the expressions below that evaluate to true: f1 == f1 f1 == f2 f2 == f3 f1 == f3 f1. equals(f1) f1. equals(f2) f2. equals(f3) f1. equals(f3) Marking scheme: 1 mark for each correct answer, 1 for each incorrect answer. Answer: no duplicate elements allowed (set) versus duplicate elements allowed (list). Unordered (set) versus sequential order (list); or only iterator-based access (set) versus indexed-based access (list). Marking scheme: 4 marks for each of the two di erences.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents

Related Questions