PDF Archive

Easily share your PDF documents with your contacts, on the Web and Social Networks.

Share a file Manage my documents Convert Recover PDF Search Help Contact

CIS 2348 Practice Exam 2 F2015 .pdf

Original filename: CIS 2348 Practice Exam 2 F2015.pdf

This PDF 1.3 document has been generated by / Mac OS X 10.10.5 Quartz PDFContext, and has been sent on pdf-archive.com on 27/01/2016 at 06:44, from IP address 98.197.x.x. The current document download page has been viewed 987 times.
File size: 63 KB (4 pages).
Privacy: public file

Download original PDF file

Document preview

CIS 2348 Practice Exam 2, F2015
This practice exam should help you prepare for the end of semester exam for CIS 2348. One
or more of these questions may appear on the actual exam, so be sure to work through all of
the problems.

Basic Java
1) Write a standard for loop that prints the numbers from 0 to 5, inclusive, to the console.

2) Convert the following to Java code: If x is greater than 10, print "X is greater than 10". If x
is less than or equal to 10 but greater than 5, print "X is between 5 and 10". If x is less than or
equal to 5, print "X is less than or equal to 5".

3) Create an ArrayList to hold strings and use a simple for loop to add the names
"Fred","Selma", and "Hermione" to the array.


Inheritance and Interfaces
1) Draw the UML inheritance diagram that would be appropriate for the following related
classes: Boat, Car, Vehicle, RaceCar

2) A class called Job inherits from a class called Activity and implements an interface
called Billable. Write the first line of a class definition (the line that begins with class)
for the Job class.


Define each of the following terms:





Action Listener




Layout manager ( in Swing )




Static function


1) The following code has several errors. Find the errors and write the corrected code below.
public class Vehicle {
private String _category;
private float _location;
public static void getCategory(){
return _category;
public moveToLocation(int newLocation) {
this._location = newLocation;


CIS 2348 Practice Exam 2 F2015.pdf - page 1/4
CIS 2348 Practice Exam 2 F2015.pdf - page 2/4
CIS 2348 Practice Exam 2 F2015.pdf - page 3/4
CIS 2348 Practice Exam 2 F2015.pdf - page 4/4

Related documents

cis 2348 practice exam 2 f2015
java test
1z0 808 latest dumps free download from lead2pass 171 180
how to create pdf using java with formatting text

Related keywords