EXAM 1 Flashcards

1
Q

Hardware

A

The physical components of a computer

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

Main Memory

A

Storage locations that are directly accessible by the processor(AKA Primary Storage)

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

Binary

A

A number system only using 0’s and 1’s

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

Syntax Error

A

Incorrect lines of code in a program

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

Binary Digit(bit)

A

The smallest unit of data a compute can process and store (0’s and 1’s)

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

Software

A

Instructions that tell a computer what to do

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

Secondary Storage

A

long term storage component of a computer, such as hard disk drives or solid state NVRAM

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

System.out

A

Refers to an object, used to display output to the computer console

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

Logic Error

A

a bug causing a program to run incorrectly, but not cause the program to crash

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

Byte

A

a unit of data that Is 8 binary digits (0’s and 1’s) long

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

CPU

A

Central Processing Unit, carries out the processing of the computers systems and apps

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

Machine Code

A

low level machine code written in binary and hexidecimal digits

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

Pseudo Code

A

readable description of what a program or algorithm should do

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

Algorithm

A

A set of instructions designed to complete a task

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

Word

A

a unit of data of a defined bit length that can be addressed and moved between storage and the computer processor.

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

Variable

A

a named container for a specific type of data (string, bits, double, int, float …)

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

Scope

A

The area in a computer program that a variable can be recognized an used (variables cannot be used outside of the method they are initiated in)

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

reserved words

A

words that cannot be used as variable names, classes, or methods (boolean, byte, abstract, char, class …)

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

character

A

a data type that is used to store a single character ( always use single quotes ‘’ to store a char)

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

comment

A

notes readable by the user but ignored by the compiler (/**/, //)

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

primitive type variable

A

a primitive variable’s information is stored as the value of that variable ( boolean, byte, short, int, long, float double)

22
Q

Declaration

A

A method by which a variable is given a name and a value in Java

23
Q

static and instance methods

A

Instance- methods that require an object of it’s class to be created before it can be called
Static- methods that do not require an object of it’s class to be created before it can be called

24
Q

Integer

A

Data type used for referencing whole numbers in java

25
Q

String

A

an object that represents a sequence of character values

26
Q

assignment

A

using the ‘=’ sign to declare a value to a variable

27
Q

reference type variable

A

store the addresses of objects, not the actual value of the object

28
Q

variable initialization

A

Specifying an initial value to give to a variable

29
Q

identifiers

A

names of variables (cannot be reserved words, cannot start with numbers or signs, no spaces)

30
Q

floating point numbers

A

data type that contains decimal parts, stores using 4 bytes

31
Q

literal

A

any constant value that can be assigned to a variable

32
Q

expression

A

a construct made up of variables, operators, and methods

33
Q

Public Interface

A

an interface in Java is a blueprint of a behavior. A Java interface contains static constants and abstract methods.

34
Q

return values

A

the result of a functions execution

35
Q

expressions

A

a structure consisting of variables, operators, and method calls, all arranged according to the programming language syntax, and returning a single value

36
Q

increment/decrement

A

Increment- “++” used to add one to a variable. ++x adds one before it is used and x++ adds one after its used
Decrement- “–” used to subtract one from a variable

37
Q

method

A

a block of code that, when called, performs specific actions mentioned in it. (print, println, Math.sqrt)

38
Q

void

A

keyword telling compiler that a function will not be returning any values after execution

39
Q

assignment operators

A

symbols used for performing specific tasks in java

40
Q

String input

A

allows you to assign a name to a string expression

41
Q

method arguments

A

the actual values that are passed when a method is used

42
Q

package

A

a mechanism for storing java classes

43
Q

magic number

A

A Magic Number in Java refers to a numeric value that appears directly in the code without any explanation of its meaning. It lacks context and clarity, making the Java code harder to understand and maintain. Its better to give a number a name and type before using it again.

44
Q

Class Scanner

A

a class used to receive user input

45
Q

If statement

A

a statement used to specify a block of code to be executed, if a condition is true

46
Q

if/ else

A

a conditional statement that allows you to specify multiple conditions to be evaluated in a sequence.

47
Q

cascading IF statements

A

placing an if statement inside of another if/ else if statement

48
Q

relational If operators

A

== tests if 2 values are equal
string.equals() tests if 2 strings are identical

49
Q

Logical operatros or connectors

A

&& for 2 conditions to be true “||” for one of or both of 2 conditions to be true

50
Q
A