Katherine is creating a computer program that will allow the cursor to jump to a different location when the mouse is clicked on a certain image. Which programming component should Katherine use to tell the program what to do when the mouse is clicked on the image?
a parameter
A class
An event
An event handler
2. Multiple Choice
30 seconds
1 pt
A set of instructions that tells a computer what to do to accomplish a particular task is called:
Programming language
Software
An application
A computer program
3. Multiple Choice
1 minute
1 pt
Instructions (such as a recipe) are written so that each step is performed one at a time, from top to bottom, until the task is completed. This type of instruction process is called:
Sequential
Scripting
Pseudocode
Programs
4. Multiple Choice
2 minutes
1 pt
To focus on the logic and make refinements to a program before translating it into a programming language, a programmer often creates an outline of the program’s algorithm. What is the term for this type of outline?
Pseudocode
Sketch
Compiler
Interpreter
5. Multiple Choice
30 seconds
1 pt
Binary is based on which number system?
Base 6
Base 2
Base 8
Base 10
6. Multiple Choice
30 seconds
1 pt
Binary is based on which number system?
Base 6
Base 2
Base 8
Base 10
7. Multiple Choice
2 minutes
1 pt
Notice the blank in Step 4 of the code. Which loop programming statement correctly completes the blank?
Else
While
It
For
8. Multiple Choice
1 minute
1 pt
if <this is true> do this else do something else The statements in this example show an example of:
Pseudocode
Syntax
A compiler
A flowchart
9. Multiple Choice
30 seconds
1 pt
Which operator is an example of a Boolean operator?
ll
%
!=
++
10. Multiple Choice
2 minutes
1 pt
Variables can hold different types of data, and they are classified based on the type of data they hold. The numbers 7.5, 2.1 and 48.6 would be stored using which variable data type?
Boolean
Floating Point
String
Integer
11. Multiple Choice
2 minutes
1 pt
Erik is using object-oriented programming to design a game. He has created a Dragon class, and he has used the Dragon class to build two Dragon objects. Which term describes the objects that Erik built using the Dragon class?
Methods
Occurences
Instances
Substances
12. Multiple Choice
2 minutes
1 pt
1 Input a number 2 Check to see if the number ends in 0, 2, 4, 6 or 8? 2a If yes, write "The number is even." 2b If no, write "The number is odd." This is an example of which type of control structure?
Selection
Iteration
Loop
Sequence
13. Multiple Choice
2 minutes
1 pt
Which of the following best defines the term "algorithm"?
A combination of zeroes and ones that represents an instruction to the computer
The rules for writing instructions in a specific programming language
A set of step-by-step instructions to solve a problem or perform a task
A way to write programming code in short English phrases to describe the program components
14. Multiple Choice
2 minutes
1 pt
Veronica has written a computer program that locates records in a database. During testing, the program suddenly stops running. What is most likely causing the program to stop running?
A runtime error
A debugging error
A logic error
A syntax error
15. Multiple Choice
30 seconds
1 pt
Which control structure indicates the do/while statement?
Selective
Loop
Object
Sequence
16. Multiple Choice
2 minutes
1 pt
Which option lists the problem-solving steps in the correct order?
1,2,3,4
4,1,3,2
4,2,1,3
2,1,4,3
17. Multiple Choice
45 seconds
1 pt
Which type of language is translated entirely to machine language before use?
Machine
Interpreted
Compiled
Assembly
18. Multiple Choice
45 seconds
1 pt
What is the only language that a computer can understand?
High-level
Application
Machine
Assembly
19. Multiple Choice
2 minutes
1 pt
How is structured programming similar to a recipe?
The steps must be performed in a certain order to produce the proper result
The steps can be altered in any way without affecting the results.
The steps may be performed in any order to produce the proper result.
The steps must be repeated to produce the proper result.
20. Multiple Choice
30 seconds
1 pt
Which type of error occurs when a programmer misspells a word or instruction?
Runtime
Syntax
Logic
System
21. Multiple Choice
1 minute
1 pt
Which control structure will execute an instruction only after the computer evaluates conditions to determine if a certain condition exists?
Selection
Loop
Functional
Sequence
22. Multiple Choice
1 minute
1 pt
Which program translates a number of program instructions, waits for the computer to execute them, and then translates the next series, until the program is fully executed?
Application
Compiler
Assembler
Interpreter
23. Multiple Choice
30 seconds
1 pt
Which type of statement is an example of a selection programming structure?
If/else
while
do while
for
24. Multiple Choice
2 minutes
1 pt
Which statement is true about objects?
Objects created using the same class can contain different properties and property values.
Objects created using the same class must contain the same properties and property values.
Objects created using the same class must contain the same properties; however, the properties may contain different values.
Objects created using the same class may contain different properties; however, the properties must contain the same values.
25. Multiple Choice
3 minutes
1 pt
Which term describes the instructions presented in this example?
Algorithm
Statement
Syntax
Programming Code
26. Multiple Choice
1 minute
1 pt
What is the process that a programmer uses to identify errors and make corrections to a program that does not perform the way it was intended or produces incorrect results?
Debugging
Executing
Testing
Compiling
27. Multiple Choice
1 minute
1 pt
Candida has added the variable names needed by her program. She must now assign an initial value to each variable. What is the term for assigning this initial value?
Declaring
Encoding
Initializing
Executing
28. Multiple Choice
30 seconds
1 pt
Which term describes a series of zeros and ones that represent the basic unit of data that a computer processes?
Code
Byte
Data
Switch
29. Multiple Choice
1 minute
1 pt
During testing, your development team identified some problems in the first program draft. What is the next step you need to complete?
Review the result of the solution
Use logic to plan a solution
Test the plan
Revise the plan until a solution is found.
30. Multiple Choice
30 seconds
1 pt
When a computer is performing the instructions contained in a program, it is called:
Debugging
Compiling
Assembling
Executing
31. Multiple Choice
1 minute
1 pt
Which type of programming structure requires each instruction to be performed in order, with no possibility of skipping an action or branching off to another action?
Loop
Sequence
Selection
Iteration
32. Multiple Choice
30 seconds
1 pt
What are the three main programming structures?
Sequence, selection, loop
Structured, object-oriented, procedural
Java, Python, Visual Basic
Machine, assembly, high-level
33. Multiple Choice
1 minute
1 pt
The set of rules that must be followed when writing program instructions for a specific programming language is called:
Binary
Machine Language
Syntax
Executing
34. Multiple Choice
1 minute
1 pt
Consider the loop control structure in programming. Which term describes a loop that continues repeating without a terminating (ending) condition?
Conditional Loop
Unlimited Loop
Sequence Loop
Infinite Loop
35. Multiple Choice
1 minute
1 pt
What is the first step for creating an algorithm to solve a problem?
Create the procedures needed to execute the solution.
Test and refine the solution.
Determine the logic needed to plan a solution to the problem.
Identify and understand the problem.
36. Multiple Choice
2 minutes
1 pt
What step is missing?
Multiply the number by 2.
Divide the number by 2.
Multiply the number by 3.
Divide the number by 3.
37. Multiple Choice
2 minutes
1 pt
Jackson has written a section of code in his program that instructs a character to move forward unless it encounters an obstacle, such as a rock. If the character encounters an obstacle, then it should change direction before moving forward again. If it does not encounter an obstacle, it should continue moving forward. Which type of control structure has Jackson written?
Selection
Loop
Functional
Sequence
38. Multiple Choice
30 seconds
1 pt
Which statement is true regarding structured programming?
It focuses on classes and objects that can be reused and changed.
It is a set of rules for defining how declarations, functions, commands, and other statements should be arranged in a computer program.
It divides the problem into smaller, more managable tasks that are performed in a sequence to solve the larger problem.
It has the same structure and set of commands as machine lanuage, but uses symbols and recognizable codes.
39. Multiple Choice
1 minute
1 pt
Which term is used to describe expressions that result in the value of either true or false?
Selection
Boolean
Conditional
Concatenation
40. Multiple Choice
2 minutes
1 pt
Jasmine and her team are creating an animated maze game that responds to the keys pressed on the keyboard. The team meets to discuss the game objectives and key components of the program. They create a list of objectives for designing the game. Which problem-solving activity did the team complete in this first meeting?
Use logic to plan a solution to a problem.
Create procedures needed to execute the solution.
Test and refine a solution.
Identify and understand the problem.
41. Multiple Choice
1 minute
1 pt
You have written a program that asks the user for a number and then multiplies the number by 2 ten times before the program ends. Which type of control structure is this?
Functional
Loop
Selection
Control
42. Multiple Choice
1 minute
1 pt
Scott has written a program to add together a group of numbers and then divide the total by the number of items added to produce the average value. When he tested the program, he noticed that the program is multiplying the total by number of items, not dividing as he intended. Which type of programming error has mostly likely occurred?
System
Runtime
Computer
Logic
43. Multiple Choice
3 minutes
1 pt
You are designing a computer program that calculates the amount of change a customer should receive. You create a program design document using the following pseudocode to demonstrate the program flow: item1 = input cost of item 1 item2 = input cost of item 2 item3 = input cost of item 3 total = item1 + item2 + item3 amtPaid = input amount paid change = ________________ Notice the blank at the end of the program. Which expression correctly completes the blank?
amtPaid * item1 + item2 + item3
amtPaid – total
item1 + item2 + item3 – amtPaid
total – amtPaid
44. Multiple Choice
30 seconds
1 pt
Ben wrote the following psuedocode: 1) Select a random number between 1-10 2) Store as "firstNumber" 3) Select a random number between 1-10 4) Store as "secondNumber" 5) Multiply the "firstNumber" and "secondNumber" together 6) Store the answer as ____________ If "firstNumber" selected is equal to 7, and "secondNumber" selected is equal to 9, then "Result" is equal to 63. What would fill in the blank
9*7
firstNumber and secondNumber
63
Result
45. Multiple Choice
30 seconds
1 pt
Consider the recipe below:1. Heat oven to 350 2. Mix all 20 ingredients 3. Pour ingredients into dish 4. Place dish in Oven 5. Remove after 30 minWhich instruction in this algorithm would be considered a loop structure?
1
2
3
4
46. Multiple Choice
30 seconds
1 pt
Consider the following code: The instruction code shown is an example of a high-level:
programming
Computer
language
Machine
language
Assembly
language
47. Multiple Choice
30 seconds
1 pt
Horatio is interested in computer programming languages, but he has very little experience in using them. Which type of programming language should he explore because it is easier to learn, use, read, and modify?
Application
High-level
Assembly
Machine
48. Multiple Choice
30 seconds
1 pt
Using short informal phrases to describe program functions (such as "if total is more than 10, add discount") is called:
pseudocode
flow charts
formatting
logical
thinking
49. Multiple Choice
30 seconds
1 pt
Which term describes a set of instructions that lists steps that must be followed in a particular order, starting at the beginning and continuing to the end?
* Compiled
Interpreted
* Assembly
* Sequential
50. Multiple Choice
30 seconds
1 pt
Which type of programming is designed by breaking problems into smaller, logical problems to make them easier to execute?
Functional
Scripting
Object-oriented
Structured
51. Multiple Choice
30 seconds
1 pt
Which term describes the testing method used by programmers to work through program code by hand using a pencil and paper?
Desk checking
Error testing
Real-time testing
Syntax checking
52. Multiple Choice
30 seconds
1 pt
Which term describes the various characteristics of an object, such as size, color and type?
Class
Property
Argument
Method
53. Multiple Choice
30 seconds
1 pt
Aaron would like to create a program that allows the user to find the average of five numbers. He has asked for your help. Below is the pseudocode Aaron has written: Enter five numbers Add the numbers entered Multiply the sum of the numbers entered by 5 Display the result After examining the code, you determine that:
the
program needs to multiply the five numbers entered, not add
the
program needs to provide the five numbers to the user
the program needs to divide the sum of the
numbers entered by 5, not multiply
the
program will provide the correct answer
54. Multiple Choice
30 seconds
1 pt
Which of the following is used to store data in the computer’s memory that the computer can access and use when running a program?
Data
Variable
Object-oriented
Structured
55. Multiple Choice
30 seconds
1 pt
What is the term for a graphical diagram that uses symbols to represent the steps contained in a program?
Flow chart
Pseudocode
Graph
Brainstorming
56. Multiple Choice
30 seconds
1 pt
Which control structure repeats a set of instructions until some condition is met?
Loop
Sequence
Object
Selective
57. Multiple Choice
30 seconds
1 pt
Which type of programming error causes a program to stop loading or executing?
Syntax
Runtime
Logic
System
58. Multiple Choice
30 seconds
1 pt
What enables a programmer to determine the order in which instructions are executed, as well as the number of times (or even if) an instruction is executed?
Logic structures
Program
flow
Control structures
Program
syntax
59. Multiple Choice
30 seconds
1 pt
Which term is also used to describe the loop control structure?
Iteration
Object
Selection
Sequence
60. Multiple Choice
30 seconds
1 pt
Which term is also used to describe the selection control structure?
Sequence
Decision
Object
Loop
61. Multiple Choice
30 seconds
1 pt
Which variable data type is used to store a whole number that does not contain a decimal?