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 midterm ACTUAL Exam Questions and CORRECT Answers

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

CSE 205 midterm ACTUAL Exam Questions and CORRECT Answers In Java, functions are called ___. - CORRECT ANSWER - True - Methods We can use a variable as an index expression to access an array element in Java. - CORRECT ANSWER Java uses the ^ (caret) operator for exponentiation. - CORRECT ANSWER In Java parameter variables must be declared with their data type. - CORRECT ANSWER - True

Show more Read less
Institution
CSE 205
Course
CSE 205

Content preview

CSE 205 midterm ACTUAL Exam
Questions and CORRECT Answers
In Java, functions are called ___. - CORRECT ANSWER - Methods


We can use a variable as an index expression to access an array element in Java. - CORRECT
ANSWER - True



Java uses the ^ (caret) operator for exponentiation. - CORRECT ANSWER - False


In Java parameter variables must be declared with their data type. - CORRECT
ANSWER - True


Method overloading distinguishes between methods based on _____. - CORRECT
ANSWER - both
number of arguments
and
data types of arguments


In Java, arrays can only store primitive types. - CORRECT ANSWER - False


Which of the following correctly demonstrates the use of an array initializer list? - CORRECT
ANSWER - Int[] my_array = {1, 2, 3, 4, 5};


Which of the following is/are true about arrays? Choose all that apply. - CORRECT
ANSWER - the elements of an array all located contiguously in memory
an array is a set of variables
the elements of an array are accessed by an integer index
the elements of an array all have the same data type

, Java arrays have an attribute named _____ that can be accessed to get the size (number of
elements) of the array. - CORRECT ANSWER - Length



We cannot delete individual elements from an array in Java. - CORRECT ANSWER -
True


Arrays cannot be passed as arguments to methods in Java. - CORRECT ANSWER - False


The idea of looping through an array (element-by-element) looking for some element that meets
our criteria, is called a(n) _____. - CORRECT ANSWER - linear search



The first element of an array is located at index _____. - CORRECT ANSWER - 0


You cannot have an object reference whose type is an abstract class. - CORRECT
ANSWER - False



You can instantiate an object of an abstract class. - CORRECT ANSWER - False


A sub-class has access to private instance variables of its super class. - CORRECT
ANSWER - False


Members that are protected in the super class are visible in the derived class. - CORRECT
ANSWER - True



A Java interface defines a set of methods that are required. - CORRECT ANSWER - True


Members that are protected in the derived class are visible in the super class. - CORRECT
ANSWER - False

Written for

Institution
CSE 205
Course
CSE 205

Document information

Uploaded on
August 20, 2025
Number of pages
6
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$11.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