100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 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








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

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

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

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
View profile
Follow You need to be logged in order to follow users or courses
Sold
492
Member since
3 year
Number of followers
351
Documents
9477
Last sold
3 weeks ago

4.1

107 reviews

5
63
4
16
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

Frequently asked questions