Programming Basics and Computer Concepts

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/62

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering key concepts from the lecture notes on programming basics, input/output, C++ syntax, IDEs, and computer architecture.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

63 Terms

1
New cards

Computer program

A sequence of instructions that a computer executes one at a time to perform a task.

2
New cards

Input

Data a program reads from sources such as keyboard, files, or networks.

3
New cards

Process

The computations or transformations performed on input data by a program.

4
New cards

Output

Data produced by a program and sent to a destination like a screen or file.

5
New cards

Variable

A named storage location whose value can change during program execution.

6
New cards

Assignment

The operation of giving a variable a value (e.g., x = 5).

7
New cards

Arithmetic expression

A combination of values and operators that evaluates to a number.

8
New cards

Integer

A data type representing whole numbers.

9
New cards

String

A data type representing text characters.

10
New cards

Main function

The entry point of a C++ program, typically defined as int main() { … }.

11
New cards

Curly braces

The { } characters that enclose blocks of code or function bodies.

12
New cards

Semicolon

The symbol ; that ends a statement in C++ and many other languages.

13
New cards

cout

The C++ output stream used to print data to the screen.

14
New cards

cin

The C++ input stream used to read data from the keyboard.

15
New cards

endl

Endline manipulator that inserts a newline in output.

16
New cards

String literal

Text placed in double quotes used in output (e.g., "Hello").

17
New cards

Insertion operator

The << operator in C++ used with cout to send data to the output stream.

18
New cards

Newline

A line break; can be produced by endl or the escape sequence \n.

19
New cards

Escape sequence

A backslash followed by a character (e.g., \n) representing a special character.

20
New cards

Prompt

A message shown to request input from the user.

21
New cards

Console input with prompts

Reading input while printing prompts before each cin.

22
New cards

Console input without prompts

Reading input without prompts, often providing all values at once.

23
New cards

Comment

Text in code intended for humans and ignored by the compiler.

24
New cards

Single-line comment

A comment starting with // and continuing to the end of the line.

25
New cards

Block comment

A comment starting with /* and ending with */, possibly spanning multiple lines.

26
New cards

Whitespace

Spaces, tabs, and newlines used to format code; the compiler largely ignores most of it.

27
New cards

Algorithm

A step-by-step set of instructions designed to solve a problem.

28
New cards

Turtle graphics

A visual method where a robotic or simulated turtle follows commands to draw shapes.

29
New cards

Compiler

A program that translates a high-level language into machine code and reports errors or warnings.

30
New cards

Machine instruction

Binary 0s and 1s that a processor executes.

31
New cards

Assembly language

A human-readable representation of machine instructions, translated by an assembler.

32
New cards

High-level language

A programming language (e.g., C, C++, Java) that requires a compiler to translate to machine code.

33
New cards

Integrated Development Environment (IDE)

Software that combines a code editor, compiler, debugger, and other tools.

34
New cards

Syntax highlighting

Color-coding of code elements in an IDE to aid readability and error detection.

35
New cards

Automatic delimiter completion

An IDE feature that automatically inserts closing quotes, brackets, etc.

36
New cards

Automatic indentation

An IDE feature that automatically indents lines to improve readability.

37
New cards

Command-line interface (CLI)

A text-based interface for running programs and interacting with files.

38
New cards

Console

A text-based interface for program input and output.

39
New cards

Command-line argument

A value provided after the program name when running from a CLI.

40
New cards

Moore's Law

The observation that transistors on a chip double roughly every 18–24 months, increasing performance.

41
New cards

Transistor

A basic switch used to build integrated circuits.

42
New cards

Integrated circuit (IC)

A microchip containing many transistors.

43
New cards

CPU / Processor

The central component that executes instructions in a computer.

44
New cards

RAM

Random Access Memory; volatile storage for data/instructions the CPU uses quickly.

45
New cards

SSD

Solid-State Drive; non-volatile storage using flash memory for data.

46
New cards

BIOS

Basic Input/Output System; firmware that initializes hardware and starts the OS.

47
New cards

Operating System (OS)

Software that manages hardware and provides services for programs.

48
New cards

Bit

The smallest unit of data, a binary digit, equal to 0 or 1.

49
New cards

Memory

Storage for data used by the processor, including RAM and cache.

50
New cards

Cache

A small, fast memory near the CPU that stores frequently used data.

51
New cards

Preprocessor directive

Commands like #include that run before compilation to prepare code.

52
New cards

Namespace std

The standard library namespace in C++; using std allows omitting std::.

53
New cards

Return statement

The statement return 0; which ends a function and signals successful completion.

54
New cards

Program execution (sequential)

Executing statements in order, typically one after another within a function.

55
New cards

Byte

8 bits; a basic unit of storage.

56
New cards

Iconic terms: header, include

include is a preprocessor directive to include a header file.

57
New cards

Data types

Categories like int, float, char, string that define what kind of data a variable holds.

58
New cards

Input/output (I/O)

The exchange of data between a program and its environment.

59
New cards

Text editor

Software used to write and edit program source code.

60
New cards

Executable

A binary file produced after compilation that the OS can run.

61
New cards

Compiler vs assembler vs interpreter

Different tools for translating or executing code: compilers translate high-level languages, assemblers translate assembly to machine code, and interpreters execute high-level code directly.

62
New cards

Algorithmic thinking

Using a systematic method to solve problems through step-by-step procedures.

63
New cards

Precision in output

Exact formatting and spacing of program output, including whitespace, to match expected results.