test b
base 2
Basic mathematics taught in elementary school is a base 10 number system (which makes it easy if you are using your fingers). Computers use a different number system, known as:
a byte
Computers organize the zeros and ones that represent an instruction into a series of eight pieces. This series of eight ones or zeros is known as
algorithim
Consider the following example: Problem: Tara has 15 tickets. Dean has 10 tickets. Tara gives Dean 2 tickets. How many more tickets does Tara have than Dean? Solution: Tara's tickets: 15 Subtract 2 tickets from Tara's total tickets: 15- 2 = 13 Dean 's tickets: 10 Add 2 tickets to Dean's tickets: 10 + 2 = 12 Subtract Tara's total tickets from Dean's total tickets: 13 - 12 =1 Answer: Tara has one more ticket than Dean.
4213
Consider the general problem-solving steps shown: The figure shows the general problem-solving steps which are not in the correct order. 1: Create the procedures needed to execute the solution, 2: Use logic to plan a solution to the problem, 3:Test and refine the solution, and 4: Identify and understand the problem Figure A: General problem-solving steps Which option lists the problem-solving steps in the correct order?
Infinite loop
Consider the loop control structure in programming. Which term describes a loop that continues repeating without a terminating (ending) condition?
Sequential
Elsa is programming a robot to move from her front door to her room. The robot will not be remote controlled and does not have any sensors to "see" its environment. She must program the robot with clear movements that start at her front door, then move down the hall, then turn into her room and finally stop. Which term describes this program?
instances
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?
Identify/Understand the Problem
Felix and his team are given a mission to create a program that finds the average age (in the total number of days, not years) of the students at their school. What should be their first step for creating an algorithm to solve a problem?
high-level language
Haruto is a high school student who has never taken a programming course. He wants a programming language that is easy to learn, that contains English words and phrases, as well as easily recognized symbols. The counselor recommends a Javascript course. What type of programming language is this?
sequential
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:
a computer program.
Julia has an idea. She wants to use a computer to create a list of daily "to-do" suggestions based on the previous activity on her calendar. To create this, she needs to develop a set of instructions to tell the computer what to-do to accomplish this task. This is known as:
An event handler
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?
Iteration
Luigi has created a program for a game that has a "monster" character appear from a "cave" in the middle of the screen, move randomly off the edge of the screen and then reappear in the cave. It repeats while the game is played. What is another term for this loop control structure?
Use logic to plan a solution.
Mr. Garcia taught Matilda the general problem solving steps to find solutions, and expects her to use them. Matilda has identified some problems in the first draft of her programming final project. What is the next step she would need to complete to find a solution?
A set of step-by-step instructions to solve a problem or perform a task
Question 8 : Which of the following best defines the term "algorithm"?
Variable
Sylvia creates a program that asks and stores a user's name. It then displays the user's name every time there is a new prompt for the user to complete. What is used to store the name in the computer's memory that the computer can access and manipulate, when running Sylvia's program?
Pseudocode
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?
floating point
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?
runtime error
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?
Control structures
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?
Debugging
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?
loop
Which control structure repeats a set of instructions until some condition is met?
interpreter
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?
Objects created using the same class must contain the same properties; however, the properties may contain different values.
Which statement is true about objects?
desk checking
Which term describes the testing method used by programmers to work through program code by hand using a pencil and paper?
property
Which term describes the various characteristics of an object, such as size, color and type?
Iteration
Which term is also used to describe the loop control structure?
Binary
Which term is used to describe the use of zeroes and ones in a sequence to represent data?
runtime
Which type of programming error causes a program to stop loading or executing?
Integer
Which variable data type is used to store a whole number that does not contain a decimal?