

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Quiz; Class: Full Course Title: Program Design and Development; Subject: COMPUTER SCIENCE; University: University of Arizona; Term: Unknown 1989;
Typology: Quizzes
1 / 2
This page cannot be seen from the preview
Don't miss anything!


public int numberOf100s(int[] x, int n) { if (n == 0) return 0; else if (x[n - 1] == 100) return 1 + numberOf100s(x, n - 1); else return 0 + numberOf100s(x, n - 1); // 0 not necessary }
public int range(int[] x, int n) {
// Complete get here (there is no size method, use the instance variable n) public E get(int index) {
public void insertElementAt(int index, E element) {