CS-150 SDSU FINAL EXAM | Quizlet

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/75

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

76 Terms

1
New cards

Computer Program

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

2
New cards

Hardware

The collective physical computer and peripheral devices

3
New cards

Software

The programs the computer executes

4
New cards

Central Processing Unit (CPU)

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

5
New cards

Primary Storage

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

6
New cards

Secondary Storage

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

7
New cards

Networks

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

8
New cards

High-Level Programming Languages

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

9
New cards

Compiler

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

10
New cards

Applets

Java code that can be located anywhere in the Internet

11
New cards

Library

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

12
New cards

Java Virtual Machine (JVM)

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

13
New cards

Integrated Development Environment (IDE)

A place where one can write and test programs.

14
New cards

Editor

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

15
New cards

Class

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

16
New cards

Method

Contains a collection of programming instructions that describe how to carry out a particular task. Every Java application must have a main method. It's a named collection of statements that are grouped together to perform an operation.

17
New cards

Argument

Any values the method needs to carry out its task.

18
New cards

String

A sequence of characters enclosed in quotation marks

19
New cards

Compile-Time Error

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

20
New cards

Run-Time Error

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

21
New cards

Exception

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

22
New cards

Pseudocode

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

23
New cards

Algorithm

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

24
New cards

Variable

A storage location in a computer program with a name.

25
New cards

Floating-Point Numbers

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

26
New cards

Assignment Statement

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

27
New cards

Magic Number

A numeric constant that appears in your code without explanation

28
New cards

Expression

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

Ex. (a + b) / 2

29
New cards

Modulus (% operator)

Also known as the "remainder operator". It executes the division operator but stores the remainder value.

30
New cards

Cast

An operator that converts number types to another number type.

31
New cards

Prompt

A message that tells the user which input is expected.

32
New cards

Package

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

33
New cards

Application Programming Interface (API)

Documentation that lists the classes and methods of the Java library

34
New cards

Immutable/ constant

Once it is created, it can never be changed.

35
New cards

Primitive variable

Variable that holds a value. Lowercase types.

Ex. double, int.

Uses == to compare.

36
New cards

Wrapper variable

Holds value of its memory location. Uppercase types.

Ex. Integer, Double

Uses .equals() to compare.

37
New cards

String literals

Character sequences enclosed in DOUBLE quotes, such as "Harry".

38
New cards

Concatenation

The + operator used to put strings together to yield a longer string

39
New cards

Escape Sequence

Sequences that utilize the "backslash" or \

40
New cards

Character

A value of the type char. They have numeric values.

Ex. 'H' is encoded as 72. Can only hold exactly one character.

41
New cards

Character literals

Character sequences enclosed in SINGLE quotes, such as 'w'.

42
New cards

Relational Operators

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

43
New cards

"Nested" Statements

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.)

44
New cards

Boolean Operator

Combine conditions like && (and) and || (or).

45
New cards

boolean type

a type with only two possible values: true or false.

46
New cards

Loop

A statement that executes instructions repeatedly while a condition is true

47
New cards

Arguments (Actual Parameters)

Values that are supplied when a method is called

48
New cards

Return Value

The result that the method computes

49
New cards

Black Box

A term used by engineers for a device with a given specification but unknown implementation.

50
New cards

Parameter Variables (Formal Parameters)

Variables that are declared for each argument. They hold the arguments supplied in the method call.

51
New cards

Return statement

A statement that terminates a method call and yields the method result

52
New cards

Void method

A return type that indicates that a method does not return a value.

53
New cards

Scope

The part of the program in which a variable is visible

54
New cards

Local Variable

A variable that is defined within a method

55
New cards

Recursive Method

A method that calls itself.

56
New cards

Array

A list that collects a sequence of values of the same type.

57
New cards

Two Dimensional Array (Matrix)

An arrangement consisting of rows and columns of values

58
New cards

Bounds Error

An error which occurs if you supply an invalid array index, which can cause a program to terminate.

59
New cards

Array Reference

A reference that specifies the location of an array. Copying the reference yields a second reference to the same array

60
New cards

Linear Search (Sequential Search)

A search that inspects elements in a sequence until a match is found

61
New cards

Array List

A list that stores a sequence of values whose size can change as values are added

62
New cards

Wrapper Classes

Classes that collect numbers in array lists.

63
New cards

Auto-Boxing

Automatic conversion between primitive types and the corresponding wrapper class.

64
New cards

Literals

The source code representation of a fixed value; they are represented directly in your code without requiring computation Ex. boolean result = true;

boolean: is the data type

true: is the literal

65
New cards

Primitive Types

Special data types built into the language; they are not objects created from a class. Java has four families of them: 1. Integers

2. Floating-point numbers

3. Characters

4. True/false values called boolean.

66
New cards

Two's Complement

The negative of a binary number represented by switching all ones to zeros and all zeros to ones, then adding one to the result.

67
New cards

byte

8-bits!!! It is useful for saving memory in large arrays, where the memory saving actually matters.

RANGE: -128 minimum to 127 maximum (inclusive)

DEFAULT VALUE: 0

68
New cards

short

A 16-bit type. Like byte, you can use this to save memory in large arrays.

RANGE: -32,768 minimum to 32,767 maximum (inclusive). DEFAULT VALUE: 0

69
New cards

int

A 32-bit type.

RANGE: -2^31 (-2 billion) minimum to 2^31 - 1 maximum (-2 billion(inclusive). DEFAULT VALUE: 0

70
New cards

long

A 64-bit (8 bytes) type. Largest range of values.

DEFAULT VALUE: 0L

71
New cards

float

a single-precision 32-bit (4 bytes) floating point type. Used for precise types like currency.

DEFAULT VALUE: 0.0f

72
New cards

double

a double-precision 64-bit (8 bytes) floating point type. Default choice for decimal values.

73
New cards

char

A single 16-bit (2 bytes) Unicode character

74
New cards

Decimal Number System

A number system based off of base 10. These are still integers. Don't start thinking about decimal points!

75
New cards

parse

Converts a primitive type into a String.

76
New cards

En progreso (1)

Comenzaste a estudiar estos términos. ¡Sigue así!