1/87
Vocabulary flashcards covering computer hardware, memory representation, programming languages, and introductory C++ syntax concepts from COMP 1125.
Computer
A programmable machine that can store, retrieve, and process data by following a set (or sets) of instructions.
Program
A set of instructions a computer follows to perform a task.
Software
A set of programs used to perform a task.
Hardware
All of the physical components that comprise a computer.
Central Processing Unit (CPU)
The hardware component responsible for running (or executing) programs, housing the control unit and the arithmetic and logic unit (ALU).
Microprocessor
A modern CPU located on a small chip made of silicon, quartz, and other materials.
Main Memory (RAM)
Fast, expensive, and volatile memory where programs reside while being executed so the CPU can quickly access them.
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).
Input Device
A physical component that collects data from people or other devices for the computer (e.g., keyboards, mice, touchscreens).
Output Device
A physical component that formats and presents data produced by the computer for people or other devices (e.g., video displays, printers).
System Software
Software that manages the basic operations of the computer and makes it usable, including operating systems, utility programs, and software development tools.
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.
Utility Program
System software that enhances computer operations or safeguards data, such as virus scanners, file compression programs, and data backup programs.
Software Development Tools
Programs used to create, modify, and test software, such as assemblers, compilers, and interpreters.
Application Software
Software that makes a computer useful for specific user tasks (e.g., word processors, web browsers, email programs, and games).
Bit
The smallest unit of data in a computer, storing a positive or negative charge represented as a switch set to 1 (on) or 0 (off).
Byte
A unit of storage consisting of 8 bits, which is enough space to store a small number or a single letter.
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.
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.
ASCII
American Standard Code for Information Interchange; a set of 128 numeric codes used to represent English letters, punctuation marks, and other characters.
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.
Machine Language
The lowest-level computer language written in binary numbers, which is the only language a computer's CPU directly understands.
Assembly
A low-level programming language directly above machine language that uses short mnemonics such as 'add' and 'mul'.
Syntax
The set of rules that must be observed when writing a program in a programming language.
Syntax Error
A mistake in code, such as a misspelled keyword or improper operator usage, that prevents the program from executing.
Source Code
The collection of statements written by a programmer in a high-level programming language.
Compiler
A program that translates source code written in a high-level language into low-level code or machine language for execution.
Pseudocode
A syntax-free mock-up or sketch of a program used in the design phase that is not meant to be executed directly.
Top Down Design
A programming methodology that breaks down a complicated task into smaller and smaller pieces until each piece is manageable.
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.
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.
Literal
Any actual, explicit value appearing directly within the source code of a program (e.g., the number 7 or the string literal "Hello, World!").
Variable
A named location that represents and references a value stored in a computer's memory.
Garbage Data
Unpredictable leftover bit patterns from other programs present in a variable's memory address before an explicit value has been assigned.
Magic Number
An unexplained literal value appearing directly in code, which can cause confusion when reading or maintaining the program.
Named Constant
A descriptive name declared with the const keyword representing a specific value that cannot be changed after initialization.
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)).
Widening Conversion
The conversion of a value from a smaller data type to a larger data type without loss of data.
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.
Stream Extraction Operator
The >> operator in C++, used alongside the cin object to extract input entered by the user.
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.
Computer
A programmable machine that can store, retrieve, and process data by following a set (or sets) of instructions.
Program
A set of instructions that a computer follows to perform a task.
Software
A set of programs used to perform a task.
Programmer (Software Developer)
A person who designs, creates, and tests computer programs.
Hardware
The physical components that make up a computer.
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).
Microprocessor
A modern CPU located on a small chip, constructed from materials such as silicon and quartz.
Main Memory (RAM)
Fast, expensive, volatile memory where programs reside while being executed so that the CPU can quickly access them.
Volatile Memory
A type of memory, such as RAM, where data is not stored permanently and is lost when power is turned off.
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).
Input Device
A physical component that collects data from people or other devices (e.g., keyboards, mice, touchscreens, scanners).
Output Device
A physical component that formats and presents data produced by the computer for people or other devices (e.g., video displays, printers).
System Software
Programs that manage the basic operations of the computer and make it usable, comprising Operating Systems, Utility Programs, and Software Development Tools.
Operating System
The most fundamental set of programs on a computer, controlling internal hardware operations, managing connected devices, moving data, and running programs.
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.
Software Development Tools
Programs used to create, modify, and test software, such as assemblers, compilers, and interpreters.
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).
Bit
A single electrical unit that stores a positive charge ('on', represented by 1) or no charge ('off', represented by 0).
Byte
A unit of digital storage composed of 8 bits, which provides enough space to store a small number or a single letter.
Kilobyte (KB)
A data unit consisting of 210 bytes, which equals 8192 bits.
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.
Floating Point Technique
A technique used to store numbers with fractional parts, conceptually structured as two binary numbers separated by a decimal point.
ASCII
American Standard Code for Information Interchange; a set of 128 numeric codes used for representing English letters, punctuation marks, and other characters.
Unicode
A character encoding standard created in the 1990s that is compatible with ASCII but utilizes more bytes to represent characters from various languages.
Machine Language
The lowest-level computer language, consisting of instructions written as binary numbers, which is the only language directly understood by a CPU.
Assembly
A low-level programming language one step above machine language that uses short mnemonics such as 'add' and 'mul'.
High-level Language
A programming language (such as C++ or Python) that uses human-readable keywords, operators, and strict syntax rules to construct instructions.
Syntax Error
A code error, such as a misspelled keyword or improper operator usage, that violates the language rules and prevents execution.
Statements
Individual instructions written in a high-level programming language.
Source Code
The entire collection of statements written by a programmer in a high-level language.
Compiler
A program that translates high-level source code into low-level machine code or object files.
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.
Pseudocode
A syntax-less mock-up or sketch of a program used during design that is not meant to be executed.
Top Down Design
A programming methodology that involves breaking down a complicated task into smaller and smaller pieces until each piece is manageable.
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.
Stream Insertion Operator (<<)
The operator used with cout to insert characters one by one into an output stream.
Stream Manipulator
A formatting tool (such as endl) used to modify or terminate an input/output stream.
Literal
Any actual, fixed value appearing directly in program code, such as the number 7 or a text string.
Variable
A named location in memory that represents and references a value.
Address Of Operator (&)
The C++ operator used to examine the physical location or memory address of a variable.
Garbage Data
Unpredictable leftover bit patterns from previous programs occupying an uninitialized variable's memory address.
Named Constant
A variable declared with const representing a special value that cannot be changed after initialization.
Magic Number
An unexplained literal value appearing directly in code that can cause confusion during maintenance.
Type Casting
The process of converting or making one data type behave as another, such as through static_cast<new_type>(old_value).
Widening Conversion
The conversion of a value from a smaller data type to a larger data type without the risk of data loss.
Stream Extraction Operator (>>)
The C++ operator used alongside cin to retrieve input from the user.
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.