Ucertify 5, 6, 7

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Kiera is writing the code for a new video game. She is creating a character who waves to other characters. Every time the game player says "hello" to the character (by pressing the "H" key), the character waves back. The code to make the character wave is very long, so Kiera decides to name the segment of code WAVE. Now every time she needs the wave series of code she simply inputs WAVE. What has Kiera created?

A function

You have written a segment of code that includes the instructions to make a character jump. Your program will need to use these instructions multiple times. To save yourself the trouble of writing the code over and over again, you decide to name this section of code JUMP and then call the section of code using only the name JUMP. What type of programming component is JUMP?

A function

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

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

Consider the following example:Which term describes the instructions presented in this example?

Algorithm

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?

An event handler

Omar is creating a video game. He wants his character to jump when the spacebar is pressed. Which programming component should Omar use to tell the program what to do when the spacebar is pressed?

An event handler

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.

Your teacher has asked you to find the average of a list of numbers. You have determined that the first step is to add the list of numbers. What is the next logical step needed to solve the problem?

Count the number of items in the list.

Mr. Silverman and his class cannot use the computer lab at the moment. He hands the students the print-out of the programming code from their current projects and then has them work through their code with a pencil. What task are the students performing?

Desk checking

Study the flow chart shown: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?

Divide the number by 2

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?

Identify and understand the problem.

Emily is designing a game using object-oriented programming. She has created a "fish" class. She has used this class to build one, big, red fish and one, small, blue fish. Which term describes the red fish that Emily built using the "fish" class?

Instance

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

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?

Loop

What is the only language that a computer can understand?

Machine

Which statement is true about objects?

Objects created using the same class must contain the same properties; however, the properties may contain different values.

Which term describes the various characteristics of an object, such as size, color and type?

Property

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

Which control structure will execute an instruction only after the computer evaluates conditions to determine if a certain condition exists?

Selection

Paige has coded the introduction for her new video game. The program is a set of codes that the computer follows one by one from top to bottom without player input. Which type of control structure is this?

Sequence

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?

Sequential

A set of instructions that tells a computer what to do to accomplish a particular task is called:

a computer program.

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.

Timson wants to create a loop control structure for a thermostat program. He wants the temperature to be set at 72 degrees Fahrenheit when the motion sensors in the building sense movement. What type of statement should be used for this loop?

do while

Which type of statement is an example of a selection programming structure?

if/else

Sean does not understand the relationships between objects, values, properties and classes. His technology teacher explains:

objects created using the same class must contain the same properties; however, the properties may contain different values.

Consider the following code:The instruction code shown is an example of high-level:

programming language.

Carrie is using object-oriented programming to code her latest video game. In the game, she has objects that are little monsters. Each is unique in their own way (size, color, etc.). To create each of these unique looking objects, she needs to change the:

properties

Horatio has an idea for the program he would like to use as his final project. Before he starts coding, he wants to write out the algorithm using short informal phrases to describe the program steps (such as SalesTax= 0.006 or Output Results) to see how the code should be structured. This is known as:

pseudocode.

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.


संबंधित स्टडी सेट्स

PHS 112: Physical Science II Test 2

View Set

Rikki-tikki-tavi Study Guide Review, Rikki Tikki Tavi Vocab Combo

View Set

Unit 2 Exam - Demand, Supply, and Prices

View Set