







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!








The robotics team has created a solid design that can physically accomplish all of their tasks for competition. Now they must create the program that will control the robot. The code could be massive, and be difficult for them to write and for the computer to execute. They decide to break problems into smaller, logical problems to make them easier to execute. Which type of programming is this? - Structured The set of rules that must be followed when writing program instructions for a specific programming language is called: - syntax. Mario has begun learning a programming language. He thought that he would write the code in plain English. However, programming languages require that he learn and follow a special set of rules referred to as: - syntax. 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: - a computer program. A set of instructions that tells a computer what to do to accomplish a particular task is called: - a computer program. Charles is stuck. He knows that computers use zeros and ones in a sequence to represent data, but he cannot remember the name of this term. His teacher reminds him that it is referred to as: - binary. 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: - a byte. 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: - base 2 Rosie has created a computer program, tested it and made revisions. To grade it, her professor runs it and watches the code. What is it called when the computer performs the instructions contained in the program? - Executing Olivia thinks that her first program code is quite good and that it will run well. She is surprised to learn that the computer, however, is not able to understand the language her code is written in, without first translating it. What is the only language that a computer can understand without needing to be translated? - Machine 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? - High-level language Anne decides to learn Javascript. This language 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. To do this, it must use a(n): - interpreter Ravi is programming in C++. This type of language is translated entirely into machine language before use. What type of language is Ravi programming in? - Compiled Anna is asked to explain the differences between compiled and interpreted languages in her programming class. Which statement would be her best response? - Compiled languages usually execute faster than interpreted languages. Consider the following code: turnRight (); for (var count = 0; count < 5; count++) { moveForward (); } The instruction code shown is an example of high-level: - programming language. Which term is used to describe the use of zeroes and ones in a sequence to represent data? - Binary Which term describes a series of zeros and ones that represent the basic unit of data that a computer processes? - Byte Binary is based on which number system? - Base 2 When a computer is performing the instructions contained in a program, it is called: - executing. What is the only language that a computer can understand? - Machine 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? - High-level 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? - Interpreter Which type of language is translated entirely into machine language before use? - Compiled
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? - Use logic to plan a solution. Tori and her team have completed the initial programming for a new school lunch account tracking system. They have set up a "fake" school lunch line and are having several people input information in the system to see if there are any bugs in the program. Which problem-solving activity did the team complete with their "fake" cafeteria? - Test the plan. Mr. Simmons asks the class to create an algorithm to find out if each number on a list is odd or even. Peter creates a flowchart to help visualize his algorithm. The first step is to select a number from the list. What is the next logical step to solve the problem? - Divide the selected number by two. During testing, your development team identified some problems in the first program draft. What is the next step you need to complete? - Use logic to plan a solution. Consider the general problem-solving steps shown:
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? - Identify and understand the problem. Isabella and her team are creating a program for their group project. They have a plan and can talk their way through the algorithm. They decide to use a graphical diagram that uses symbols to represent the steps. What is this diagram called? - Flowchart Using short informal phrases to describe program functions (such as "if total is more than 10, add discount") is called: - pseudocode. Devising a plan to solve a problem or perform a task using a set of step-by-step instructions is called: - writing an algorithm. What is the first step for creating an algorithm to solve a problem? - Identify and understand the problem. 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 = Answer: Tara has one more ticket than Dean. Which term describes the instructions presented in this example? - Algorithm Which of the following best defines the term "algorithm"? - A set of step-by-step instructions to solve a problem or perform a task What is the term for a graphical diagram that uses symbols to represent the steps contained in a program? - Flow chart 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 divide the sum of the numbers entered by 5, not multiply. Start---> Select a number from the list -->______________--> Is the answer a whole number --> yes--> it is an even number or no--> it is an odd number This flowchart provides steps for determining whether a number is even or odd. Which statement should be inserted in the empty rectangle to correctly determine the solution?
Zuri has tried to run her program, but an error has occurred. She looks closely at her code and realizes that there are several misspelled instructions. What type of error did Zuri's spelling mistakes create? - Syntax The program that Nina and her team have been working on has run its initial test. A few unexpected errors occurred. The team now needs to identify the causes of these errors and make corrections to the program so that it performs the way it was intended. This process is known as: - Debugging Melissa is testing a new video game for her roommate. She is playing the game and gets to the door at the end of the first level. As she opens the door, the game just stops running. What is most likely causing the game to stop? - A runtime error Sebastian has created a program that calculates shipping cost. For every pound of product, the customer should be charged $1.00. When he tests the program with a product that weighs 5 pounds, the shipping cost is calculated to $20. What type of error has occurred that produces the unexpected results? - Logic Which type of programming error causes a program to stop loading or executing? - Runtime Which term describes the testing method used by programmers to work through program code by hand using a pencil and paper? - Desk checking Which type of error occurs when a programmer misspells a word or instruction? - Syntax 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 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 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? - Logic You are creating a computer program that calculates the total cost of an item after sales tax has been added. You have been testing the program using a cost of $10.00 and 10% sales tax. You know that the answer should be $11.00, but the program returns an answer of $9.00. Which type of error is most likely causing this unexpected result? - Logic
Salena is now in her second year as a programmer. She knows that she can determine the order in which instructions are executed, as well as the number of times (or even if) an instruction is executed. What is the term for this? - Control structures Jackson is creating a program that asks users four random questions. The question list is 20 questions long. He wants the program to ask the first random question, remove it from the list, and then ask another, remove it and repeat until only four questions are asked. Which control structure is Jackson using? - Loop 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? - Iteration Lucy is sharing her program with a student at another school. She is having a video conference with the student and shows a section of code that she is working on. Lucy describes it as the decision control structure. The other student is confused. What other name can this structure be called? - Selection Mrs. Kresowski is demonstrating a type of programming to her class. Her program requires only ten steps. She explains that every step must be followed in order and that no steps may be skipped. She shows the errors that will occur if the order is mixed or steps are skipped. This type of programming structure is known as: - sequence Julia is asked to teach a new student about programming control structures. The first thing she does is explain that there are three main control structures, which are: - sequence, selection and loop. Consider the following:
Which control structure will execute an instruction only after the computer evaluates conditions to determine if a certain condition exists? - Selection Which type of statement is an example of a selection programming structure? - if/else Consider the following pseudocode: Form a group of players in a room1.
Charles is coding a role-playing game. He has created code that asks a player for their name and assigns it to the "name" variable. Charles assigns the first value for the variable as Player 1 until a player inputs their information. What is the term for assigning this value for the "name" variable? - Initializing 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? - Variable 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? - Initializing Consider the following pseudocode: Generate a random number between 1 and 10 and store it as first Number. Generate a random number between 1 and 10 and store it as second Number. Multiply the first Number by second Number and store it as Result.Ask "What is first Number * second Number?"Display answer box and wait 5 seconds. If answer is equal to ______ say "Good job! Let's try another." Wait 2 seconds. Then return to step one. else say "Incorrect. Let's try another." Wait 2 seconds. Then return to step one.Repeat 10 times. If first Number is 8 and second Number is 10, what code should be inserted into the blank area? - Result The program that Mauricio is creating to track his allowance, must store and access variables in the form of dollars and cents. Which variable data type should he use to store numbers that contain a decimal? - Floating point Romina wants to input whole numbers (that do not contain a decimal) into variables in the inventory program she is coding. What variable data type should she use? - Integer Chris must use a Boolean operator in his programming class assignment. Which operator is an example of a Boolean operator? - && Mason is programming a robot that will use a sensor to follow a black line on a white floor. Which type of expression will he use for the black or white sensor that will return results in the value of either true or false? - Boolean Which variable data type is used to store a whole number that does not contain a decimal? - Integer 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? - Floating point Which operator is an example of a Boolean operator? - ||
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? - Instances