TSA Coding HS
A syntax error is _____?
an error caused by language rules being broken
In programming, the definition of a list is...
A set of data that have something in common
Which of these is not a programming language?
Banana
What is the correct order of the following data sizes from smallest to largest? Megabytes, Terabytes, Bytes, Gigabytes
Bytes, Megabytes, Gigabyte, Terabytes
_____ converts the whole program at one time
Compiler
Evaluates the validity of one or more conditions and then executes one or more commands, whose nature depends now which condition is valid.
Conditional
A process that aims to locate the exact source of bugs (i.e. errors or flaws) in the code.
Debug
Which of the following is not a comparison operator?
Divided by
An__________ is a mathematical statement that may include variable, numbers and operators.
Expression
A do while and a while loop are the same
False
An int holds decimal numbers
False
What is FIFO?
First In First Out
The common programming structure that implements "conditional statements". It will only complete if the condition is met.
If Statement
Which of the following translates and executes program code line by line rather than the whole program in one step?
Interpreter
Repeatedly executes a set of one or more commands until one or more given conditions has been satisfied
Iterative
One loop nested inside the body of another loop is called _____?
Nested loop
Which operators can be used to test multiple conditions?
OR, AND
What word describes the set of instructions that computers need to work?
Program
Human-written code that describes what a program is supposed to do, or, more specifically, what the programmer wants the code to do.
Pseudocode
Most computer programs generate which type of random numbers?
Pseudorandom numbers
What is true about all type of loops?
Repeat until a condition is met
An infinite loop:
Repeats forever
Boolean expressions:
Result in true or false only
An error that occurs when the program is running, after the code has already been compiled, or checked. Programs are able to recover from runtime errors.
Run-time Error
A set of commands is executed one after the other in the order in which they were provided.
Sequence
What are the three methods of program control?
Sequence, selection, repetition
The code that is written by the programmer and is in a form that can be understood and edited by humans.
Source Code
Which data structure uses LIFO?
Stacks
What is the purpose of an IDE?
To store all your code in one place
A memory location that holds a single letter or number.
Word
A procedure in programming is also called _____.
a function
Which of the following describes programming? a) Describing a program in code so that the computer can give the answer to that problem b) Telling a computer what to do c) Giving a computer instructions so it can solve a problem d) All of these are correct
d) All of these are correct