CS 1010 Midterm: CS 101 UVA Exam3 051

17 views8 pages

Document Summary

This pledged exam is open text book and closed notes. Different questions have different points associated with them. Because your goal is to maximize your number of points, we recommend that you do not dwell too long on any particular question during your first pass through the exam. Assume stdin is an initialized scanner variable throughout the test. Standard java class point for representing (x, y) locations is used throughout the test. For our purposes assume the following public point constructor and methods are always available. (cid:149) Point(): configures a new point object to represent the location (0, 0). Object clone(): returns a new point object that is a duplicate of its object. (cid:149) (cid:149) (cid:149) (cid:149) (cid:149) (cid:149) Email id ___________ name _____________________________________: (3 points) Write a single statement that assigns the value 1 to the first element of array score: (3 points) Assume int array variable score has already been defined and initialized.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers

Related Documents