C++ flashcards (copy)

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

1/32

flashcard set

Earn XP

Description and Tags

To be prepared for classes

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

33 Terms

1
New cards

Computer is

Programmable machine designed to follow instructions

2
New cards

Program is

Instructions in computer memory to make it do something

3
New cards

Programmer is

Person who writes instructions to make computer perform a task

4
New cards

Main Hardware Components Categories:

Central Processing Unit (CPU), Main and Secondary Memory, Input and Output Devices

5
New cards

Cental Processing Unit is

Brain part, controls each process and communicates to the components to execute instructions

6
New cards

Random Access Memory (RAM) is

Main Memory/Computer hardware that can be read and changed in any order, typically used to store working data and machine code

7
New cards

Motherboard is

Main circuit board that holds each part of the computer and connect it to each other

8
New cards

Main Memory is

Fast memory that will be erased when the program terminates or computer turns off

9
New cards

Main Memory Address is

Main Memory organized with bits (byte = 8 bit). Bytes have addresses. Each byte in memory identified by a unique number known as address

10
New cards

Compiler is

Translater that translates high-level source code (human understandable) into low-level object code (computer understandable)

11
New cards

Secondary Memory is

Permanent memory that saves your data in PC

12
New cards

Input devices are

Devices that send information to the computer from the outside

13
New cards

Output devices are

Devices that receive information from the computer to the user

14
New cards

Types of programming languages:

Low-level, Middle-level, Highlevel

15
New cards

Low-level languages are

Can be understood by the machine only. Very hard to learn by human. Machine Architecture depending languages (Assembly)

16
New cards

Middle-level languages are

Staks in between high and low levels languages (C, Pascal)

17
New cards

High-level languages are

Can be understood by human only. Easy to learn by human. Not Machine Architecture depending languages (C++, Java, Python, C#)

18
New cards

Categories of software:

System software - programs that manage the computer hardware (operating systems, software development tools)

Application software - programs that provide services to the user (games, word processing)

19
New cards

Binary numbers are

Machine language instructions (10100..)

20
New cards

Syntax is

The rules of grammar that must be followed when writing a program

21
New cards

Punctuation is

Characters that mark the end of a statement

22
New cards

Operators are

Arithmetic operations to work with (add, substract, decimal, multiply, ..)

23
New cards

Key words are

Reserved words that can’t be used for any other purposes (int, return, namespace, ..)

24
New cards

Variables are

Named links to the memory for holding data. Must be defined before it can be used

25
New cards

Procedural programming -

Solves the problem from the top of the code down to the bottom (C, Pascal)

26
New cards

Object-Oriented programming

Uses classes and objects (calls methods to do something) (Java, C++, Python)

27
New cards

Algorithm is

Formula that used for solving a problem

28
New cards

Identifier is

Programmer-defined name for some part of a program (variables, functions, ..)

29
New cards

Literal is

A value that is written into a program’s code (12, “hello”, 3.5)

30
New cards

Return 0; is

Statement that used to exit the main function. Returning 0 typically indicates that the program has executed successfully

31
New cards

cout

« ““ « endl; Outputs the result

32
New cards

cin

» variable; Used to take input from the user

33
New cards

Rules of naming identifiers in C++

1) Must start with a latter or an underscore

2) Can contain letter, digits and underscores after the first character

3) Case-sensitive (age, Age and aGe are different)

4) Can’t reserve keywords (int, return, ..)

5) Avoid starting with an underscore followed by an uppercase letter (reserved for implementation)