Notes - PRELIMS_Week1-8 - FUNPROG

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

1/68

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.

69 Terms

1
New cards

Computer

An electronic device that stores and processes data.

2
New cards

Program

A sequence of instructions that tells the hardware of a computer what operations to perform on data.

3
New cards

Computer Programs

known as software, are instructions that tell a computer what to do.

4
New cards

Machine Language

A computer’s native language, consisting of built-in primitive instructions.

5
New cards

Assembly Language

A low-level programming language that uses mnemonics to represent machine-language instructions.

6
New cards

Assembler

A tool used to translate assembly-language programs into machine code.

7
New cards

Mnemonic

A symbolic name used in assembly language to represent an instruction or operation.

8
New cards

High-Level Language

A programming language that is platform-independent and can run on different types of machines.

9
New cards

Statements

Instructions in a high-level programming language.

10
New cards

Source Program

A program written in a high-level language.

11
New cards

Interpreter

A program that reads and executes source code statements one at a time.

12
New cards

Compiler

A program that translates an entire source program into a machine-language file for execution.

13
New cards

Pseudocode

An informal language that helps programmers develop algorithms.

14
New cards

Flowchart

A diagram that depicts the flow of a program.

15
New cards

Terminals

Rounded rectangles in flowcharts indicating starting or ending points.

16
New cards

Input/Output Operations

Parallelograms in flowcharts indicating input or output operations.

17
New cards

Processes

Rectangles in flowcharts indicating processes like computations or variable assignments.

18
New cards

Decision Symbol

A condition function in flowcharts that can be answered with true or false.

19
New cards

Module

A subroutine that contains the function of the flowchart.

20
New cards

On-page Connector

Indicates that the process continues on the same page in a flowchart.

21
New cards

Off-page Connector

Indicates where the matching off-page connector is placed in a flowchart.

22
New cards

Flow Lines

Lines that indicate the direction of flow in a flowchart.

23
New cards

Sequence Structure

A series of actions performed in sequence.

24
New cards

Decision Structure

A structure that chooses between different paths based on a condition.

25
New cards

Repetition Structure

A structure that repeats steps until a condition is met.

26
New cards

Case Structure

A structure that chooses between different paths based on user decisions.

27
New cards

int main()

The function where program execution begins in C++.

28
New cards

Object Program

The machine language version of a high-level language program.

29
New cards

Linker

A program that combines the object program with other programs to create executable code.

30
New cards

Loader

A program that loads an executable program into main memory.

31
New cards

#include

A directive that instructs the preprocessor to include the iostream header file.

32
New cards

Namespaces

Used in C++ to avoid naming conflicts.

33
New cards

Return 0;

Terminates the main() function and returns the value 0 to the calling process.

34
New cards

Stream Insertion Operator

The operator '>>' used for input in C++.

35
New cards

Stream Extraction Operator

The operator '<

36
New cards

Identifier

A name used to identify a variable, function, class, or module.

37
New cards

Comments

Explanatory statements included in C++ code for clarity.

38
New cards

Variable

Named storage that programs can manipulate.

39
New cards

Local Variables

Variables declared inside a function or block.

40
New cards

Global Variables

Variables defined outside of all functions, usually at the top of the program.

41
New cards

Operator

A symbol that tells the compiler to perform specific mathematical or logical manipulations.

42
New cards

Mixed Expression

An expression with operands of different data types.

43
New cards

Float

A data type that can represent decimal numbers.

44
New cards

Order of Precedence

Rules that determine the order in which operators are evaluated in an expression.

45
New cards

Increment Operator

An operator that increases the value of a variable by 1.

46
New cards

Decrement Operator

An operator that decreases the value of a variable by 1.

47
New cards

Prefix Form

The variable is incremented or decremented first before being used in an expression.

48
New cards

Postfix Form

The current value of the variable is used first before being incremented or decremented.

49
New cards

Assignment Operators

Operators that assign values to variables in C++.

50
New cards

Implicit Conversion

Automatic conversion done by the compiler without specific instructions from the programmer.

51
New cards

Explicit Conversion

Conversion that requires the programmer to specify that it should take place.

52
New cards

Relational Operators

Operators that compare two values and return true or false.

53
New cards

Logical Operators

Operators that perform logical operations on boolean values.

54
New cards

Truth Table

A table that shows the output of logical operations based on different input combinations.

55
New cards

Constants

Fixed values that cannot be modified after their initial assignment.

56
New cards

Assignment Statement

A fundamental C++ construct that changes the value of a variable.

57
New cards

Expression Evaluation

The process of evaluating the expression on the right-hand side of an assignment operator.

58
New cards

Variable Assignment

Storing the evaluated result of an expression in a variable.

59
New cards

Preprocessor Directives

Special instructions processed before the actual compilation of C++ code.

60
New cards

Syntax Errors

Errors that occur due to incorrect syntax in the code.

61
New cards

Semantic Errors

Errors that occur when the code is syntactically correct but semantically incorrect.

62
New cards

Linker Errors

Errors that occur when the linker encounters problems combining compiled code.

63
New cards

Runtime Errors

Errors that occur during the execution of a program.

64
New cards

Segmentation Faults

Errors that occur when a program tries to access memory it doesn't have permission to access.

65
New cards

Division by Zero

An error that occurs when a program tries to divide a number by zero.

66
New cards

Floating-Point Exceptions

Errors that occur during invalid floating-point operations.

67
New cards

Logical Errors

Errors that arise from flawed logic in the program.

68
New cards

Indentation

Used to visually group related code blocks for clarity.

69
New cards