The main difference between low-level and high-level programming languages.
high-level languages must be translated by software programs into low-level machine languages before then can be run on a computer
Event-Driven Programming means
programming statements are used to respond to events
An AND gate is an electronic component that takes two inputs, A and B, such that
the gate will be TRUE (or ON) when both A and B are TRUE (or ON).
Which of the following statements describes a limitation of using a computer simulation to model a real-world object or system?
(C) Computer simulations usually make some simplifying assumptions about the real-world object or system being modeled.
This type of block is a sequence, selection or repetition block
Control
Which of the following algorithms would navigate the robot below to reach its goal, the gray square?
Convert 1111 to a decimal number
15
In an even parity scheme the binary string 0111 0100 would be detected as containing an error. T or F?
F
Which of the following best describes the primary function of the CPU?
is the hardware that carries out the instructions of a computer program.
True/False One of the main characteristics of an abstraction is that it simplifies a complex phenomenon by leaving out the irrelevant aspects.
True
An OR gate is an electronic component with two inputs, A and B, such that
the gate would be TRUE (or ON) when either or both A and B are TRUE (or ON).
What does refactoring mean?
Restructuring a program without changing its basic behavior.
iteration in code is another name for
Repetition
Lists are indexed, or numbered, starting with 1, which means that you can retrieve any item from a list by giving its index. For the list below, what is the index of "No way"? Type your answer into the text box.
3
Convert 1001 1111 to a decimal number
159
In an odd parity scheme what would the parity bit be for the binary string 100 0010?
1
Type of Block
Event Handler
Which of the following is not an example of software?
Microsoft Excel
Angry Birds
Firefox
A Printer
A Printer
Which of the following lists arranges hardware components from the lowest to the highest abstraction level?
RAM chip, motherboard, logic gate, physical circuit
Physical circuit, motherboard, logic gate, RAM chip
Physical circuit, logic gate, RAM chip, motherboard,
RAM chip, logic gate, physical circuit, motherboard.
Physical circuit, logic gate, RAM chip, motherboard,
The Internet _______________.
is a network of networks
was invented by Tim Berners-Lee
connects devices and computers around the world
is based on the Internet protocol suite
is a network of networks
connects devices and computers around the world
is based on the Internet protocol suite
Random fraction selects a random number between 0 and 1, not including 1.
If the code above were executed, what value would be assigned to Label1?
Tails
For a program or web service defines how other programs can communicate with it and use it.
The Application Programming Interface (API
Convert 37 to binary
10 0101
In an even parity scheme the binary string 0110 0001 would be detected as containing an error. T or F?
T
Which of the following would be considered an event on your smart phone?
The user taps on the screen.
The phone receives a text message.
The phone's location changes.
The app plays a sound clip
The phone's internal clock ticks
The user taps on the screen.
The phone receives a text message.
The phone's location changes.
The phone's internal clock ticks
Which of the following is not an example of hardware?
Memory chip
WIndows Operating System
Motherboard
Integrated circuit
WIndows Operating System
Input A must be true.
Which of the following are advantages of cloud computing?
a. Cloud computing relieves users from having to backup their own data and information.
b. Cloud computing makes it easier to share information.
c. Information is stored on each user's computer.
d. Users can access information that is on the cloud from anywhere that has an Internet connection.
a. Cloud computing relieves users from having to backup their own data and information.
b. Cloud computing makes it easier to share information.
d. Users can access information that is on the cloud from anywhere that has an Internet connection.
What values could be assigned to X?
1,2, or 3
Persistent data is data that ______________.
remains in the device's memory even when the device is powered off.
101010100
340
In an even parity scheme what would the parity bit be for the binary string 101 1010?
0
Which of the following are components?
Button
Label
Player.IsPlaying
Player
Button.Image
Button
Label
Player
Which of the following are true statements about a computer's main memory?
It stores data.
It is called RAM, short for random access memory.
Any data stored in main memory disappears when the computer loses power.
It is the same as long-term memory
It stores data.
It is called RAM, short for random access memory.
Any data stored in main memory disappears when the computer loses power.
The elevator moves when the door is closed and the elevator is called to the floor that it is not currently on. Which of the following Boolean expressions can be used in a selection statement to cause the elevator to move?
(onFloor1 AND callTo2) OR (onFloor2 AND callTo1)
Which of the following is not true about algorithms:
A. An algorithm is a sequence of precise instructions.
B. Algorithms can be written to solve every problem.
C. Algorithms are step-by-step procedures.
D. Algorithms consist of a combination of sequences, selections, and/or repetitions.
Algorithms can be written to solve every problem.
Suppose your PRNG uses the following formula:
Xi+1 = (Xi * 2 + 1) mod 13
What would the next number be if the current number is 10?
8
What component would you use to store data the user inputs once the device is powered off?
TinyDB
Convert hexadecimal (base 16) number 5D to a decimal number?
93
In an odd parity scheme what would the parity bit be for the binary string 111 1101?
1