Which term describes a set of step by step instructions that must be executed in order to solve a problem or perform a task?

Consider the following pseudo-code:

Form a group of players
While players is greater than 1
Point to a player and say "eenie"
Point to the next player and say "meenie"
Point to the next player and say "minie"
Point to the next player and say "moe. Time for you to go!"
Decrease players by 1
End while

Which line of code is executed when the number of players reaches 1?

Line 8

Michelle works as a contractor for Gamer Geniuses, Inc., a company that creates educational games for children ages 3-10 years old. She has just completed coding the multiplication level of the game and sent it to her manager for review. Her manager, Robert, tests the game and finds that when he inputs the correct answer for the math problem: 2 x 3 an error pops up as the timer counts down until the player loses. Robert looks at the programming scripts Michelle wrote and finds an error in the code below.

When spacebar is pressed
Say "what is 2 x 3?"
If answer = 6,
Then say "awww, the answer is wrong?"
Wait 2 seconds
Repeat, Say "Try again"
Until answer = 6
If timer = 0,
Then broadcast "you lose!"
What type of programming error is this multiplication problem?

Logic error

Consider the following example:

Set student to 0
For each pair of students in class, add two to student
Continue until all students in class are counted
Display student

What type of error is present in this algorithm that will produce unexpected results depending on the number that the user inputs?

Logic error

Zachary and his team have outlined the basic pseudocode and flowchart of the introductory scene, but there seems to be a bug in the algorithm. Why should Zachary even bother with fixing the pseudocode when he can simply fix the bug in the game?

The figure is showing the flowchart of the introductory scene. Click Start if space bar pressed. If Condition is No, then command says "say: press enter to skip game introduction", then program will End, else if Condition is Yes, then command says "Introductory Scene pops up".
Figure A

Outlining and correcting in pseudocode allows Zachary to focus on the logic of the algorithm and make the necessary changes needed before physically coding it.

Your boss has asked you to create a program that calculates the total cost of an item after a discount and sales tax have been applied. You have been testing the program using a cost of $10.00, a discount of 50%, and 10% sales tax. You know the answer should be $5.50 but the program returns $16.50. What type of error is most likely causing the problem?

Logic error

Allison has been asked to create an algorithm that can be used to calculate the area of a rectangle. Review the following algorithm:

Step 1: Measure the length of the rectangle and store result as length.
Step 2: Measure the width of the rectangle and store result as width.
Step 3:
Step 4: Display area of the rectangle.
Which task would Allison's algorithm need to perform in Step 3?

Multiply length by width.

Which term describes a set of step-by-step instructions executed in order to solve a problem or perform a task?

Algorithm

Consider the following example:

Count the numbers in the list
Add the numbers in the list
Divide the sum of the numbers by the amount of numbers listed
The result is the _______
Which problem is this algorithm used to solve?

Determine the average of the listed numbers.

Chris has created the following pseudo-code to model the program flow for a virtual multiplayer board game.

1. Begin player turn.
2. Spin 6 number randomizer.
3. Move player token the number of spaces on the path shown on the randomizer.
4. If the player token lands on "return to beginning"
then move player token to beginning.
5. Else if the player token lands on "spin again"
then begin player's turn again.
6. Else
Display message on path
7. End player's turn.
What line of pseudocode should be added if the path included a space for "lose a turn"?

6.5: Else If the player token lands on "lose a turn"
then player skips next turn

Which term describes a graphical diagram of the steps or decision process contained in an algorithm?

Flow chart

Which type of error can be difficult to identify, because the program still runs but does not do what you expect it to do?

Logic error

Consider the following list of problem-solving steps:

The figure shows the problem-solving steps as 1.create and execute the solution, 2. identify and understand the problem, 3. test and refine the solution, 4. plan a solution to the problem.
Figure A

Which option displays the problem-solving steps in the correct order?

2, 4, 1, 3

Which member of the game design team writes the step-by-step computer instructions, or code, required to create games?

Programmer

Andres loves video games and wants a career as a game designer. He does not know where to begin. He asks advice from an uncle who works in the game industry. His uncle recommends a series of steps to evaluate each possible path (formal education, internships, self-study) and then decide which is the best fit. Andres follows his uncle's evaluation steps (price, time, effectiveness, etc). Upon completion, Andres feels comfortable deciding what the best path for him to realize his dream. What did Andres' uncle recommend to solve the problem?

He used an algorithm to help Andres find a solution.

Your testing group has given you a list of suggestions and issues to help refine your game prototype. Your team has identified the issues and brainstormed solution ideas. Which step in the design process should your team complete next?

Create and execute the solution

Dave has volunteered at his company to create an ice-breaker event for the new employees. He begins the event with "Robot makes the perfect hot chocolate." In this activity, the new hires are to write step-by-step instructions for a robot to make the perfect hot chocolate. Which of the following algorithms could a robot perform accurately with the least amount of error?

Pour 4oz of milk and 4oz of water into a microwave safe cup, microwave the cup with the liquid for 1 minute to heat, sprinkle the cocoa powder to the milk and water mixture, stir until the powder is dissolved in the liquid, finally add the marshmallows to garnish your drink.

Consider the following instructions for a game element:

Move Forward
Repeat Move Forward
10 times
This is an example of which type of programming structure?

Looping

Consider the following example:

Set student to 0
For each pair of students in class, add two to student
Continue until all students in class are counted
Display student

Which of the following scenarios would cause an error?

Three students in class

Consider the following example:

Problem: Cassidy has 15 tokens. Sierra has 10 tokens. Cassidy gives Sierra 2 tokens. How many more tokens does Cassidy have than Sierra?

Solution:
Cassidy's tokens: 15
Subtract 2 tokens from Cassidy's total tokens:
15 - 2 = 13
Sierra's tokens: 10
Add 2 tokens to Sierra's tokens:
10 + 2 = 12
Subtract Cassidy's total tokens from Sierra's total tokens:
13 - 12 =1

Answer: Cassidy has one more token than Sierra.
Which term describes the step-by-step instructions that appear under "Solution" under the example above?

Algorithm

Consider the following instructions:

Move Forward
Repeat Move Forward
10 times
Which two types of programming structures are included in this example?

Sequential and looping

Fusion Games Company needs to hire more game developers (programmers) to work on their newest, largest game in development. Which of the following is the most important qualification should they look for in potential applicants for the open jobs?

Experience in writing programming code in a variety of languages.

Which statement correctly defines "iteration"?

A repetition of a process

Patricia completed the animation for her game character and is looking to program an efficient algorithm for the character's movement and interaction with another element. Consider the code below:

Repeat move forward 5 steps
If not touching Sprite 2, then
Move 5 steps
Else, say "You Loose" for 3 seconds

Which programming structure is displayed in Patricia's game?

Iteration and selection

What should a game programmer do to ensure that a game is able to execute as quickly a possible?

Create the most efficient algorithms

Consider the following example:

Set student to 0
For each student in class, add one to student
Continue until all students in class are counted
Display student
Which term describes this example?

An algorithm

Which of the following is an example of a selection structure?

if/else

Consider the following example:

Set student to 0
For each pair of students in class, add two to student
Continue until all students in class are counted
Display student

Which change should you make to this example to correctly calculate the number of students in class?

Before Line 3, add: "If one student remains, then add one to student".

Consider the following instructions for a game element:

Move Forward
If not at end, move forward
Else stop
This is an example of which type of programming structure?

Selection

The marvelous attribute about the gaming industry is that you can create a game in several different programming languages to make it more appealing to novice and advanced-level coders. Yet, the unique distinction is that every single programming language has its own ____________?

syntax

In order to write a successful algorithm, you must first be able to:

solve the problem manually.

Alexandra wants to create a math game in which users have to correctly answer mathematical problems. She wants the game to solve a randomly created problem and then indicate if the player's answers are correct or incorrect. How is Alexandra getting the program to solve mathematical problems?

She is writing an algorithm for computers to follow a series of step-by-step instructions to solve equations.

What do you call the step by step method that a computer uses to complete each task?

A program is a set of step-by-step instructions that directs the computer to do the tasks you want it to do and produce the results you want.

Which term describes a set of instructions that lists steps that must be followed in a particular order?

syntax. The set of rules that must be followed when writing program instructions for a specific programming language is called: Structured.

What is correct order in programming process?

There are usually three stages to writing a program: Coding. Compiling. Debugging.

Which program translates a series of instructions executes them and then translates the next series until the program is fully executed?

A compiler does the translation all at once. It produces a complete machine language program that can then be executed. An interpreter, on the other hand, just translates one instruction at a time, and then executes that instruction immediately.