Computer S1

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Field

A variable is also known as a ____________.

True

An object is an instance of a class. True or false?

False

A flowchart is a useful way to illustrate how your Alice animation's characters will look. True or false?

"is-a"

A subclass has what kind of relationship to a superclass?

True

A textual storyboard helps the reader understand the actions that will take place during the animation. True or false?

Control statements procedure arguments

After each execution of your Alice animation, what element or elements could be adjusted in your code?

False

After objects are positioned in the scene, it is wise to save multiple versions of the project, giving each version the same name. True or false?

False

Alice 3 will periodically remind you to save your project. True or false?

False

An animation gives the scenario a purpose. True or false?

True

An if-else statement executes its first code block if a condition is true, and its second code block if a condition is false, but not both. True or false?

True or false

An if-statement requires which type of information returned from the condition?

False

An instance variable can be saved and accessed later, even if the instance no longer exists. True or false?

Each subclass inherits the methods and properties of its superclass.

From your Alice lessons, what does inheritance mean?

My program is complete when it runs and I've tested the code.

From your Greenfoot lessons, Which of the following statements is most correct?

Quadruped

In Alice, if only objects that walk on four legs need to use a procedure, in which superclass would the procedure be declared?

False

In Alice, new procedures are declared in the Scene editor. True or false?

False

In Alice, the computer specifies the low and high range values for the range of numbers from which to pull a randomized number. True or false?

False

In Alice, there is a limit of 10 objects per scene. True or false?

A problem to solve A task to perform

In Alice, what are the forms of a scenario?

Change size of the object and stretch it along the x, y, and z axes

In Alice, what does the resize handle style do?

The Scene editor

In Alice, where are objects added and positioned in the scene?

The gallery

In Alice, where are objects added and positioned in the scene?

At the instance's center point.

In Alice, where does an instance's axes intersect?

True

In Greenfoot, the Run button repeatedly executes all of the programming statements in the class's act method in sequential order until the pause button is clicked. True or false?

Curly brackets { }

In Greenfoot, the body of the method is located in between which of the following characters?

True

In Greenfoot, the class holds the general attributes of an instance, such as the methods it inherits. True or false?

Integer of steps to move forward

In Greenfoot, the move method expects what type of information in its parameters?

False

In Greenfoot, the origin of the world coordinate system (0,0) starts in the center of the world. True or false?

Degrees to turn

In Greenfoot, the turn method expects what type of information in its parameters?

The instance executes all of the programming statements in their class's act method once.

In Greenfoot, what happens to an instance when the Act button is clicked in the environment?

super

In Greenfoot, which keyword calls the World superclass?

object-name.method-name(parameters);

In Greenfoot, which of the following is the correct notation for calling a method for an instance of a class?

int getRotation() and int getX()

In Greenfoot, which of the following methods display an object's orientation?

World getWorld()

In Greenfoot, which of the following methods return the world that the instance lives in?

Add a video

In Greenfoot, which of the following options are not possible when associating an image file with an instance?

True

In a Greenfoot if-statement, the programming statements that the if-statement executes are written in curly brackets. True or false?

True

In object oriented programming, programmers analyze a problem and create objects to solve the problem. True or false?

True

In reference to Greenfoot, if the following method was defined in a superclass, public void lookForEdge(){ ... } all subclasses of the superclass will inherit the method. True or false?

True

In the Greenfoot IDE, an instance's position is on the x and y coordinates. True or false?

True

In the Greenfoot IDE, any new methods you create are written in the class's source code, below the act method. True or false?

Rotation

Which handle style would be used to rotate an object's sub-part about the x, y, and z axes?

new

Which keyword indicates that Greenfoot needs to create a new object?

Greenfoot.getRandomNumber(10,001)

Which of the following Greenfoot methods returns a random number between 0, up to and including 10,000?

Select the project from the My Projects tab. Browse for the project using the File System tab.

Which of the following are ways to open an existing Alice project file after launching Alice?

>=

Which of the following comparison operators represents "greater than or equal"?

Compilation

Which of the following features of Greenfoot will teach you how to identify bugs in your program?

The code is too long THe code is difficult to read The programmer wants to reuse the code

Which of the following is a reason why procedural abstraction may be used in programming an animation?

move():

Which of the following is an incorrectly written programming statement?

Spin

Which of the following is not an example of a one-shot procedure?

x z w(*) y

Which of the following is one of the positioning axes used in Alice 3?

Do In Order

Which of the following is the default control statement in myFirstMethod?

Fins Two eyes Procedures Functions

Which of the following would a clown fish object in Alice inherit from its class?

Copy to Clipboard

Which option copies a programming instruction to the clipboard?

An instance

You have a Class representing Cat. A cat can meow, purr, catch mice, and so on. When you create a new cat, what is it called?

if

You want a block of code to be executed only once if certain conditions are met. What type of Java construct would you use?

Click and drag the desired programming instruction into the Scene editor.

How do you create a programming instruction in Alice?

View the procedures in the gallery.

How do you view the results of procedures entered in the Alice code editor?

while loop

If you need to repeat a group of Java statements many times, which Java construct should you use?

if

If you want one message to display if a user is below the age of 18 and a different message to display if the user is 18 or older, what type of construct would you use?

False

In Alice, once an instance is added to the scene, it cannot be deleted. True or false?

An object does not have a default procedure for a motion, such as swimming. Multiple objects need to use a motion, such as bunnies hopping A single motion, such as walking, takes up a lot of room in myFirstMethod.

In Alice, which of the following situations could benefit from declaring a new procedure?

True

In Alice, you could identify when new procedures need to be declared by reviewing the textual storyboard for the animation. True or false?

True

In Greenfoot you can use comparison operators to compare a variable to a random number. True or false?

False

In Greenfoot, a semicolon is not necessary at the end of a method that uses dot notation. True or false?

False

In Greenfoot, after a subclass is created and compiled, you cannot edit the subclass's source code. True or false?

Compilation

In Greenfoot, after a subclass is created, what has to occur before instances can be added to the scenario?

True

In Greenfoot, methods can be called in the act method. When the Act button is clicked in the environment, the methods in the method body of the act method are executed. True or false?

False

In Greenfoot, the instance has a source code editor. True or false?

Direction Amount

The Alice move procedure contains which arguments?

True

The Procedures tab and the Functions tab are the two tabs available in the Alice methods panel. True or false?

Evaluate the condition

The first step to executing an if-else statement is to:____________.

A set of code that is referred to by name and a subprogram that acts on data and often returns a value.

The list below contains method descriptions. All are correct except which one?

Has a void return type.

The list below displays characteristics of a Greenfoot world constructor, except for one. Which one should be removed?

Instance creator

The list below displays components of the Greenfoot source code editor except one. Which one should be removed?

Review the online Java Library documentation.

The list below provides actions you can perform in the Greenfoot code editor except one. Which one should be removed?

Edit Code

To access the Alice Code editor from the Scene editor, which button do you click?

The sky and ground

What do moving objects provide to your scene?

Provide the background scenery for the scenario.

What does an instance of the World class do?

Do together

Which Alice control statement executes a set of procedures simultaneously?

True

Breaking down a problem or process into smaller parts makes it easier to manage. True or false?

True

Copying programming instructions saves time when programming your Alice project. True or false?

True

Creating multiple versions of your Alice project saves time. True or false?

True

Debugging is the process of finding bugs in a software program. True or false?

A method

Main is an example of what in the following code? public static void main (String[] args) { System.out.println{"Hello World!"); }

False

Manually manipulating an Alice object with your cursor is a way to precisely position an object. True or false?

True

One type of object property is an object's position in the scene. True or false?

False

Only acting objects have one-shot procedures. True or false?

True

Procedural abstraction may need to be implemented if an object in Alice needs to perform an action, but there isn't an inherited procedure that accomplishes that action. True or false?

True

Programming comments do not affect the functionality of your Alice animation. True or false?

True

Rings will appear around a sub-part indicating how you can reposition it. True or false?

True

Saved Alice projects can be opened and edited. True or false?

False

Using the Greenfoot IDE, only five instances can be added to a scenario. True or false?

If a random number is returned that is less than 6, turn 18 degrees.

What does the following Greenfoot programming statement tell the class to do? if (Greenfoot.getRandomNumber(100) < 6) { turn(18); }

Drag and drop the comments tile above a code segment.

What is the first step to entering comments in an Alice program?

After the scenario is saved

When is an instance created in Alice?

Debug

When something is broken or doesn't work as intended in a software program, it is referred to as a _________?

False

When you disable a programming instruction, it is still executed when you run the Alice animation. True or false?

False

When you edit an object's properties in the Scene editor, the changes do not take effect until the Run button is clicked. True or false?

Flowchart

Which Alice tool is used to demonstrate the process flow of an animation?

File

Which button is selected in the Alice file menu to save a version of an animation?


Kaugnay na mga set ng pag-aaral

Anatomy and Physiology Chapter 17: Digestive System

View Set

Chapter 18: Feeding, Eating, and Elimination Disorders

View Set

Psychology Chapter 8 - Prejudice and Stereotyping

View Set

Cessna 172 Nav III Skyhawk SP (G1000) V Speeds

View Set