MTA Software Development
Fundamentals Exam 2025/2026
Which of the following data types would be the best choice for keeping track of player's
ages and jersey numbers using the least amount of memory?
A)short
B)byte
C)int
byte
Which of the following data will be stored on the heap?
A)player's name
B)height
C)age
player's name
Which variable would make sense to store as a char?
A)player's name
B)weight
C)gender
Gender
What data type uses the least amount of memory?
Byte
What are 4 examples of integral data types?
Byte, integer, short, and long whole numbers
What are floating point data types?
Type that includes fractional data
What are 3 examples of floating point data types?
Float, single, and double
Where do value data types go?
MTA
, MTA
On the stack
Where do reference data types go?
On the heap
The code in the parentheses of an if statement must be a complete what?
Boolean expression
What do logical operators allow programmers to do?
Join 2 expressions
When does a for loop work best?
The number of iterations is known and unlikely to change during execution
What control structure would be best for a login system?
while loop
How many times does a do..while loop execute?
At least one time
What is the difference between a do..while loop and a while loop?
A while loop may not execute at all
How does a for loop work?
Executes a statement based on the value of a control variable
How does a while loop work?
Executes a statement repetitively based on a boolean expression
How does a do..while loop work?
Boolean expression is not checked until after the code executes
What is an exception?
An object that contains information about an error
What does the term thrown mean?
When an exception occurs
What is a try statement?
MTA