CS I for Engineering (CSEN102): Basic C++ Program Structure & Sequential Operations

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

1/23

flashcard set

Earn XP

Description and Tags

Fill-in-the-blank practice flashcards covering basic C++ program structure, I/O streams, namespaces, variables, constants, fundamental data types, arithmetic operators, and sequential operations.

Last updated 9:06 PM on 10/15/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

24 Terms

1
New cards

In C++, the preprocessor directive #include <iostream> instructs the compiler to include the __________ library.

input/output

2
New cards

The execution of every C++ program begins at the starting point known as the __________ function.

int main()

3
New cards

In the main() function, the statement return 0; signals that the program ended __________.

successfully

4
New cards

A collection of pre-written code that provides ready-made tools to avoid writing everything from scratch is called a __________.

library

5
New cards

In C++, the concept of a "stream" refers to a __________ of data traveling into or out of a program.

flow

6
New cards

A declarative region that holds identifiers such as functions, classes, and variables to prevent naming conflicts is called a __________.

namespace

7
New cards

Specifying using namespace std; allows programmers to refer directly to cout instead of writing __________.

std::cout

8
New cards

While convenient for beginners, using using namespace std; is often avoided in larger programs because it can cause __________ if two namespaces have matching names.

confusion

9
New cards

In C++, __________ allows the computing agent to receive values from the user via cin for subsequent computations.

input

10
New cards

In C++, communicating the results of computations back to the user via cout is known as __________.

output

11
New cards

A named storage location in computer memory that holds a value capable of being retrieved or modified is called a __________.

variable

12
New cards

In C++, declaring a variable informs the compiler of its name and type while reserving space in __________.

memory

13
New cards

An uninitialized variable in C++ can lead to unexpected behavior because it often holds an undefined or __________ value.

garbage

14
New cards

A variable whose value cannot be altered once it has been initialized is known as a __________.

constant

15
New cards

Using the const keyword instead of #define is preferred in modern C++ because const adheres to C++ __________ rules.

type

16
New cards

By common programming convention in C++, constant names are typically written in __________.

UPPER_CASE

17
New cards

In C++, the char data type occupies a memory size of __________ byte(s) and is used to store individual characters.

11

18
New cards

In C++, the int data type typically occupies __________ bytes of memory and represents whole numbers.

44

19
New cards

While a single-precision float occupies 4 bytes4\text{ bytes}, a double-precision double occupies __________ bytes.

88

20
New cards

The C++ arithmetic operator % is known as the __________ operator and returns the remainder after integer division.

modulus

21
New cards

In C++, the operator ++ is called the __________ operator because it increases the value of a variable by 11.

increment

22
New cards

A computational process where steps execute strictly one after another in order without decisions or loops is known as a __________ operation.

sequential

23
New cards
<p>As shown in the control flow diagram, the three fundamental types of program operations are Sequences, Selections, and __________.</p>

As shown in the control flow diagram, the three fundamental types of program operations are Sequences, Selections, and __________.

Loops

24
New cards
<p>According to the C++ data types hierarchy diagram, <code>class</code>, <code>structure</code>, <code>union</code>, <code>typedef</code>, and <code>using</code> belong to the category of __________ Data Types.</p>

According to the C++ data types hierarchy diagram, class, structure, union, typedef, and using belong to the category of __________ Data Types.

User Defined