1- introduction, history of C++, C++ program outline Flashcards

(36 cards)

1
Q

Hardware

A

physical devices that make up computer equipment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Computer

A

PC/mainframes/workstations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

5 computer components

A

CPU/processor, input device, output device, main memory/primary memory/RAM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

CPU/processor

A

follows the instructions and performs calculations specified by the program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Input Device

A

any device that allows outside world to communicate information to the CPU

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Output Device

A

any device that allows CPU to communicate information to the outside world

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

main memory/primary memory/RAM

A

a list of addressable memory locations that CPU can operate upon, not permanent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

secondary memory

A

memory that is used for keeping a permanent record of information – disk/data CD/flash drive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

bit

A

the least possible amount of information: 0 or 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

byte

A

8 bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

memory location

A

single (indivisible) portion of memory that holds data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

address

A

number that identifies a memory location

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Natural language

A

used by humans, ambiguous

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

High-level language

A

language (close to natural) that is understood by humans, unambiguous
C++ is a high-level language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Machine/Low-level language

A

list of instructions in binary format that a computer understands unambiguous
example: 0101 0001 1100 0010

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Program (code)

A

a sequence of instructions for computer to follow

17
Q

System

A

to be used by other programmers

18
Q

Operating system

A

allocates computer resources, launches other programs and ensures they work properly

19
Q

Application

A

used by end-users

20
Q

Software

A

collection of programs

21
Q

Data

A

input to the program

22
Q

Running/Executing program + source,object,executable code

A

performing program instructions on given data code
source (in high-level language)
object (in machine language)
executable code (in machine language) - can run on computer

23
Q

Library

A

a collection of previously developed object code: input/output, math, etc.

24
Q

Compiler

A

a system program that translates high-level language into low-level language

25
Linker
program that takes object code and produces executable code
26
Power
ability to express variety of ideas, code tasks (ex: bigger toolkit); more powerful language makes it easier to program
27
Understandability
ease of making sense of the code by proficient programmer
28
Languages preceding C++
BCPL > B > C > C++
29
Include directive
tells compiler where to find certain items about the program
30
Main part (main function(
contain instructions for computer, starts and ends with curly brackets: {} indicates program start
31
Statement
single unit of execution each statement ends with semicolon ;
32
Comment
a portion of line ignored by compiler - serves to make the code easier to understand by humans
33
Syntax
the principles of constructing (structuring) the program legal program construct complies with syntactic rules illegal violates ex: every statement ends with a semicolon
34
Semantics
the meaning of programming constructs ex: assignment statement gives a new value to a variable
35
Style
non-syntactic rules of program writing aimed at making program easier to read and understand ex: start the program with comments explaining its purpose
36
Program consists of...
a sequence of statements