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)

JAVA MTA EXAM QUESTIONS AND ANSWERS

Rating
-
Sold
-
Pages
3
Grade
A+
Uploaded on
04-05-2025
Written in
2024/2025

JAVA MTA EXAM QUESTIONS AND ANSWERS

Institution
MTA
Course
MTA

Content preview

JAVA MTA EXAM QUESTIONS AND
ANSWERS



What is the order of precedence? - Correct Answers -PEMDAS

int amount = 30,000
double rate = .10
int licensing = 1,000
double total= amount+licensing*rate
print(total)
The output is 30,100, but should be 33,100, how do you fix this? - Correct Answers -
(amount+licensing)*rate+amount

How do you print to user? - Correct Answers -system.out.print("");

What is %? - Correct Answers –modulus

You have the var double price = 39.99- what is it when you convert it into an integer? -
Correct Answers -39- rounded down

You have the var double price = 39.99- what is it when you convert it into a byte? -
Correct Answers -39- rounded down!

.isEmpty() - Correct Answers -returns boolean whether the variable is empty or not

What does it mean when a variable is NULL? - Correct Answers -it doesn't have a value
at all- non-existent

What does it mean when a variable is UNDEFINED? - Correct Answers -it's a variable
that has been declared but defined

What does modulus do? (%) - Correct Answers -returns remainder after division

How do you create a scanner? - Correct Answers -Scanner in = new
Scanner(System.in);

What does next() do? - Correct Answers -returns the scanner value on the next line

Written for

Institution
MTA
Course
MTA

Document information

Uploaded on
May 4, 2025
Number of pages
3
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$11.49
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.
Gordones22 Yala university
Follow You need to be logged in order to follow users or courses
Sold
504
Member since
4 year
Number of followers
351
Documents
9499
Last sold
1 week ago

4.1

108 reviews

5
63
4
17
3
13
2
4
1
11

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