AP Computer Science A

0.0(0)
studied byStudied by 1 person
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/61

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

62 Terms

1
New cards

accessor method

a method that accesses an object but does not change it

actual parameter - the expression supplied for a formal parameter of a method by the caller

2
New cards

address

a location in memory at which a binary number (usually a byte, or value of 8 bits) is stored. The location in memory can itself be identified by a binary number - this number, the absolute or explicit address, gives the absolute location of the address in memory, while a relative address specifies a location memory (some other address only in relation to the current, or base, address. All access to memory is access to to a cell of memory found at a specified address.

3
New cards

algorithm

a well-ordered collection of unambiguous and effectively computable operations that, when executed, produces a result and halts in a finite amount of time

[[an unambiguous, executable, and terminating specification of a way to solve a problem

4
New cards

argument

an actual parameter in a method call, or one of the values combined by an operator]]

arithmetic/Logic Unit (ALU)

5
New cards

ASCII

The American Standard Code for Information Exchange - a character-encoding scheme based on the English alphabet used to represent text in computers. It uses 8 bits to represent each character, so it is able to encode a total of 2^8 = 256 different characters. These are assigned the integer values 0 to 255. Only 32 to 126 have been assigned to printable characters. The ASCII has been largely supplanted by UNICODE and the UCS (universal character set), which are backwards compatible with it (commonly encoded using UTF-8, UTF-16, and UTF-32 representing character sets using 8, 16, and 32 bits respectively. UTF-16 can represent 65,536 characters.)

6
New cards

binary

the binary, or the base-2, positional numbering system represents numerical values using only two symbols, 0 and 1

7
New cards

bit

a contraction of binary digit; the smallest unit of information, having two possible values: 0 and 1. A data element consisting of n bits has 2ⁿ possible

8
New cards

boolean

a data type with two possible value representing true and false.

9
New cards

boolean expression

an expression in a programming language that produces a boolean value when evaluated, i.e., true or false

10
New cards

boolean operator

an operator that can be applied to Boolean values. Java has 3 boolean, or logical, operators: &&, ||, and !.

11
New cards

byte

a number made up of 8 bits. Essentially, all currently manufactured computers use a byte as the smallest unit of storage in memory

12
New cards

cache memory

a special, super-high-speed memory unit. Operating on the principle of locality, which says that when the computer uses something it will probably use it again very soon, when the computer references a piece of data for the first time, it stores that data in cache memory, and when it needs to fetch a piece of information, it first looks in cache memory before performing a memory fetch. Since accessing cache memory is so much faster (typically 5 to 10 times faster) than accessing RAM, it is still faster to access cache memory first and then look in RAM if the data is not found (the cache hit rate tells us just how much faster).

13
New cards

cast

Explicitly converting a value from one type to a different type

14
New cards

class

a programmer defined data type, may be a blueprint or template for creating an object

15
New cards

computer

the study of algorithms, including their formal and mathematical properties, their hardware realizations, their linguistic realizations, and their applications

16
New cards

constructor

A set of statements for initializing a newly instantiated variable

17
New cards

control unit

Unit within the computer that actually carries out the operations of a program. the control unit does three things: fetches from memory the next instruction to be executed, decodes it, and executes it by issuing the appropriate command to the ALU, memory, or I/O controllers. It halts when the last instruction in the program is reached.

18
New cards

encapsulation

The hiding of implementation details

19
New cards

explicit parameter

A parameter of a method other than the object on which the method is invoked

20
New cards

flops

floating-point operations per second

21
New cards

formal parameter

a variable in a method definition; it is initialized with an actual parameter value when the method is called

22
New cards

gigabyte

1 billion bytes. In binary, technically 2^30 bytes, or 1 073 741 824 bytes

23
New cards

I/0 buffer

memory stored in the I/O controller for transfer between RAM and an I/O device (such as characters from memory to a screen, or from a mass storage device to memory).

24
New cards

I/O controller

a device that handles the details of input/output and compensates for any speed differences between I/O devices and other parts of the computer. Contains a small amount of memory, called an I/O buffer, and enough I/O control and logic processing capability to handle the mechanical functions of the I/O device, such as the read-write head, paper feed mechanism, and screen display. It is also able to transmit to the processor a special hardware signal, called an interrupt signal, when an I/O operation is done.

25
New cards

IDE

Integrated development environment, such as Eclipse:

A software application that provides comprehensive facilities to computer programmers for software development. An IDE normally consists of:

- a source code editor

- a compiler and/or an interpreter

- build automation tools

- a debugger

26
New cards

implicit parameter

The object on which a method is invoked. For example, in g.play(), the object g is the implicit parameter of the method play.

27
New cards

initialize

to set a variable to a well-defined value when it is created. int x = 0; initializes the variable x with a value of 0.

28
New cards

instance

(of a class, an object whose type is that class)

29
New cards

instance variable

a variable defined in a class for which every object of the class has its own value.

30
New cards

instantiation

construction of an object of a given class

31
New cards

instruction set

All of the machine-language commands that a particular CPU is designed to understand.

32
New cards

kilobyte

1000 bytes, technically 2^10, or 1024 bytes in binary

33
New cards

local variable

a variable whose scope is a block (it can only be accessed within that block)

34
New cards

logic gate

A logic gate is an idealized or physical device implementing a Boolean function, that is, it performs a logical operation on one or more logic inputs and produces a single logic output. Depending on the context, the term may refer to an ideal logic gate, one that has for instance zero rise time and unlimited fan-out, or it may refer to a non-ideal physical device.

35
New cards

loop

a sequence of instructions that is executed repeatedly

36
New cards

machine language

instructions that can be executed directly by the CPU

37
New cards

mass storage

nonvolatile means of storing information. There are two distinct forms: direct access storage devices (DASDs) and sequential access storage devices (SASDs). These devices can store a great deal of memory and, because they are nonvolatile, do not require a power source in order to persist. They are used for archival storage, and for storage of information that is not needed immediately by the computer.

38
New cards

megabyte

a million bytes, technically 2^20, or 1 048 576 bytes

39
New cards

memory

the fundamental unit of a computer that stores and retrieves the instructions and the data being executed.

Random access memory has the following 3 characteristics:

1. Memory is divided into fixed-size units called cells, and each cell is associated with a unique identifier called an address. These addresses are the unsigned integers 0, 1, 2, ... , MAX.

2. All accesses to memory are to a specified address, and we must always fetch or store a complete cell - that is, all the bits in that cell. The cell is the minimum unit of access.

The time it takes to fetch or store the contents of a cell is the same for all the cells in memory.

40
New cards

memory registers

the two registers used to implement the fetch and store operations. Fetch and store operations require two operands, the address of the cell being accessed and either the value being stored by the store operation or the value returned by the fetch operation.

41
New cards

Memory Address Register (MAR)

holds the address of the cell to be fetched or stored. Because the MAR must be capable of holding any address, it must be at least N bits wide, where 2^N is the address space of the computer.

42
New cards

Memory Data Register (MDR)

contains the data value being fetched or stored. Typically a multiple of 8 bits, since it it is used to hold the data to be fetched or stored and all data must be stored in cells that are 8 bits wide.

43
New cards

method

a sequence of statements that has a name, may have formal parameters, and may return a value. A method can be invoked any number of times, with different values for its parameters.

method signature - the name of a method and the type of its parameters

44
New cards

mutator method

a method that changes the state of its objects, as opposed to an accessor method

45
New cards

object

a value of a class type

46
New cards

object reference

a value that denotes the location of an object in memory. In Java, a variable whose type is a class contains a reference to an object of this class.

47
New cards

object-oriented programming

designing a program by discovering objects, their properties, and their relationships

48
New cards

parameter

an item of information that is specified to a method when the method is called. For example, in the call System.out.println("Hello, World!"), the parameters are the implicit parameter System.out and the explicit parameter "Hello, World!".

49
New cards

parameter passing

specifying expressions to be actual parameter values for a method when it is called.

50
New cards

primitive data type

a data type structured by Java to hold a single data item (Integer, character, floating point, true/false, long)

51
New cards

pseudocode

a high-level description of the actions of a program or algorithm, using a mixture of English and informal programming language syntax

52
New cards

Random Access Memory

RAM, electronic circuits in a computer that can store code and data of running programs. random access is the ability to access any value directly without having to read the values preceding it.

53
New cards

register

a storage cell that holds the operands of an arithmetic operation and that, when the operation is complete, holds its results.

54
New cards

scope

the part of a program in which a variable is defined

55
New cards

software

(computer science) written programs or procedures or rules and associated documentation pertaining to the operation of a computer system and that are stored in read/write memory

56
New cards

stored program concept

central characteristic of Von Neumann Architecture and the design of all modern computers, in which the instructions to be executed by the computer are represented as binary values and stored in memory

57
New cards

syntax

rules that define how to form instructions in a particular programming language

58
New cards

terabyte

1 trillion bytes - in binary actually 1099511627776, or 2^40 bytes

59
New cards

transistor

the elementary building block of all modern computers. A solid-state device with no moving parts that can be in either an on or off state. Transistors, along with electrical conducting paths to them, are printed photographically on a wafer of silicon to produce an integrated circuit, or chip (currently about 1 billion transistors can be printed in a space of 1 sq cm)

60
New cards

truth table

a mathematical table used to compute the functional values of logical expressions on each possible combination of their logical variables. Often the variables used are 0s and 1s but they may be Ts and Fs as well

61
New cards

Von Neumann architecture

Theoretical model for nearly all modern computers. Such computers are composed of four major subsystems (memory, input/output, the ALU or arithmetic/logic unit, and the control unit), the stored program concept (in which the instructions to be executed by the computer are represented as binary values and stored in memory), and the sequential execution of instructions (in which one instruction at a time is fetched from memory and passed to the control unit, where it is decoded and executed).

62
New cards

white space

any sequence of only space, tab, and newline characters