CIS265 Sumer 2015 - Exam2
First Name_ Last Name _ CSU ID _
MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the
question.
1)
Object-oriented programming allows you to derive new classes from existing classes. This i
CIS 265 Sect 01
- V. Matos
First Name_
Exam-2
Spring-2015
Last Name _
ID# _
(15 pts) MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers
the question.
1) In the following method, what is the base case?
1) _
static int
CIS 265 Summer 2015
Exam 1
First Name_ Last Name _
ID _
MULTIPLE CHOICE. (30pts - 3 pts each) Choose the one alternative that best completes the statement or answers the
question.
1) Which of the following is the correct expression that evaluates to true
CIS 265 Sect 01
- V. Matos
First Name_
Exam-2
Spring-2015
Last Name _
ID# _
(15 pts) MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers
the question.
1) In the following method, what is the base case?
1) _
static int
CIS 265 Summer 2015
V. Matos
Homework 2
Due: Mon. Jun 1st
In this assignment you will read in a binary disk file representing a list of serialized GeometricObjects.
The list consists of circles and rectangles of various colors and dimensions.
You are aske
CIS 265 Summer 2015
V. Matos
Homework 3
Due: Mon. Jun 8st
In this assignment you will read in (once more) a binary disk file representing a list of serialized
GeometricObjects. The list consists of circles and rectangles of various colors and dimensions.
CIS 265
Fall 2015. V.Matos
Homework 4
Due: April 2
nd
In this assignment you will be part of a programming team that is creating a Java class called: SuperLinkedList. The class
provides support to a dynamic doubly-linked list holding generic comparable da
CIS 265
Summer 2015. V.Matos
Homework 4
In this assignment you will be part of a programming team that is creating a Java class called: SuperLinkedList. The class
provides support to a dynamic doubly-linked list holding generic comparable data objects of
Exam
Name_
MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers
the question.
1)
Analyze the following recursive method.
public static long factorial(int n) cfw_
return n * factorial(n - 1);
1)
_
A)
Invoking factorial(
CIS 265 Homework 5 Implementing an Using the MinHeap Class
This assignment consists of two parts.
PART1. In this assignment you are asked to create a MinHeap class capable of holding generic comparable
objects (the TYPE of elements to be inserted is <E ex
CIS 265 Summer 2015
Exam 1
First Name_ Last Name _ ID
_
MULTIPLE CHOICE. (30pts - 3 pts each) Choose the one alternative that best completes the statement or answers the
question.
1)
Which of the following is the correct expression that evaluates to true
CIS 265/506
Final Exam Spring 2014 Section 1
First Name: _ Last Name: _ ID#_
1)
(9 pts) Consider the following sequence of values:
4, 9, 2, 3, 5, 6, 8, 1, 7
Create a MAX-HEAP by inserting the values given above. Draw the tree after inserting each element
CIS 265/506
Final Exam Spring 2015 Section 1
First Name: _ Last Name: _ ID#_
1. (10pts) Consider the following sequence of values:
4, 7, 6, 3, 5, 1, 9, 2, 8
Create a MAX-HEAP by inserting the values given above. Draw the tree after inserting each element
CIS 265/506
Final Exam Spring 2015 Section 50
First Name: _ Last Name: _ ID#_
1. (10pts) Consider the following sequence of values:
5, 1, 9, 2, 8, 4, 7, 6, 3
Create a MAX-HEAP by inserting the values given above. Draw the tree after inserting each element
CIS 265 - Spring 2015
Exam-1
Fist Name_ Last Name_
MULTIPLE CHOICE. (25points) Choose the one alternative that best completes the statement or answers the question.
1) The following code displays _.
1) _
double temperature = 50;
if (temperature >= 100)
Sy
CIS 265
Fall 2015 Prof. Matos
Homework 3
Due: Th. Mar 19th
Provide a recursive solution to any one of the following problems.
Problem 18.23 [10 points] (Binary to decimal) Write a recursive method that parses a binary number as
a string into a decimal int
Sujay M. Bajracharya, 2669908
CIS 265 - Assignment 4
Enter
A
Enter
Tom
Enter
A/C
Enter
10
A(dd), R(emove), S(can), or Q(uit)>
Enter
A
Enter
Chris
Enter
Gen
Enter
22
A(dd), R(emove), S(can), or Q(uit)>
Enter
A
Enter
Nick
Enter
Gen
Enter
13
A(dd), R(emove),