• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 18 pages
Exam (elaborations)

Cse 110 Final || A+ Guaranteed.

Document preview thumbnail
Preview 3 out of 18 pages

CSE 110 FINAL || A+ GUARANTEED.

Content preview

CSE 110 FINAL || A+ GUARANTEED.
Which of the following are NOT Java primitive data types?
-String
-float
-Random
-boolean
-char
-int
-Array
-Math
-double
-class correct answers String, Random, Array, Math, class


What is a logic error?
a. an error that occurs when a program is running because, for example, the wrong operator was
used.


b. an error in a statement that does not conform to the syntax of the programming language.


c. an error in the hardware from overheating


d. an error introduced by the compiler when it guesses at how to fix a syntax error correct
answers a


Which of the following errors represents a part of a program that is incorrect according to the
rules of the programming language?


a. syntax errors

,b. run-time errors
c. logic errors
d. out-of-memory errors correct answers a


Which one of the following statements can be used to convert a string str to a double?


a. double n = str.parseDouble();


b. double n = Integer.parseDouble(str);


c. double n = Double.parseDouble(str);


d. double n = double.parseDouble(str); correct answers c


Which of the following java literals have the data type boolean?


-123
-3f
-3.14
- -3
-'a'
-"3.0"
-'\n'
-3.14f
-true
-false
-"true"

, -3.0 correct answers true, false


Which of the following Java literals have the data type String?


-123
-3f
-3.14
- -3
-'a'
-"3.0"
-'\n'
-3.14f
-true
-false
-"true"
-3.0 correct answers "3.0", "true"


When the following expression is evaluated, the result will be what Java data type?


5/3


int
float
double
boolean
char
String

Document information

Uploaded on
April 6, 2026
Number of pages
18
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$13.79

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

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.
SirAnton
3.7
(118)
Sold
807
Followers
438
Items
40070
Last sold
2 weeks ago




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