COMP 1125: Introduction to Computers and Programming

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/87

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering computer hardware, memory representation, programming languages, and introductory C++ syntax concepts from COMP 1125.

88 Terms

1
New cards

Computer

A programmable machine that can store, retrieve, and process data by following a set (or sets) of instructions.

2
New cards

Program

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

3
New cards

Software

A set of programs used to perform a task.

4
New cards

Hardware

All of the physical components that comprise a computer.

5
New cards

Central Processing Unit (CPU)

The hardware component responsible for running (or executing) programs, housing the control unit and the arithmetic and logic unit (ALU).

6
New cards

Microprocessor

A modern CPU located on a small chip made of silicon, quartz, and other materials.

7
New cards

Main Memory (RAM)

Fast, expensive, and volatile memory where programs reside while being executed so the CPU can quickly access them.

8
New cards

Secondary Storage

Storage designed to hold data for long periods of time even without power; it is not fast but is cheap (e.g., disk drives, SSDs, flash drives).

9
New cards

Input Device

A physical component that collects data from people or other devices for the computer (e.g., keyboards, mice, touchscreens).

10
New cards

Output Device

A physical component that formats and presents data produced by the computer for people or other devices (e.g., video displays, printers).

11
New cards

System Software

Software that manages the basic operations of the computer and makes it usable, including operating systems, utility programs, and software development tools.

12
New cards

Operating System

The most fundamental set of programs on a computer that controls internal hardware operations, manages connected devices, moves data, and allows programs to run.

13
New cards

Utility Program

System software that enhances computer operations or safeguards data, such as virus scanners, file compression programs, and data backup programs.

14
New cards

Software Development Tools

Programs used to create, modify, and test software, such as assemblers, compilers, and interpreters.

15
New cards

Application Software

Software that makes a computer useful for specific user tasks (e.g., word processors, web browsers, email programs, and games).

16
New cards

Bit

The smallest unit of data in a computer, storing a positive or negative charge represented as a switch set to 11 (on) or 00 (off).

17
New cards

Byte

A unit of storage consisting of 88 bits, which is enough space to store a small number or a single letter.

18
New cards

Two's Complement

A technique for storing negative whole numbers in binary, conceptually utilizing a leading bit to indicate whether a number is positive or negative.

19
New cards

Floating Point Technique

A method used to store fractional numbers (floats) on a computer, conceptually structured as two binary numbers separated by a decimal point.

20
New cards

ASCII

American Standard Code for Information Interchange; a set of 128128 numeric codes used to represent English letters, punctuation marks, and other characters.

21
New cards

Unicode

A character coding scheme created in the 1990s that is compatible with ASCII but uses more bytes to represent characters across various world languages.

22
New cards

Machine Language

The lowest-level computer language written in binary numbers, which is the only language a computer's CPU directly understands.

23
New cards

Assembly

A low-level programming language directly above machine language that uses short mnemonics such as 'add' and 'mul'.

24
New cards

Syntax

The set of rules that must be observed when writing a program in a programming language.

25
New cards

Syntax Error

A mistake in code, such as a misspelled keyword or improper operator usage, that prevents the program from executing.

26
New cards

Source Code

The collection of statements written by a programmer in a high-level programming language.

27
New cards

Compiler

A program that translates source code written in a high-level language into low-level code or machine language for execution.

28
New cards

Pseudocode

A syntax-free mock-up or sketch of a program used in the design phase that is not meant to be executed directly.

29
New cards

Top Down Design

A programming methodology that breaks down a complicated task into smaller and smaller pieces until each piece is manageable.

30
New cards

Preprocessor Directive

A command in C++ starting with a pound sign (e.g., #include <iostream>) that directs the preprocessor to replace the line with external file contents before compilation.

31
New cards

Stream Insertion Operator

The << operator in C++, which takes data or characters and inserts them one by one into an output stream such as cout.

32
New cards

Literal

Any actual, explicit value appearing directly within the source code of a program (e.g., the number 77 or the string literal "Hello, World!").

33
New cards

Variable

A named location that represents and references a value stored in a computer's memory.

34
New cards

Garbage Data

Unpredictable leftover bit patterns from other programs present in a variable's memory address before an explicit value has been assigned.

35
New cards

Magic Number

An unexplained literal value appearing directly in code, which can cause confusion when reading or maintaining the program.

36
New cards

Named Constant

A descriptive name declared with the const keyword representing a specific value that cannot be changed after initialization.

37
New cards

Type Casting

A mechanism for converting or treating a variable or value of one data type as another data type (e.g., static_cast<new_type>(old_value)).

38
New cards

Widening Conversion

The conversion of a value from a smaller data type to a larger data type without loss of data.

39
New cards

Narrowing Conversion

The conversion of a value from a larger data type to a smaller data type, which risks potential loss of data or precision.

40
New cards

Stream Extraction Operator

The >> operator in C++, used alongside the cin object to extract input entered by the user.

41
New cards

Escape Character

A specialized character preceded by a backslash within a string literal (e.g., \n for newline or \" for quotes) that triggers special formatting or output behavior.

42
New cards

Computer

A programmable machine that can store, retrieve, and process data by following a set (or sets) of instructions.

43
New cards

Program

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

44
New cards

Software

A set of programs used to perform a task.

45
New cards

Programmer (Software Developer)

A person who designs, creates, and tests computer programs.

46
New cards

Hardware

The physical components that make up a computer.

47
New cards

Central Processing Unit (CPU)

The hardware component responsible for running (or executing) programs; it houses the control unit and the arithmetic and logic unit (ALU).

48
New cards

Microprocessor

A modern CPU located on a small chip, constructed from materials such as silicon and quartz.

49
New cards

Main Memory (RAM)

Fast, expensive, volatile memory where programs reside while being executed so that the CPU can quickly access them.

50
New cards

Volatile Memory

A type of memory, such as RAM, where data is not stored permanently and is lost when power is turned off.

51
New cards

Secondary Storage

Storage designed to hold data for long periods of time even without power; it is cheap but not fast (e.g., disk drives, SSDs, flash drives).

52
New cards

Input Device

A physical component that collects data from people or other devices (e.g., keyboards, mice, touchscreens, scanners).

53
New cards

Output Device

A physical component that formats and presents data produced by the computer for people or other devices (e.g., video displays, printers).

54
New cards

System Software

Programs that manage the basic operations of the computer and make it usable, comprising Operating Systems, Utility Programs, and Software Development Tools.

55
New cards

Operating System

The most fundamental set of programs on a computer, controlling internal hardware operations, managing connected devices, moving data, and running programs.

56
New cards

Utility Program

A type of system software that enhances computer operations or safeguards data, such as virus scanners, file compression programs, and data backup tools.

57
New cards

Software Development Tools

Programs used to create, modify, and test software, such as assemblers, compilers, and interpreters.

58
New cards

Application Software

Programs that make a computer useful and serve as the software people almost exclusively interact with (e.g., Microsoft Word, web browsers, games).

59
New cards

Bit

A single electrical unit that stores a positive charge ('on', represented by 11) or no charge ('off', represented by 00).

60
New cards

Byte

A unit of digital storage composed of 88 bits, which provides enough space to store a small number or a single letter.

61
New cards

Kilobyte (KB)

A data unit consisting of 2102^{10} bytes, which equals 81928192 bits.

62
New cards

Two's Complement

A method of encoding negative numbers in binary, conceptually using an extra leading bit to indicate whether a value is positive or negative.

63
New cards

Floating Point Technique

A technique used to store numbers with fractional parts, conceptually structured as two binary numbers separated by a decimal point.

64
New cards

ASCII

American Standard Code for Information Interchange; a set of 128128 numeric codes used for representing English letters, punctuation marks, and other characters.

65
New cards

Unicode

A character encoding standard created in the 1990s that is compatible with ASCII but utilizes more bytes to represent characters from various languages.

66
New cards

Machine Language

The lowest-level computer language, consisting of instructions written as binary numbers, which is the only language directly understood by a CPU.

67
New cards

Assembly

A low-level programming language one step above machine language that uses short mnemonics such as 'add' and 'mul'.

68
New cards

High-level Language

A programming language (such as C++ or Python) that uses human-readable keywords, operators, and strict syntax rules to construct instructions.

69
New cards

Syntax Error

A code error, such as a misspelled keyword or improper operator usage, that violates the language rules and prevents execution.

70
New cards

Statements

Individual instructions written in a high-level programming language.

71
New cards

Source Code

The entire collection of statements written by a programmer in a high-level language.

72
New cards

Compiler

A program that translates high-level source code into low-level machine code or object files.

73
New cards

Program Development Cycle

A five-step development process: 1) Design the program, 2) Write the code, 3) Correct syntax errors, 4) Test the program, and 5) Correct logic errors.

74
New cards

Pseudocode

A syntax-less mock-up or sketch of a program used during design that is not meant to be executed.

75
New cards

Top Down Design

A programming methodology that involves breaking down a complicated task into smaller and smaller pieces until each piece is manageable.

76
New cards

Preprocessor Directive

A statement starting with a hash symbol (such as #include <iostream>) that instructs the preprocessor to process library files or macros prior to compilation.

77
New cards

Stream Insertion Operator (<<)

The operator used with cout to insert characters one by one into an output stream.

78
New cards

Stream Manipulator

A formatting tool (such as endl) used to modify or terminate an input/output stream.

79
New cards

Literal

Any actual, fixed value appearing directly in program code, such as the number 77 or a text string.

80
New cards

Variable

A named location in memory that represents and references a value.

81
New cards

Address Of Operator (&)

The C++ operator used to examine the physical location or memory address of a variable.

82
New cards

Garbage Data

Unpredictable leftover bit patterns from previous programs occupying an uninitialized variable's memory address.

83
New cards

Named Constant

A variable declared with const representing a special value that cannot be changed after initialization.

84
New cards

Magic Number

An unexplained literal value appearing directly in code that can cause confusion during maintenance.

85
New cards

Type Casting

The process of converting or making one data type behave as another, such as through static_cast<new_type>(old_value).

86
New cards

Widening Conversion

The conversion of a value from a smaller data type to a larger data type without the risk of data loss.

87
New cards

Stream Extraction Operator (>>)

The C++ operator used alongside cin to retrieve input from the user.

88
New cards

Escape Character

A specialized character sequence preceded by a backslash within a string literal (e.g., \n or \") that performs formatting or prevents premature string termination.