FUNPROG | Week 2-5 | PRELIMS

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

1/55

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.

56 Terms

1
New cards

Computer

is an electronic device that stores and processes data.

2
New cards

Program

It is 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, which differs among different types of computers, a set of built-in primitive instructions.

5
New cards

Assembly Language

uses a short descriptive word, known as a mnemonic, to represent each of the machine-language instructions.

6
New cards

Assembler

is 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

they are platform-independent, which means that you can write a program in a high-level language and run it in different types of machines.

9
New cards

Statements

the instructions in a high-level programming language.

10
New cards

Source Program

A program written in a high-level language.

11
New cards

Interpreter

reads one statement from the source code, translates it to the machine code or virtual machine code, and then executes it right away.

12
New cards

Compiler

translates the entire source program into a machine-language file for execution.

13
New cards

Bjarne Stroustrup

the computer scientist who created the C++ programming language in the early 1980s.

14
New cards

Problem Solving Phase

make an ordered sequence of steps that solves a problem.

15
New cards

Implementation Phase

implement using a programming language.

16
New cards

Algorithm

is a procedure or set of guidelines that must be followed to finish a specific task.

17
New cards

Pseudocode

is an artificial and informal language that helps programmers develop algorithms.

18
New cards

Flowchart

is a diagram that depicts the “flow” of a program.

19
New cards

Terminals

represented by rounded rectangles; indicate a starting or ending point.

20
New cards

Input/Output

represented by parallelograms; indicate an input or output operation.

21
New cards

Processes

represented by rectangles; indicates a process such as a mathematical computation or variable assignment.

22
New cards

Decision Symbol

condition function answerable by either true or false where in one must be chosen.

23
New cards

Module

subroutine that contains the function of the flowchart.

24
New cards

On-page Connector

indicates that the process is continued.

25
New cards

Off-page Connector

where the matching off-page connector is placed.

26
New cards

Flow Lines

point where the next step is or the flow of directions.

27
New cards

Sequence Structure

a series of actions are performed in sequence.

28
New cards

Decision Structure

chooses between different paths based on a condition.

29
New cards

Repetition Structure

repeats steps until a condition is met.

30
New cards

Case Structure

chooses between different paths based on the user’s decision.

31
New cards

int main()

the function where program execution begins.

32
New cards

Object Program

the machine language version of the high-level language program.

33
New cards

Linker

A program that combines the object program with other programs in the library and is used in the program to create the executable code.

34
New cards

Loader

a program that loads an executable program into main memory.

35
New cards

#include <iostream>

it instructs the pre-processor to include the header file iostream in the program.

36
New cards

Namespaces

used to avoid naming conflicts.

37
New cards

Return 0;

terminates main() function and causes it to return the value 0 to the calling process.

38
New cards

Stream Extraction Operator

‘>>’

39
New cards

Stream Insertion Operator

‘<<’

40
New cards

Identifier

is a name used to identify a variable, function, class, module, or any other user-defined item.

41
New cards

Comments

are explanatory statements that you can include in the C++ code that you write and helps anyone reading its source code.

42
New cards

Variable

provides us with named storage that our programs can manipulate.

43
New cards

Local Variables

variables that are declared inside a function or block.

44
New cards

Global Variables

are defined outside of all the functions, usually on top of the program.

45
New cards

Operator

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

46
New cards

4

in the division 4 % 6, the quotient is 0 and the remainder is __.

47
New cards

Mixed Expression

An expression that has operands of different data types (can obtain both integral and decimal numbers).

48
New cards

Float

int + float = ______.

49
New cards

Order of Precedence

When more than one arithmetic operator is used in an expression, C++ uses the operator precedence rules to evaluate the expression.

50
New cards

Operands

numbers appearing in the expression.

51
New cards

Unary Operators

an operator that has only one operand.

52
New cards

Binary Operators

an operator that has two operands.

53
New cards

Increment Operator

Increases the value of a variable by 1.

54
New cards

Decrement Operator

Decreases the value of a variable by 1.

55
New cards

Prefix Form

The variable is incremented or decremented first, and then the new value is used in the expression.

56
New cards

Postfix Form

The current value of the variable is used in the expression first, and then the variable is incremented or decremented.