Comp Prog Java 24-25 Master Flashcards LHS

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/48

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.

49 Terms

1
New cards

1st Generation Computers

Used vacuum tubes.

2
New cards

2nd Generation Computers

Used transistors.

3
New cards

3rd Generation Computers

Used integrated circuits.

4
New cards

4th Generation Computers

Used microprocessors.

5
New cards

Bits

The binary unit; 2^N possible numbers with N bits.

6
New cards

Logic Gates

Building blocks of CPU used to perform logical operations.

7
New cards

AND Gate

Both inputs must be one for output to be one.

8
New cards

OR Gate

One or the other input needs to be one for output to be one.

9
New cards

NAND Gate

Universal gate that is the opposite of AND gate.

10
New cards

NOR Gate

Universal gate that is the opposite of OR gate.

11
New cards

XOR Gate

Outputs 0 if both inputs are the same, otherwise outputs 1.

12
New cards

Binary

The base 2 number system that computers use to understand code.

13
New cards

Hexadecimal

The base 16 number system.

14
New cards

Algorithm

A step by step list of instructions to solve a problem.

15
New cards

Compiler

Translates code to machine language ahead of time for faster execution.

16
New cards

Interpreter

Converts high-level language to machine language line by line.

17
New cards

Syntax Error

An easy-to-find bug due to typos or mistakes in language rules.

18
New cards

Semantic Error

An error in the sequence of instructions; common and hardest to find.

19
New cards

Runtime Error

An error found when running the code after compilation.

20
New cards

Comments in Code

Lines in code that do not affect execution, meant for notes.

21
New cards

Variables

Names that refer to objects or values in programming.

22
New cards

Data Types

Every object in Python has a specific type.

23
New cards

Float

A data type representing a number with a decimal point.

24
New cards

Type Function

A function that finds the type of a given object.

25
New cards

Parse Error

A syntax error occurring in the line preceding the error.

26
New cards

Global Variables

Variables defined outside of any function; can be accessed globally.

27
New cards

Local Variables

Variables defined within a function; do not affect global variables.

28
New cards

Accumulator Pattern

A programming pattern used to iteratively calculate a value.

29
New cards

Boolean

A data type representing true or false.

30
New cards

Conditional Statements

Use of if, elif, else for decision making in programming.

31
New cards

While Loop

A loop that continues as long as a specified boolean condition is true.

32
New cards

String Concatenation

Combining strings with the + operator.

33
New cards

Repetition Operator

The * operator used to repeat strings.

34
New cards

Indexing in Strings

Accessing specific characters in a string using their index.

35
New cards

Length Function

A function that returns the number of characters in a string.

36
New cards

String Methods

Functions that perform operations on strings without changing the original object.

37
New cards

String Comparison

Using booleans to compare strings based on alphabetical order.

38
New cards

Strings are Immutable

Characters in a string cannot be changed or reassigned.

39
New cards

Format Method

Used to insert variables into strings and format them appropriately.

40
New cards

Machine Language

The lowest-level programming language, consisting of binary code that a computer's CPU can directly execute.

41
New cards

High-Level Language

A programming language that is user-friendly and abstracts away the details of the computer's hardware.

42
New cards

Source Code

The original code written by a programmer in a high-level language before it is compiled or interpreted.

43
New cards

Object Code

The machine code output of a compiler, ready for execution by the computer.

44
New cards

Debugging

The process of identifying and fixing bugs or errors in a program.

45
New cards

Version Control

A system that records changes to a file or set of files over time so that you can recall specific versions.

46
New cards

Library

A collection of pre-written code that can be reused in a program to perform common tasks.

47
New cards

Framework

A platform for building software applications that provides a foundation for development.

48
New cards

Software Development Life Cycle (SDLC)

A framework defining tasks performed at each step in the software development process.

49
New cards

API (Application Programming Interface)

A set of rules that allows one piece of software to interact with another.