COP2253 Zybooks Chapter Six Flashcards

1
Q

method

A

a grouping of predefined statements for repeatedly used operations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

method definition

A

consists of the new method’s name and a block of statements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

method call

A

an invocation of a method’s name, causing the method’s statements to execute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

block

A

a list of statements surrounded by braces

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

method’s must be defined within a:

A

class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

public

A

the method may be called from any class in the program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

static

A

the method only uses values that are passed to the method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

parameter

A

a method input specified in a method definition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

argument

A

a value provided to a method’s parameter during a method call

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

parameters are assigned with argument values by:

A

position

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

return statement

A

used by a method to return one value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

void

A

the method does not return any value (and cannot be used within an expression)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

modular development

A

the process of dividing a program into separate modules that can be developed and tested separately and then integrated into a single program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

incremental development

A

the process in which a programmer writes, compiles, and tests a small amount of code, then a small amount more, and so on.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

method stub

A

a method definition whose statements have not yet been written

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

unit testing

A

the process of individually testing a small part or unit of a program, typically a method

17
Q

testbench

A

a separate program whose sole purpose it to check that a method return correct output values for a variety of input values

18
Q

test vector

A

a unique set of input values used to test a program

19
Q

the scope of a variable declared inside a method is limited to:

A

that method

20
Q

field (or class member variable)

A

a variable declared within a class but outside any method

21
Q

method overloading (or method name overloading)

A

when a program has two methods with the same name but differing in the number or types of parameters

22
Q

documentation

A

a written description of a program and its various parts, intended to be read by programmers who must maintain or interface with the program

23
Q

Javadoc

A

a tool that parses specially formatted multi-line comments to generate program documentation in HTML format

24
Q

doc comments

A

begin with /** and end with */

25
Q

block tags

A

a tag in the form @keyword