100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

CSCI 1301 FINAL EXAM QUESTIONS WITH 100% CORRECT ANSWERS

Rating
-
Sold
-
Pages
46
Grade
A+
Uploaded on
05-12-2025
Written in
2025/2026

CSCI 1301 FINAL EXAM QUESTIONS WITH 100% CORRECT ANSWERS

Institution
CSCI 1301
Course
CSCI 1301











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
CSCI 1301
Course
CSCI 1301

Document information

Uploaded on
December 5, 2025
Number of pages
46
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

What is the output?
String test = "abcdefg";
System.out.println(test.substring(3));


Give this one a try later!


defg

,What is the output of page 11 on exam2reviewquestion?


Give this one a try later!


108.0




What sort of value does x store if x is a string?


Give this one a try later!


The value of x is a memory address




How would you call a constructor from another constructor in the same class?


Give this one a try later!


If you were trying to call a constructor with three parameters you could
write: "this(initialName,0 ,0);". This line has to be called at the beginning of
the constructor's body.




What is the difference between formal and actual parameters?


Give this one a try later!

, Formal parameters are the parameters that are in the method's heading and
actual parameters are the parameters that are entered when the method is
called.




What is the output?
for(int i = 10; i> 100; i++)
{
int x = i*i;
}


Give this one a try later!


Nothing because i is not greater than 100




Can a static method call a non-static method?


Give this one a try later!


No. A static method can't call a non-static method unless it has an object to
do so.




What is another way to write
for (String i : words)?


Give this one a try later!

, for (int i = 0; i < words.length; i++)




When will Java not define a default constructor for you?


Give this one a try later!


Java won't create a default constructor for you if you make any kind of
constructor (with or without parameters) for the class




What is the difference between calling a public method vs calling a public static
method?


Give this one a try later!


for public methods (non-static) you would type
object_Name.method_Name() and for a public static method you would
type class_Name.method_Name()




What is the output?
double[] x = {7.2, 6 , 2, 5.7, 0, 99, 108, 66};
System.out.println(x[8]);


Give this one a try later!


This would be an error

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.
TestITandFixIT Johns Hopkins University
View profile
Follow You need to be logged in order to follow users or courses
Sold
36
Member since
1 year
Number of followers
0
Documents
4737
Last sold
4 days ago

3.5

8 reviews

5
3
4
2
3
1
2
0
1
2

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

Frequently asked questions