Font size
WorksheetsThe Barcode scanner
Total questions: 20
Worksheet time: 10mins
1. True / False: Arrays allow a single variable name to store multiple values.
True
False
The location of the data inside of an array is known as this.
Index
Boolean
Return
Parameter
True / False: When naming an array, a data type does not have to be specified
True
False
The size of an array is known as the number of this found in an array
Parameters
Elements
Strings
Numbers
True / False: Trying to access an index larger than the array will generate an error.
True
False
True / False: A Boolean variable is a variable that only stores a true or false value.
True
False
What does the Global Variables window display when using the Boolean function?
True
False
Zero
One
What is the binary code for T?
00100
00101
01001
01100
What is the binary code for Z?
10011
01001
00111
01011
What does int stands for?
interval
integrate
integer
initiate
What is also known as the number of iterations?
The number of times words are rhyming
The number of errors
The number of times a loop runs
The number of functions
What 3 parts in a 'for' loop must be specified?
The denominator, the function and the multiplier
The "for" function, the parameters and the semi-colon
The initialization, qualifier and multiplier
The initialization, the test condition and the increment
Explain the initialization statement
The initialization statement is where the variable that will be used to count the number of iterations through the loop is specified and set to its initial value
The initialization statement is where the iteration that will be used to count the number of steps through the loop is specified and set to its integer value
The initialization statement is where the function that will be used to count the number of iterations through the loop is specified and set to its increment value
The initialization statement is where the increment that will be used to count the number of iterations through the loop is specified and set to its initial value
What does the test condition specify?
How to increase the increment
How many iterations to loop through
How to start the function
Whether it is true or false
What does the increment do?
The increment increases the counter variable "i" after each iteration of the loop
The increment decreases the counter variable "i" after each iteration of the loop
The increment changes the "i" after each iteration of the loop
The increment modifies the counter variable "i" after each iteration of the loop
What is the meaning of i++?
Decreasing by one
Adding 1 to the current value of the variable "i"
Add and add again
Adding the values of the variables
When “i” is equal to zero, it means that the line segment is ____
white
black
dark
light
When “i” is equal to one, it means that the line segment is ____
dark
black
white
light
What is step 2 of the 'for' loop?
Check the test condition of the "for" loop. If the test condition is
true, enter the "for" loop. If the test condition is false, skip the "for" loop and run the rest of the program
Check the test condition of the "for" loop.
Check the test condition of the "for" loop. If the test condition is
true, enter the "for" loop.
Check the test condition of the "for" loop. If the test condition is
false, enter the "for" loop. If the test condition is true, skip the "for" loop and run the rest of the program
Is there a semi-colon after int binaryConvert( )?
yes
no
