CMSC Vocab 4 and 5 Flashcards

1
Q

Helper Method

A

A method that allows a sequence of instructions to be treated as a single unit of work.

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

Modularity

A

Refers to the organization of code into dependent units with sharply defined responsibilities

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

Separation of Concerns

A

Thinking separately about elements of a problem that were logically dependent.

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

header

A

specifics the name of the method and return type

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

body

A

group of statements surrounded by curly braces. It is executed whenever the method is called.

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

access specifiers

A

A keyword that determines where a class member, such as a method, is accessible or visible

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

principle of least privilege

A

Access to code is limited to those parts of an application that actually need it for proper functioning

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

return type

A

The type of value returned a method

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

method parameter

A

A name used by a method for an argument received from its caller.

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

monolithic program

A

is one in which all functionality is packed into a single block of code.

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

conditional executions

A

which enables one or more statements to be executed only if a specified condition holds.

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

decision statements

A

a decision to be executed if a specified condition holds.

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

Boolean expression

A

expressions that evaluate to true or false

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

binary operator

A

applied to exactly two operands

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

unary operators

A

act on a single command

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

tenary operator

A

three way operator

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

relational operator

A

relating pairs of numbers

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

less than operator

A

x < y

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

shallow equality

A

variables referring to the same object

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

deep equality

A

referring to objects in the same state

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

=

A

x = (GETS the value of) 1

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

switch value

A

execute one of several possible statements depending on a particular value.

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

case labels

A

labels to identify case statments

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

all subsequent cases

A

all cases that are followed will be treated as matches

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
fall-through behavior
when cases are automatically treated as matches
26
conditional operator
operators that are determined based on conditions of a value
27
conjunction
(AND)
28
disjunction
(OR)
29
negation
(NOT)
30
conditional operator
|| (OR)
31
conditional AND operator
&& used to combine nested conditions
32
short circuit evaluation
Both conditions need to be true in order for something to go through
33
arithmetic compound assignment operator
operators that includes the += and -= (plus-get and minus-get)
34
increment
++
35
decrement operator
--
36
postfix form
int x = 3; int y = 8; x++; // same as x += 1; y--; // same as y -= 1; System.out.println(x + " " + y); // 4 7
37
prefix form
++x and --y
38
follows
postfix form would...
38
precede
prefix form would...
38
39
39
39
39
39
39
40
40
40
40
40
40
41
41
41
42
syntactic sugar
The increment and decrement operators, compound assignment operators, and the ternary if-else operator are all examples of this
43
44
45
46
47