Unit 3 - Methods Vocabulary Flashcards

1
Q

Modular

A

To divide and conquer a complex problem. The idea of dividing and conquering breaks down a larger task into smaller and easier components.

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

Constant

A

A variable that is assigned to a value that cannot be changed (eg: Math.sqrt). Capital letters are used to help others define the constants.

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. Final is 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. Static is used for global variables above the main method

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

Method

A

A block of code that performs a specific task when it is called. They help with the organization of your code. Methods are often known as sub-programs.

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

Java API

A

Java Application Programming Interface. A collection of pre-written classes, interfaces that help programmers build applications more conveniently and efficiently.

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

Parameter

A

A parameter is a variable that is passed inside a method to pass data in the method’s heading (receives). For example: (String name, int age).

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

Argument

A

A value that is passed to a method when you call it (sends). For example: (“Sally”, 16).

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

Scope

A

The scope refers to the access range of the variable. Some variables might have a local scope (only accessible in a certain method) or global scope (accessible throughout the whole code and can be reused).

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

Casting

A

Converts a variable from one data type to another. For example: (int), (double)

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

Enumeration

A

A data type that allows a variable to hold a set of predefined constants. A list of constants that gives numbers to names.

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

Concatenation

A

Joins two or more strings to form a single string. You can use the + operator or concat() method.

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

Stack

A

A data structure that follows the LIFO (Last-In, First-Out) principle. The LIFO principle states that any element added to the stack is the first one to be removed.

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