Deck 2: Methods

Full screen (f)
exit full mode
Question
Computer programming is part of the software engineering process, which usually involves newer object-oriented design, combined with more traditional methods of algorithm development.
Use Space or
up arrow
down arrow
to flip the card.
Question
Top-down development starts at the top with one concept or big idea, which is then broken down into several parts.
Question
Modular development makes a large project more manageable.
Question
Modular development is slow for large projects.
Question
Modular development does not necessarily lead to a higher-quality product.
Question
Modular development makes it easier to find and correct errors in computer software.
Question
Modular development decreases the reusability of your solutions.
Question
Over time, modular development allows you to build libraries of software modules for different tasks.
Question
All computer programs, from the lowest levels of an operating system that directly control hardware to the most complex user applications, are made up of layers of short programming modules that are constantly reused in different situations.
Question
Often, the hardest part of correcting an error in computer software is finding out exactly what is causing the error.
Question
Objects created for one project cannot be reused by other projects.
Question
Software design begins by writing clear specifications for what the software is supposed to do.
Question
Top-down development and modular design are used from the beginning of the design process and help designers break a complex problem into parts that can be more easily understood.
Question
Software testers must develop a testing plan that examines new software under all possible circumstances.
Question
Once a method has been integration tested and debugged, it can be unit tested.
Question
Alice objects have three kinds of methods.
Question
Primitive methods are encapsulated methods.
Question
In Alice, user-defined methods are encapsulated.
Question
You can use primitive methods and user-defined methods to write new methods of your own.
Question
Primitive methods may be used to build more complex methods, or they may be run directly.
Question
You can run a primitive method directly by right-clicking an object or an object tile in the Object tree, and then selecting the method you want to run from the list that appears.
Question
The first step in creating a new world is to set the scene by opening a template, adding necessary objects, and positioning things.
Question
Alice's programming language has two primitive instructions to make an object jump up and down.
Question
It is much easier to debug software that is written as small modules, each performing an individual task.
Question
Once a method stops running, their values are gone unless they were saved elsewhere.
Question
____ show how separate units are organized to form a single complex entity.

A) Data charts
B) Organizational charts
C) UML diagrams
D) Flowcharts
Question
The process of top-down design leads to ____.

A) reusable code
B) tests for correctness
C) encapsulation
D) modular development
Question
____ makes programming easier because you need to develop the solution to a problem only once; then you can use that code whenever you need it.

A) Encapsulation
B) Concurrency
C) Reusable code
D) Bottom-down design
Question
Object-oriented programming, by its very nature, encourages the development of ____.

A) subprograms
B) assignment statements
C) reusable code
D) functions
Question
Computer programming and software engineering generally follow a four-step process known as the ____, in which developers design, code, test, and debug software.

A) software development cycle
B) modular development cycle
C) object oriented design
D) structured design
Question
____ is a specialized branch of software engineering.

A) Encapsulation
B) Quantification
C) Software testing
D) Tests for correctness
Question
____ measure whether the program meets the original specifications.

A) Tests for correctness
B) User-defined tests
C) Primitive tests
D) Module tests
Question
One of the unique features of Alice is its ____.

A) use of structured programming
B) use of object-oriented programming
C) objects
D) drag-and-drop interface
Question
Logic and control tiles can be found at the bottom of the ____.

A) Tile
B) Editor area
C) File area
D) Details area
Question
A(n) ____ checks to see if the method works as expected all by itself.

A) module test
B) unit test
C) user-defined test
D) integration test
Question
A(n) ____ checks to see if the method works when it is placed into a larger program in combination with other methods.

A) module test
B) unit test
C) user-defined test
D) integration test
Question
A ____ is a short method that simulates the environment in which a newly developed method will be used.

A) test function
B) test module
C) testing shell
D) test unit
Question
____ are built-in, predefined methods that are part of each Alice object.

A) Primitive methods
B) Constructors
C) Instance methods
D) User-defined methods
Question
____ provide simple basic behaviors, such as move, turn, and roll.

A) Primitive methods
B) Constructors
C) Instance methods
D) User-defined methods
Question
____ are written by people who use Alice.

A) Primitive methods
B) Constructors
C) Instance methods
D) User-defined methods
Question
The term ____ implies that the details of a method are hidden from the user; the user cannot see or edit the details of the method.

A) personification
B) concurrency
C) off-camera
D) encapsulation
Question
The term ____ implies that an object cannot be seen on the screen with the camera in its current position.

A) off-camera
B) camera point at
C) camera turn to face
D) camera roll
Question
____ is the practice of writing compound names without using blank spaces, but capitalizing the first letter of each name that forms the compound name.

A) Uppercase
B) CamelCase
C) Lowercase
D) mixedCase
Question
A(n) ____ gives us information about how the method works.

A) method header
B) constructor
C) parameter
D) instance variable
Question
A ____ is a name for a memory location that temporarily stores a value while a method is running.

A) constructor
B) template
C) module
D) variable
Question
____ have data types, just like properties, and they are stored in the memory of the computer, just like properties.

A) Shells
B) Variables
C) Modules
D) Templates
Question
____ are associated with an object, and their values are maintained as long as the object exists.

A) Functions
B) Shells
C) Properties
D) Global variables
Question
____ are associated with a particular method.

A) Variables
B) Shells
C) Properties
D) Global variables
Question
The values of ____ exist only inside the method.

A) variables
B) shells
C) properties
D) tiles
Question
A(n) ____ is a variable whose value is passed from one method to another - just like a baton is passed from one runner to another in a relay race.

A) object
B) module
C) parameter
D) testing shell
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 2: Methods
1
Computer programming is part of the software engineering process, which usually involves newer object-oriented design, combined with more traditional methods of algorithm development.
True
2
Top-down development starts at the top with one concept or big idea, which is then broken down into several parts.
True
3
Modular development makes a large project more manageable.
True
4
Modular development is slow for large projects.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
Modular development does not necessarily lead to a higher-quality product.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
Modular development makes it easier to find and correct errors in computer software.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
Modular development decreases the reusability of your solutions.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
Over time, modular development allows you to build libraries of software modules for different tasks.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
All computer programs, from the lowest levels of an operating system that directly control hardware to the most complex user applications, are made up of layers of short programming modules that are constantly reused in different situations.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
Often, the hardest part of correcting an error in computer software is finding out exactly what is causing the error.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
Objects created for one project cannot be reused by other projects.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
Software design begins by writing clear specifications for what the software is supposed to do.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
Top-down development and modular design are used from the beginning of the design process and help designers break a complex problem into parts that can be more easily understood.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
Software testers must develop a testing plan that examines new software under all possible circumstances.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
Once a method has been integration tested and debugged, it can be unit tested.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
Alice objects have three kinds of methods.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
Primitive methods are encapsulated methods.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
In Alice, user-defined methods are encapsulated.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
You can use primitive methods and user-defined methods to write new methods of your own.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
Primitive methods may be used to build more complex methods, or they may be run directly.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
You can run a primitive method directly by right-clicking an object or an object tile in the Object tree, and then selecting the method you want to run from the list that appears.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
The first step in creating a new world is to set the scene by opening a template, adding necessary objects, and positioning things.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
Alice's programming language has two primitive instructions to make an object jump up and down.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
It is much easier to debug software that is written as small modules, each performing an individual task.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
Once a method stops running, their values are gone unless they were saved elsewhere.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
____ show how separate units are organized to form a single complex entity.

A) Data charts
B) Organizational charts
C) UML diagrams
D) Flowcharts
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
The process of top-down design leads to ____.

A) reusable code
B) tests for correctness
C) encapsulation
D) modular development
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
____ makes programming easier because you need to develop the solution to a problem only once; then you can use that code whenever you need it.

A) Encapsulation
B) Concurrency
C) Reusable code
D) Bottom-down design
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
Object-oriented programming, by its very nature, encourages the development of ____.

A) subprograms
B) assignment statements
C) reusable code
D) functions
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
Computer programming and software engineering generally follow a four-step process known as the ____, in which developers design, code, test, and debug software.

A) software development cycle
B) modular development cycle
C) object oriented design
D) structured design
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
____ is a specialized branch of software engineering.

A) Encapsulation
B) Quantification
C) Software testing
D) Tests for correctness
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
____ measure whether the program meets the original specifications.

A) Tests for correctness
B) User-defined tests
C) Primitive tests
D) Module tests
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
One of the unique features of Alice is its ____.

A) use of structured programming
B) use of object-oriented programming
C) objects
D) drag-and-drop interface
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
Logic and control tiles can be found at the bottom of the ____.

A) Tile
B) Editor area
C) File area
D) Details area
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
A(n) ____ checks to see if the method works as expected all by itself.

A) module test
B) unit test
C) user-defined test
D) integration test
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
A(n) ____ checks to see if the method works when it is placed into a larger program in combination with other methods.

A) module test
B) unit test
C) user-defined test
D) integration test
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
A ____ is a short method that simulates the environment in which a newly developed method will be used.

A) test function
B) test module
C) testing shell
D) test unit
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
____ are built-in, predefined methods that are part of each Alice object.

A) Primitive methods
B) Constructors
C) Instance methods
D) User-defined methods
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
____ provide simple basic behaviors, such as move, turn, and roll.

A) Primitive methods
B) Constructors
C) Instance methods
D) User-defined methods
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
____ are written by people who use Alice.

A) Primitive methods
B) Constructors
C) Instance methods
D) User-defined methods
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
The term ____ implies that the details of a method are hidden from the user; the user cannot see or edit the details of the method.

A) personification
B) concurrency
C) off-camera
D) encapsulation
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
42
The term ____ implies that an object cannot be seen on the screen with the camera in its current position.

A) off-camera
B) camera point at
C) camera turn to face
D) camera roll
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
____ is the practice of writing compound names without using blank spaces, but capitalizing the first letter of each name that forms the compound name.

A) Uppercase
B) CamelCase
C) Lowercase
D) mixedCase
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
A(n) ____ gives us information about how the method works.

A) method header
B) constructor
C) parameter
D) instance variable
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
A ____ is a name for a memory location that temporarily stores a value while a method is running.

A) constructor
B) template
C) module
D) variable
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
____ have data types, just like properties, and they are stored in the memory of the computer, just like properties.

A) Shells
B) Variables
C) Modules
D) Templates
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
____ are associated with an object, and their values are maintained as long as the object exists.

A) Functions
B) Shells
C) Properties
D) Global variables
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
____ are associated with a particular method.

A) Variables
B) Shells
C) Properties
D) Global variables
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
The values of ____ exist only inside the method.

A) variables
B) shells
C) properties
D) tiles
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
A(n) ____ is a variable whose value is passed from one method to another - just like a baton is passed from one runner to another in a relay race.

A) object
B) module
C) parameter
D) testing shell
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 50 flashcards in this deck.