Computer Programming Fundamentals Review

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

1/64

flashcard set

Earn XP

Description and Tags

Flashcards covering key vocabulary and concepts from Chapter 1, 2, and 3 review questions and exercises, including computer hardware, software, programming fundamentals, Python basics, and decision structures.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

65 Terms

1
New cards

Program

A set of instructions that a computer follows to perform a task.

2
New cards

Hardware

The physical devices that a computer is made of.

3
New cards

CPU (Central Processing Unit)

The part of a computer that runs programs and processes all instructions.

4
New cards

Microprocessor

Small chips that today's CPUs are known as.

5
New cards

Main Memory

Where the computer stores a program while it is running, as well as the data that the program is working with.

6
New cards

Volatile Memory

Memory used only for temporary storage while a program is running.

7
New cards

RAM (Random Access Memory)

A volatile type of memory used for temporary storage while a program is running; also known as main memory.

8
New cards

Secondary Storage

A type of memory that can hold data for long periods of time, even when there is no power to the computer.

9
New cards

Input Device

A component that collects data from people or other devices and sends it to the computer.

10
New cards

Output Device

A component that displays data to people or sends it to other devices, such as a video display.

11
New cards

Byte

Enough memory to store a letter of the alphabet or a small number, made up of eight bits.

12
New cards

Bit

The smallest unit of information in a computer; represents a value of 1 when 'on' and 0 when 'off'.

13
New cards

Binary Numbering System

A system where all numeric values are written as sequences of 0s and 1s.

14
New cards

ASCII

A set of 128 numeric codes that represent English letters, various punctuation marks, and other characters.

15
New cards

Unicode

An extensive encoding scheme that can represent characters for many languages in the world.

16
New cards

Two’s Complement

The technique used to encode negative numbers in a computer.

17
New cards

Floating Point

The technique used to encode real (decimal) numbers in a computer.

18
New cards

Pixels

The tiny dots of color that digital images are composed of.

19
New cards

Machine Language Program

A program composed of a stream of binary numbers, which is the only language a CPU understands.

20
New cards

Decode (Fetch-Decode-Execute Cycle)

The part of the CPU cycle where the CPU determines which operation it should perform.

21
New cards

Assembler

A program that translates an assembly language program to a machine language program.

22
New cards

Keywords

The words that make up a high-level programming language.

23
New cards

Syntax

The rules that must be followed when writing a program.

24
New cards

Compiler

A program that translates an entire high-level language program into a separate machine language program before execution.

25
New cards

Interpreter

A program that translates and executes instructions in a high-level language one line at a time.

26
New cards

Operating System

Software that controls internal operations of hardware (e.g., Windows, Linux, Android, iOS, macOS).

27
New cards

Application Software

Programs designed for specific tasks (e.g., word processors, spreadsheets, email, browsers, games).

28
New cards

Digital Device

A device that works with binary data.

29
New cards

Mnemonics

Short words used in assembly language.

30
New cards

Guido van Rossum

The creator of the Python programming language.

31
New cards

BDFL ('Benevolent Dictator For Life')

Title given to Guido van Rossum as Python’s creator and long-time leader.

32
New cards

Logic Error

An error that does not prevent a program from running but causes it to produce incorrect results.

33
New cards

Software Requirement

A single function that a program must perform to satisfy the customer.

34
New cards

Algorithm

A set of well-defined logical steps that must be taken to perform a task.

35
New cards

Pseudocode

An informal language that has no syntax rules and is not meant to be compiled or executed, used to describe program logic.

36
New cards

Flowchart

A diagram that graphically depicts the steps that take place in a program.

37
New cards

String

A sequence of characters.

38
New cards

Variable

A name that references a value in the computer’s memory.

39
New cards

User

Any hypothetical person using a program and providing input for it.

40
New cards

String Literal (Python)

A sequence of characters enclosed in either single-quotes or double-quotes.

41
New cards

Comments

Short notes placed in different parts of a program explaining how those parts of the program work, beginning with '#' in Python.

42
New cards

Assignment Statement

A statement that makes a variable reference a value in the computer’s memory.

43
New cards

Operands

The values on the right and left of an operator in an expression (e.g., 12 and 7 in 12 + 7).

44
New cards

Integer Division Operator (//)

Performs division and returns only the integer part (discards the fractional part).

45
New cards

Exponentiation Operator (**)

Raises a number to a power.

46
New cards

Modulo Operator (%)

Performs division but returns the remainder instead of the quotient.

47
New cards

Float Data Type

A data type used for numbers that contain a decimal point.

48
New cards

Input() Function

A built-in Python function used to read input that has been typed on the keyboard.

49
New cards

Float() Function

A built-in Python function used to convert a value to a float data type.

50
New cards

Magic Number

An unexplained, hard-coded value that appears in a program’s code; problematic because it reduces readability and makes maintenance harder.

51
New cards

Named Constant

A name that represents a value that does not change during the program’s execution, improving readability and making updates easier.

52
New cards

Operator Precedence

The rules determining the order in which operators in a math expression are evaluated (e.g., multiplication/division before addition/subtraction).

53
New cards

Decision Structure

A control structure that executes a set of statements only under certain circumstances based on a condition.

54
New cards

Single Alternative Decision Structure

A decision structure that provides one alternative path of execution if a condition is true.

55
New cards

Boolean Expression

An expression that has a value of either True or False.

56
New cards

Relational Operators

Symbols used to compare two values, such as >, <, and ==.

57
New cards

Dual Alternative Decision Structure

A decision structure that tests a condition and then takes one path if the condition is true, or another if false.

58
New cards

If Statement

A statement used to write a single alternative decision structure in Python.

59
New cards

If-Else Statement

A statement used to write a dual alternative decision structure in Python.

60
New cards

Logical Operators

Operators used to combine Boolean expressions, including 'and', 'or', and 'not'.

61
New cards

And Operator

A logical operator that makes a compound Boolean expression true only if both subexpressions are true.

62
New cards

Or Operator

A logical operator that makes a compound Boolean expression true if either subexpression is true.

63
New cards

Not Operator

A logical operator that takes a Boolean expression and reverses its logical value.

64
New cards

Flag

A Boolean variable (True/False) that signals when some condition exists or has occurred in a program.

65
New cards

Conditionally Executed Statements

Statements that run only when a specific condition is true.

Explore top flashcards

World Lit Midterm
Updated 1046d ago
flashcards Flashcards (25)
Vývinovka
Updated 506d ago
flashcards Flashcards (66)
Units 1-12 of Vocab
Updated 1052d ago
flashcards Flashcards (240)
BIO Final 2023
Updated 692d ago
flashcards Flashcards (159)
Chapter 2
Updated 777d ago
flashcards Flashcards (30)
World Lit Midterm
Updated 1046d ago
flashcards Flashcards (25)
Vývinovka
Updated 506d ago
flashcards Flashcards (66)
Units 1-12 of Vocab
Updated 1052d ago
flashcards Flashcards (240)
BIO Final 2023
Updated 692d ago
flashcards Flashcards (159)
Chapter 2
Updated 777d ago
flashcards Flashcards (30)