Test 1 Flashcards

(43 cards)

1
Q

Accesor Method

A

gets a value from a specified location

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

OS

A

operating system

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

Mutator Method

A

sets a value for a given variable

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

Constructor

A

a method type that creates a new object

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

Default constructor

A

called when there is no constructor written, sets all the object’s fields to 0 and all booleans to false

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

Copy Constructor

A

calls a constructor to set the values of the new object to those of another object. Shallow only copies the data’s location, while deep copies the data itself

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

Instance field

A

Data which an instance method uses and acts upon

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

Class

A

contains a program

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

Object

A

a set of data which is acted upon

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

this

A

reference variable used by an object to refer to itself

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

Static Method

A

a program that you put values into and get another value out of

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

De Morgan’s Law

A

!((x >= -3) && (x > 5)) == (x < -3) || (x >= -5)

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

Boolean operators

A

|| && if else if-else

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

Relational operators

A

> , =, <>

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

Data Primitive

A

int, double, float, short, long, boolean

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

Key Word

A

a word or phrase which has a dedicated meaning or process assigned to it

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

Type Cast

A

forces a data type to convert, such as float to int

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

Assignment operator

A

assigns a value to a variable

19
Q

Truncation

A

removes part of a number or lessens the accuracy of a number. Usually occurs when float to int removes numbers left of the decimal

20
Q

Round-off

A

rounding a number?

21
Q

Concatenation of Strings

A

adding two strings together

22
Q

Overloading

A

using the same constructor for many objects

23
Q

Null reference

A

when no values are assigned to a new variable, it is assigned a null

24
Q

Method header line components

A

(public, private, etc)(if static, static)(return type) (argument)

25
Constructor header line components
(public, private) void (name(parameters))
26
Complement operator
opposite operation to a relational operator
27
IEEE Floating point
way of storing floating point numbers. exponent value followed by mantissa
28
Mantissa
number values without the exponent factor
29
exponent
gives the decimal placement value for the mantissa
30
ternary operator
an operator that requires three operators
31
conditional operator
?, replaces an if-else statement (argument)?if true: else
32
bit
a one or a zero in binary
33
nibble
a set of 4 bits
34
byte
a set of 8 bits
35
word
one unit of whatever you are measuring
36
syntax error
an error in the way that a program is phrased
37
logic error
an error in the way that a program runs
38
compiler
converts human readable text to binary
39
algorithm
set of well defined steps for performing an operation
40
program
set of instruction that enable a computer to perform a task
41
Java Byte Code
an intermediate language which then translates into machine language
42
Java Virtual Machine
Program that reads Java byte code instructions and executes them
43
pseudo-code
uses conventions of a programming language to explain a program