TSA Coding Study Guide Questions And
Answers 100% Guaranteed Pass.
What is the correct order of the following data sizes from smallest to largest? Megabytes,
Terabytes, Bytes, Petabytes, Bits, Exabytes, Gigabytes - Answer✔Bits, Bytes, Megabytes,
Terabytes, Petabytes, Exabytes
How many megabytes are in a gigabyte? - Answer✔1000
How many bits would you need if you wanted to have the ability to count up to 1000? -
Answer✔10
An interpreter or compiler converts data into which numerical value? - Answer✔Binary
Which decimal is equivalent to the binary value 1100100? - Answer✔100
What is the core number system that most computers use to calculate & process logic? -
Answer✔Binary Code
What can a hexadecimal be utilized for? - Answer✔HTML color codes
How many unique IP addresses could be made using a 6 bit fixed-length adress sysem? -
Answer✔64
Which operator returns the remainder value in a calculation? - Answer✔Modulus
Operators of equal precedence are evaluated in which order? - Answer✔Left to Right
What is the purpose of order of operation in software programming? - Answer✔It tells the
computer which mathematical operation to perform first.
How does the ++ symbol in programming change a variable? - Answer✔It adds 1 to the value of
itself.
How does the -- symbol in programming change a varibale? - Answer✔It subtracts 1 from the
value of itself.
What data type is used for fractional numbers? - Answer✔Float
Which data representation system utilizes both letters and numbers? - Answer✔Hexadecimal
1|Page
, ©THEBRIGHT 2024/2025 ALL RIGHTS RESERVED.
When utilizing an if/else statement in your code, how many possible choices can be available to
the user? - Answer✔2
When writing an if/else statement, what should be utilized to contain the sequence of statements?
- Answer✔{ }
What comes first in the if / else statement? - Answer✔if
What is the best statement to use if checking to evaluate a single variable value across many
conditions? - Answer✔Switch
What does the == symbol in programming mean? - Answer✔equal
What does the = symbol in programming mean? - Answer✔assignment
What does the && symbol in programming mean? - Answer✔and
What does the || symbol in programming mean? - Answer✔or
What does the ! symbol in programming mean? - Answer✔not
What does the > symbol in programming mean? - Answer✔greater than
What does the < symbol in programming mean? - Answer✔less than
What does the >= symbol in programming mean? - Answer✔greater than or equal
What does the <= symbol in programming mean? - Answer✔less than or equal
What does the === symbol in programming mean? - Answer✔equal value and equal type
What does the != symbol in programming mean? - Answer✔not equal
What does the !== symbol in programming mean? - Answer✔not equal value and not equal type
What is another name for indenting? - Answer✔Nesting
What are nesting statements? - Answer✔They are statements inside another statement.
Which statement allows more than one condition in an if statement? - Answer✔elif
What does a computer program use as a means to evaluate a condition as True or False? -
Answer✔A Boolean expression.
"A program contains the following statements:
x= grade
If x >90:
print ("You are an A student!")
What action will the program take when x=89?" - Answer✔Nothing will print.
2|Page