EXAM 1 Flashcards

(50 cards)

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
String
an object that represents a sequence of character values
26
assignment
using the '=' sign to declare a value to a variable
27
reference type variable
store the addresses of objects, not the actual value of the object
28
variable initialization
Specifying an initial value to give to a variable
29
identifiers
names of variables (cannot be reserved words, cannot start with numbers or signs, no spaces)
30
floating point numbers
data type that contains decimal parts, stores using 4 bytes
31
literal
any constant value that can be assigned to a variable
32
expression
a construct made up of variables, operators, and methods
33
Public Interface
an interface in Java is a blueprint of a behavior. A Java interface contains static constants and abstract methods.
34
return values
the result of a functions execution
35
expressions
a structure consisting of variables, operators, and method calls, all arranged according to the programming language syntax, and returning a single value
36
increment/decrement
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
method
a block of code that, when called, performs specific actions mentioned in it. (print, println, Math.sqrt)
38
void
keyword telling compiler that a function will not be returning any values after execution
39
assignment operators
symbols used for performing specific tasks in java
40
String input
allows you to assign a name to a string expression
41
method arguments
the actual values that are passed when a method is used
42
package
a mechanism for storing java classes
43
magic number
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
Class Scanner
a class used to receive user input
45
If statement
a statement used to specify a block of code to be executed, if a condition is true
46
if/ else
a conditional statement that allows you to specify multiple conditions to be evaluated in a sequence.
47
cascading IF statements
placing an if statement inside of another if/ else if statement
48
relational If operators
== tests if 2 values are equal string.equals() tests if 2 strings are identical
49
Logical operatros or connectors
&& for 2 conditions to be true "||" for one of or both of 2 conditions to be true
50