C++ flashcards (copy)

studied byStudied by 0 people
0.0(0)
Get a hint
Hint

Computer is

1 / 32

flashcard set

Earn XP

Description and Tags

To be prepared for classes

33 Terms

1

Computer is

Programmable machine designed to follow instructions

New cards
2

Program is

Instructions in computer memory to make it do something

New cards
3

Programmer is

Person who writes instructions to make computer perform a task

New cards
4

Main Hardware Components Categories:

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

New cards
5

Cental Processing Unit is

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

New cards
6

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

New cards
7

Motherboard is

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

New cards
8

Main Memory is

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

New cards
9

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

New cards
10

Compiler is

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

New cards
11

Secondary Memory is

Permanent memory that saves your data in PC

New cards
12

Input devices are

Devices that send information to the computer from the outside

New cards
13

Output devices are

Devices that receive information from the computer to the user

New cards
14

Types of programming languages:

Low-level, Middle-level, Highlevel

New cards
15

Low-level languages are

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

New cards
16

Middle-level languages are

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

New cards
17

High-level languages are

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

New cards
18

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)

New cards
19

Binary numbers are

Machine language instructions (10100..)

New cards
20

Syntax is

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

New cards
21

Punctuation is

Characters that mark the end of a statement

New cards
22

Operators are

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

New cards
23

Key words are

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

New cards
24

Variables are

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

New cards
25

Procedural programming -

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

New cards
26

Object-Oriented programming

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

New cards
27

Algorithm is

Formula that used for solving a problem

New cards
28

Identifier is

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

New cards
29

Literal is

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

New cards
30

Return 0; is

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

New cards
31

cout

« ““ « endl; Outputs the result

New cards
32

cin

» variable; Used to take input from the user

New cards
33

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)

New cards

Explore top notes

note Note
studied byStudied by 18 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 10 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 43 people
Updated ... ago
5.0 Stars(2)
note Note
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 11 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 15 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 58 people
Updated ... ago
5.0 Stars(3)

Explore top flashcards

flashcards Flashcard40 terms
studied byStudied by 10 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard85 terms
studied byStudied by 8 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard62 terms
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard58 terms
studied byStudied by 35 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard34 terms
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard55 terms
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard84 terms
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard40 terms
studied byStudied by 27 people
Updated ... ago
5.0 Stars(8)