Component Of Programming Language

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/19

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering the fundamental components of programming including storage types, naming rules, data types, and arithmetic operations as presented in Chapter 2.

Last updated 6:54 PM on 6/21/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

20 Terms

1
New cards

Basic Operations

The six types of operations performed by a program: receive input, produce output, assign value into storage, perform arithmetic and logic operation, make selection, and repeating a set of actions.

2
New cards

Program Elements

The general components of a computer program, including the Input section, Storage allocation (Constants, Variables, Data Structures, Files), Processing (arithmetic, logic, and control structures), and the Output Section.

3
New cards

Storage

One of the essential resources of a program consisting of a location in computer memory allocated to the program to hold values of specific data types.

4
New cards

Identifier

The name given to a specific storage location.

5
New cards

Identifier Naming Rules

Rules requiring that an identifier must begin with a letter and can be followed by a letter, number, or underscore ( _ ).

6
New cards

Constant

A storage element used to hold a fixed value that cannot be altered during program execution, such as PI=3.1416PI = 3.1416.

7
New cards

const

A keyword used to declare a constant and it must be initialized; the syntax is <datatype>const<identifier>=value;<data\,type>\,const\,<identifier> = value;.

8
New cards

Variables

Storage elements that hold values on a temporary basis which might be altered during program execution.

9
New cards

Data Structure

In the context of storage, this refers to an array or a pointer.

10
New cards

Array

Contagious memory locations that hold more than one value of the same type, such as charname[20];char\,name[20]; or intscore[20];int\,score[20];.

11
New cards

Integer Data Types

C++ data types used for whole numbers like 9090 or 78-78, represented by intint or longlong.

12
New cards

Floating point Data Types

C++ data types used for decimal numbers like 4.54.5 or 0.67-0.67, represented by floatfloat or doubledouble.

13
New cards

Character Data Type

A C++ data type used for single characters like ’A’\text{'A'} or ’*’\text{'*'}, represented by charchar.

14
New cards

Input Statement

A statement used to receive input from a keyboard or file using the cincin keyword and the input stream operator (>>>>).

15
New cards

Output Statement

A statement used to display output on a screen or write to a file using the coutcout keyword and the output stream operator (<<<<).

16
New cards

endl

A keyword that forces the cursor to begin at a new line during output operations.

17
New cards

Arithmetic Operations

The five basic operations in programming: Addition (++), Subtraction (-), Multiplication (*), Division (//), and Modulo (%\%).

18
New cards

Modulo (%\%)

An arithmetic operation that calculates the remainder of a division operation.

19
New cards

Integer Division

A division operation where if two integers are divided, the result is an integer and any fraction is truncated (e.g., 5/25 / 2 results in 22).

20
New cards

static_cast

A keyword used for Type Conversion (Casting) to store a value into a variable of a different type, following the syntax static_cast<data_type>(expression)static\_cast<data\_type>(expression).