Consider the following pseudo-code: Show
Form a group of players 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 Logic error Consider the following example: Set student to 0 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". 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. 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 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. 6.5: Else If the player token lands on "lose a 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. 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 Looping Consider the following example: Set student to 0 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: Answer: Cassidy has one more token than Sierra. Algorithm Consider the following instructions: Move Forward 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 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 An algorithm Which of the following is an example of a selection structure? if/else Consider the following example: Set student to 0 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 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.
|