Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
30 Cards in this Set
- Front
- Back
From what language is C++ derived?
|
C++ is derived from C.
|
|
What was the main factor that drove the creation of C++?
|
Increasing program complexity was the main factor that drove the creation of C++.
|
|
C++ is the parent of Java and C#. True or False?
|
True.
|
|
Name the principles of OOP.
|
Encapsulation, polymorphism, and inheritance are the principles of OOP.
|
|
What is the basic unit of encapsulation in C++?
|
The class is the basic unit of encapsulation in C++.
|
|
What is the commonly used term for a subroutine in C++?
|
Function is the commonly used term for a subroutine in C++.
|
|
Where does a C++ program begin execution?
|
A C++ program begins execution with main( ).
|
|
What is cout?
|
cout is a predefined identifier that is linked to console output.
|
|
What does #include <iostream> do?
|
It includes the header <iostream>, which supports I/O.
|
|
Must a variable be declared before it is used?
|
Yes, in C++ variables must be declared before they are used.
|
|
Show how to assign the variable min the value 0.
|
min = 0;
|
|
Can more than one variable be declared in a single declaration statement?
|
Yes, two or more variables can be declared in a single declaration statement.
|
|
What is C++’s input operator?
|
The input operator is >>.
|
|
To what device is cin linked by default?
|
cin is linked to the keyboard by default.
|
|
What does \n stand for?
|
The \n stands for the newline character.
|
|
What is C++’s keyword for the integer data type?
|
The integer data type is int.
|
|
What is double?
|
double is the keyword for the double floating-point data type.
|
|
How do you output a newline?
|
To output a newline, use \n.
|
|
What does the if statement do?
|
if is C++’s conditional statement.
|
|
What does the for statement do?
|
The for is one of C++’s loop statements.
|
|
What are C++’s relational operators?
|
The relational operators are ==, !=, <, >, <=, and >=.
|
|
How is a block of code created? What does it do?
|
A block is started by a {. It is ended by a }. A block creates a logical unit of code.
|
|
In C++, statements are terminated by a ____________.
|
semicolon
|
|
All C++ statements must start and end on one line. True or false?
|
False.
|
|
What is a function?
|
A function is a subroutine that contains one or more C++ statements.
|
|
A function is called by using its name. True or false?
|
True.
|
|
What is the C++ standard function library?
|
The C++ standard function library is a collection of functions supplied by all C++ compilers.
|
|
Which is the keyword, for, For, or FOR?
|
The keyword is for. In C++, all keywords are in lowercase.
|
|
A C++ identifier can contain what type of characters?
|
A C++ identifier can contain letters, digits, and the underscore.
|
|
Are index21 and Index21 the same identifier?
|
No, C++ is case sensitive.
|