midterm 1 Flashcards

1
Q

Computer Program

A

A sequence of instructions and decisions that tells a computer, in minute detail, how to fulfill a task.

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

Hardware

A

The collective physical computer and peripheral devices

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

Software

A

The programs the computer executes

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

Central Processing Unit (CPU)

A

Located at the heart of the computer, it performs program control and data processing.

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

Primary Storage

A

Storage made from memory chips—electronic circuits that can store data,
provided they are supplied with electric power.

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

Secondary Storage

A

usually a hard disk, it provides slower and less expensive storage that persists without electricity.

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

Networks

A

An entity of interconnected computers that allow a computer to read data and
programs from central storage locations or send data to other computers.

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

High-Level Programming Languages

A

Languages that specify the actions that a program should carry out.

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

Compiler

A

Translates the high-level instructions into more detailed instructions required by the
CPU.

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

Applets

A

Java code that can be located anywhere in the Internet.

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

Library

A

A collection of information that makes it possible to write portable programs that can
bypass proprietary operating systems. Java has a very large library

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

Java Virtual Machine (JVM)

A

A program that simulates a real CPU. Java programs are distributed as instructions for a virtual machine, making them platform-independent.

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

Integrated Development Environment (IDE):

A

A place where one can write and test programs.Integrated Development Environment (IDE): A place where one can write and test programs.

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

editor

A

A program that functions like a word processor made for entering and modifying text, such as a Java program

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

Class

A

The fundamental building blocks of Java programs; the class name must be the same as the file name and vice versa.

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

Method

A

Contains a collection of programming instructions that describe how to carry out a
particular task. Every Java application must have a main method.

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

argument

A

Any values the method needs to carry out its task.

18
Q

string

A

A sequence of characters enclosed in quotation marks
- java Strings are immutable or constant. Once it is created, it can never be changed. o - Strings are NOT primitive types. String variables hold references to Strings, not the
actual character values. That means that two String variables can refer to the same, actual String object.

19
Q

Compile-Time Error

A

Also known as a syntax error, it is a violation of the programming rules that is detected by the compiler

20
Q

Run-Time Error

A

An error that causes a program to take an action that the programmer did not
intend. Sometimes called logic errors.

21
Q

Exception

A

A run-time error so severe that the JVM sends an error message.
Ex.System.out.println(1 / 0);ERROR: “Division by Zero”

22
Q

Pseudocode

A

An informal description of a sequence of steps for solving a problem.

23
Q

Algorithm

A

A sequence of steps that is ambiguous, executable, and terminating.

24
Q

variable

A

A storage location in a computer program with a name.

25
Q

floating point numbers

A

A number type in Java that allows for fractional parts (such as in the number 0.335). The most commonly used type for floating-point numbers in Java is called double.

26
Q

assignment statement

A

Stores a new value in a variable, replacing a previously stored value. o However, the reserved word “final” indicates that the value cannot be modified.

27
Q

magic number

A

A numeric constant that appears in your code without explanation.

28
Q

expression

A

The combination of variables, literals, operators, and/or method calls

29
Q

modulus (mod)

A

The “%” operator, also known as the “remainder operator”. It executes the division
operator but stores the remainder value.

30
Q

cast

A

an operator that converts number types to another number type.

31
Q

prompt

A

A message that tells the user which input is expected.

32
Q

PACKAGE

A

A collection of classes with a related purpose. All classes in the Java library are contained in packages.

33
Q

Application Programming Interface (API)

A

Documentation that lists the classes and methods of the Java library.

34
Q

string literals

A

Character sequences enclosed in double quotes, such as “Harry”.

35
Q

concatenation

A

The + operator used to concatenate strings, that is, to put them together to yield a longer string.

36
Q

escape sequence

A

Sequences that utilize the “backslash” or \

37
Q

characters

A

‘h’ A value of the type char. Characters have numeric values.

38
Q

character literals

A

Character sequences enclosed in single quotes, such as ‘Harry’.

39
Q

relational operators

A

Operators that compare two values. (i.e. <, >, ==, >=, !=)

40
Q

nested statement

A

When a statement is inside of another statement (e.g. an if statement within an if statement, a loop within a loop, or an if statement within a loop, etc.), it’s described as nested.

41
Q

boolean operator

A

An operator that combines Boolean conditions.
o The Boolean type “boolean” has two values, false and true.
o Java has some Boolean operators that combine conditions like && (and) and || (or).