Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CSE 205 Final UPDATED ACTUAL Exam Questions and CORRECT Answers

Rating
-
Sold
1
Pages
52
Grade
A+
Uploaded on
20-08-2025
Written in
2025/2026

CSE 205 Final UPDATED ACTUAL Exam Questions and CORRECT Answers Having multiple class methods of the same name where each method has a different number of or type of parameters is known as a) method overloading b) Encapsulation c) importing d) information hiding e) encapsulation - CORRECT ANSWER - a) method overloading The relationship between a class and an object is best described as

Show more Read less
Institution
CSE 205
Course
CSE 205

Content preview

CSE 205 Final UPDATED ACTUAL Exam
Questions and CORRECT Answers
Having multiple class methods of the same name where each method has a different number of
or type of parameters is known as


a) method overloading
b) Encapsulation
c) importing
d) information hiding

e) encapsulation - CORRECT ANSWER - a) method overloading


The relationship between a class and an object is best described as


a) objects are instances of classes
b) classes are instances of objects
c) classes are programs while objects are variables
d) objects and classes are the same thing

e) objects are the instance data of classes - CORRECT ANSWER - a) objects are
instances of classes


To define a class that will represent a car, which of the following definitions is most appropriate?


a) public class CAR
b) public class car
c) private class car
d) private class Car

e) public class Car - CORRECT ANSWER - e) public class Car

,Which of the following reserved words in Java is used to create an instance of a class?


a) new
b) public
c) public or private, either could be used
d) class

e) import - CORRECT ANSWER - a) new


What does acronym API stands for?
a) Application Parameter Internet
b) Application Programming Interface
c) Apply Programming Interactive

d) Abstraction Programming Interface - CORRECT ANSWER - b) Application
Programming Interface


A class' constructor usually defines


a) how an object is initialized
b) how an object is interfaced
c) if the instance data are accessible outside of the object directly
d) the number of methods in the class

e) the number of instance data in the class - CORRECT ANSWER - a) how an object is
initialized


Java methods can return only primitive types (int, double, float, char, boolean, etc).


True

False - CORRECT ANSWER - False

,All Java classes must contain a main method which is the first method executed when the Java
class is called upon.


True

False - CORRECT ANSWER - False


use the following class definition
import java.text.DecimalFormat;
public class Student
{ private String name;
private String major;
private double gpa;
private int hours;
public Student(String newName, String newMajor, double newGPA, int newHours)
{ name = newName;
major = newMajor;
gpa = newGPA;
hours = newHours;
}
public String toString( )
{ DecimalFormat df = new DecimalFormat("0.000");
return name + "\n" + major + "\n" + df.format(gpa) + "\n" + hours
}
}
Which of the following could be used to instantiate a new Student s1?


a) new Student(s1);

, b) new Student s1 = ("Jane Doe", "Computer Science", 3.333, 33);
c) Student s1 = new Student("Jane Doe", "Computer Science", 3.333, 33);
d) Student s1 = new Student( );

e) s1 = new Student( ); - CORRECT ANSWER - c) Student s1 = new Student("Jane Doe",
"Computer Science", 3.333, 33);


Consider a method defined with the header: public void foo(int a, int b). Which of the following
method calls is legal?
a) foo(, 2 * 3);
b) foo(0, 0.1);
c) foo(0);
d) foo(1 + 2, 3 * 0.1);

e) foo( ); - CORRECT ANSWER - a) foo(, 2 * 3);


Use the following partial class definitions:
public class A1
{
public int x;
private int y;
protected int z;
...
}
public class A2 extends A1
{
protected int a;
private int b;
...
}
public class A3 extends A2

Written for

Institution
CSE 205
Course
CSE 205

Document information

Uploaded on
August 20, 2025
Number of pages
52
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$14.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF


Also available in package deal

Thumbnail
Package deal
CSE 205 Bundled Exam Questions WITH CORRECT Answers
-
25 2025
$ 118.89 More info

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
MGRADES Stanford University
View profile
Follow You need to be logged in order to follow users or courses
Sold
1459
Member since
2 year
Number of followers
105
Documents
97742
Last sold
22 hours ago
MGRADES

Welcome to MGRADES ,Based at Stanford University in California. I guarantee success and you may end up coming back again and again. We do this for you . We offer the best study and exam materials for a wide range of courses and units. Make your study sessions more efficient and effective. Dive in and discover all you need to excel in your academic journey!

3.8

235 reviews

5
97
4
50
3
53
2
15
1
20

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions