Unit 3 - Methods Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

modular

A

a style of programming that involves a module(s) as the structure of a program

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

constant

A

a variable that stays the same and cannot be changed throughout the program (e.g. Math.PI)

all capital letters are used to help others know its a constant

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

final

A

a keyword used for a constant or a method that stays the same throughout the program; used to define a constant

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

static

A

a keyword used to define a value that stays the same throughout the class; for global variables; above main method

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

method

A

a set of instructions that are carried out when it is called; a subprogram

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

Java API

A

Application Programming Interface; already-made class

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

parameter

A

a variable in a method definition; just a placeholder in the brackets

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

argument

A

the value that is sent to the method to process when it is called

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

scope

A

where a particular variable or method is accessible in a program

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

casting

A

converting one data type to another

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

concatenation

A

joining two strings together

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

enumeration

A

giving predefined constants a number value (e.g. JAN = 1; FEB = 2, MAR = 3, APR = 4)

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

stack

A

a data structure that refers to pushing on and/or popping off an item from a program execution; follows LIFO (Last In First Out); a way of storing your methods in the RAM

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