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
Q

fall-through behavior

A

when cases are automatically treated as matches

26
Q

conditional operator

A

operators that are determined based on conditions of a value

27
Q

conjunction

A

(AND)

28
Q

disjunction

A

(OR)

29
Q

negation

A

(NOT)

30
Q

conditional operator

A

|| (OR)

31
Q

conditional AND operator

A

&& used to combine nested conditions

32
Q

short circuit evaluation

A

Both conditions need to be true in order for something to go through

33
Q

arithmetic compound assignment operator

A

operators that includes the += and -= (plus-get and minus-get)

34
Q

increment

A

++

35
Q

decrement operator

A

36
Q

postfix form

A

int x = 3; int y = 8; x++; // same as x += 1; y–; // same as y -= 1; System.out.println(x + “ “ + y); // 4 7

37
Q

prefix form

A

++x and –y

38
Q

follows

A

postfix form would…

38
Q

precede

A

prefix form would…

38
Q
A
39
Q
A
39
Q
A
39
Q
A
39
Q
A
39
Q
A
39
Q
A
40
Q
A
40
Q
A
40
Q
A
40
Q
A
40
Q
A
40
Q
A
41
Q
A
41
Q
A
41
Q
A
42
Q

syntactic sugar

A

The increment and decrement operators, compound assignment operators, and the ternary if-else operator are all examples of this

43
Q
A
44
Q
A
45
Q
A
46
Q
A
47
Q
A