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 Exam 1 Questions And Answers With Complete Study Tests

Rating
-
Sold
-
Pages
8
Grade
A+
Uploaded on
17-04-2025
Written in
2024/2025

CSE 205 Exam 1 Questions And Answers With Complete Study Tests

Institution
Course

Content preview

CSE 205 Exam 1 Questions And Answers With
Complete Study Tests
A java application always contains a single method. This method is called...? (Give the signature of this
method) ANS main

public static void main (String[] args)



How is data given to this parameter? ANS Through a command line interface

Ex: java someClass data (args[0] will contain data)



Identifiers can only begin with... ANS Letters, underscores, dollar signs



Which are not key words?
abstract
go

short
boolean
hash
synchronized
continue
instanceof
transient
double

new
try
extends
package

volatile
false
parent

while ANS go, hash, parent

, What does API stand for? ANS Application Programmer Interface



What needs to be done to use the scanner class? ANS import java.util.Scanner;



What is the different between println and print? ANS println ends with a line break



What is encapsulation? ANS The hiding of design decisions in a computer program that are most likely to
change, thus protecting other parts of the program from change is the design is changed. The variables
contained in an object should be modified only within the object.



What are the three visibility modifiers and what is their scope? ANS public - can be accessed from
anywhere
private - can only be accessed from inside the class

protected - the member can only be accessed within its own package and by a subclass of its class in another
package



What is the purpose of toString()? ANS To give a human readable representation of the object



What is an accessor method? ANS Defined to access private variable(s) in the class since private data
cannot be accessed from outside the class



What is a mutator method? ANS Defined to modify private variable(s) in the class



What is a constructor? ANS Special method used to create a new object



Define a constructor with two parameters, int x & y, for the class Point ANS public Point(int x, int
y){this.x = x; this.y = y}


Which method signatures would give an error if all methods were defined in a single class?
public int calc(int num1, int num2)
public double calc(int num1, int num2)

Written for

Institution
Course

Document information

Uploaded on
April 17, 2025
Number of pages
8
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$13.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

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.
Nipsey Chamberlain School Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
2093
Member since
5 year
Number of followers
1528
Documents
14937
Last sold
4 days ago
LECT EXAMS

FOR THE BEST ASSIGNMENTS,TEST BANKS,EASSY AND TO HELP IN TUTORING I have done papers of various topics and complexities. I am punctual and always submit work on-deadline. I write engaging and informative content on all subjects. Send me your research papers, case studies, psychology papers, etc , and I’ll do them to the best of my abilities. Writing is my passion when it comes to academic work. I’ve got a good sense of structure and enjoy finding interesting ways to deliver information in any given paper. I love impressing clients with my work, and I am very punctual about deadlines. Send me your assignment and I’ll take it to the next level. I strive for my content to be of the highest quality. Your wishes come first— send me your requirements and I’ll make a piece of work with fresh ideas, consistent structure, and following the academic formatting rules For every student you refer to me with an order that is completed and paid transparently, I will do one assignment for you, free of charge!!

Read more Read less
4.1

370 reviews

5
216
4
56
3
55
2
14
1
29

Recently viewed by you

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