No student devices needed. Know more
30 questions
ASCII is a character-encoding scheme that uses a numeric value to represent each character. For example, the uppercase letter “G” is represented by the decimal (base 10) value 71. A partial list of characters and their corresponding ASCII values are shown in the table above.
ASCII characters can also be represented by binary numbers. According to ASCII character encoding, which of the following letters is represented by the binary (base 2) number 1010100?
N
P
T
W
Jasmine is writing a shopping app. She has created a variable to keep track of the number of items in the shopping cart. Every time someone clicks the "addItemButton", she would like the variable to increase by 1.
What code should Jasmine insert where it says <missing code> in order for her app to work?
cart total = 1;
cartTotal + 1;
cartTotal = cartTotal +1;
var cartTotal = cartTotal + 1;
var cartTotal + 1;
What is a possible output when the following code segment executes? The ending position of the turtle is shown in each diagram. The starting position is shown as a white triangle in cases where the turtle starts and ends in different locations.
A Boolean expression is an expression that evaluates to which of the of the following?
Yes/Maybe/No
True/False
Any Integer
Integers between 1 and 10
Any single character
Consider the following segment given in pseudo code. What will be displayed if grade is set to 70?
You passed!
Time to start studying again!
You passed! and Time to start studying again!
Nothing will be displayed
An error will occur on line 7; you cannot have an IF inside an ELSE statement
Which of the following is true about while loops ?
While loops terminate after a fixed number of loops that is pre-determined
While loops terminate after a fixed number of loops that is determined after the loop executes once.
While loops run as long as a given boolean condition is true.
While loops run as long as a given boolean condition is false.
While loops are known as "forever loops" and never stop until the program is halted by the user.
Answer
Which variable is named correctly?
BlueFish
Bluefish
blueFish
BLUEFISH
What is a Conditional Statement?
A part of the code that allows you to perform different actions depending on which is true or false
A variable that has a value of true or false
A part of the code that tells you if a value is less than another value
A part of the code that tests whether or not two values are equal
What Comparison operator can be used to check if someone is 18 or older?
age >= 18
age <= 18
age > 18
age < 18
What does a “FOR LOOP” do? What is the variable, “I”, used for?
a. FOR LOOP repeats a function for a set number of times; I is the number of times repeated
b. I is a parameter of the function, and for only performs an action if certain circumstances are met
c. The FOR LOOP is a function and I the absolute value of the function
d. The FOR LOOP controls the order functions are called on outside of the for loop; I is the number of functions it controls
moveForward() is an example of this:
Parameter
Function
Conditional
Library
This is a type of code that allows you to repeat a certain code over and over again without having to manually put it in.
Function
Parameter
Loop
API
A collection of commands / functions, typically with a shared purpose:
Documents
File
Library
Folders
This is known as a precise sequence of instructions for processes that can be executed by a computer and are implemented using programming languages.
Function
Parameter
Algorithm
Command
Which of the following is FALSE regarding algorithms?
Option 1: Different algorithms can be developed to solve the same problem
Option 2: Different code can never be written to implement the same algorithm
Both Option 1 and 2 are true
Both Option 1 and 2 are false
When your programming is achieving some desired outcome while minimizing wasted effort or resources, we would say that its:
Top Notch
Comparable
Efficient
Problematic
In creating the snowflake you see above, which of the following function names would probably NOT be used in your code?
drawSnowflake()
drawBranch()
drawCross()
Any of these three (functions can be named however you want)
Looking at the image above, looping (through iteration) can be seen in which of the following lines of this algorithm?
Line 2
Line 7
Line 3
Line 9
Which of the following is FALSE regarding file sizes?
1 Terabyte = 1,000 kilobytes
1 Petabyte = 1,000 Terabytes
1 Megabyte = 1,000 bytes
1 Terabyte = 1,000 gigabytes
The number of pixels in a given area is called:
Resolution
Density
RGB
Hexidecimal
Which of the following is TRUE regarding data compression?
Data compression is only useful for files being transmitted over the Internet
Regardless of the compression technique used, once a data file is compressed, it cannot be restored to its original size.
Sending a compressed version of a file ensures that the contents of the file cannot be intercepted by an unauthorized user.
There are trade-offs involved in choosing a compression technique for storing and transmitting data.
Explore all questions with a free account