SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
C++ Programming Basics
Start Test
Study First
Subject
:
it-skills
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. To explicitly indicate that a value is to be converted to another type
t
#include <headerfilename>
type casting (conversion)
static_cast<char>(65)
2. Naming convention for C++ programs
inheritance
initialized
delete
.cpp
3. A filestream variable that represents the default output device
cout
subscript (or index)
preprocessor
endl (same as 'n')
4. Executable version of program
strcmp()
object file
cin >> variable
void
5. Nonexecutable statements that are included in a program to provide information about what the program does etc.
semicolon
comments
new line
void
6. Lists and tables of values can be stored in arrays or __________.
function call
before
switch
vectors
7. A variable that holds the address of another variable.
pointer
cmath
Preprocessor
reserve words
8. The sign you use for pointers
*
object-oriented analysis and design (OOAD)
virtual functions
static
9. The elements of an array are related by the fact that they have the same name and ___________.
polymorphism
Preprocessor
type
base class
10. The three ways to return control from a called function to a caller are ________ - return expression and encounter.
static
return
object-oriented analysis and design (OOAD)
default constructor
11. An array that uses two subscripts is referred to as a(n) _________ array.
local variable
auto
two-dimensional
continue
12. This manipulator is used to establish a field width for the value immediately following it.
setw
if
virtual functions
member
13. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________
cin >> variable
assignment statement
return
operator overloading
14. In inheritance the ____________ is the class that supplies the inherited members.
base class
arithmetic expression
>>
variables
15. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.
friend
Default memberwise assignment
this
prompt
16. An operator that can only be used with int values. result will always be an int.
% modulus
if...else
NULL
inheritance
17. The ________ program combines the output of the compiler with various library functions to produce an executable image.
continue
0
case sensitive
linker
18. This is used to mark the end of a complete C++ programming statement.
member
n
Semicolon
register
19. C++ programs are normally typed into a computer using a(n) ________ program.
endl (same as 'n')
inheritance
type
editor
20. Default name of executable file
endl (same as 'n')
inline functions
a.out
reserved words
21. You can declare default values for a function in the ____________________.
const
<<
function parameters
reserved words
22. These are data items whose values do not change while the program is running
searching
Unified Modeling Language(UML)
special symbols
Literals
23. Class members are accessed via the ________ operator in conjunction with the name of an object (or reference to an object) of the class or via the arrow (->) operator in conjunction with a pointer to an object of the class.
constant variable
operator
inheritance
dot (.)
24. Used for function calls and local variables
stack
main
associations
operator overloading
25. A function that calls itself either directly or indirectly - through another function) - is a ________ function.
const
recursive
classes
const datatype identifier = value
26. Smallest individual unit of a programming language - special symbols or word symbols or identifiers
t
token
friend
loader
27. The number used to refer to a particular element of an array is called its ________.
static_cast<char>(65)
template
inline functions
subscript (or index)
28. Class members specified as _________ are accessible anywhere an object of the class is in scope.
allocating memory
public
source file
operand value
29. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.
public
reserved words
<<
//
30. Objects have the property of ________although objects may know how to communicate with one another across well-defined interfaces - they normally are not allowed to know how other objects are implemented.
return
% modulus
function overloading
information hiding
31. Syntax for named constant declaration
const datatype identifier = value
assignment
endl (same as 'n')
strlen()
32. Function ________ is used to set the random number seed to randomize a program.
selection
strlen()
void
srand
33. A variable declared outside any block or function is a ________ variable.
global
assignment
like-type expression
a.out
34. Returns the length of a string excluding the null terminator.
mixed expression
scope
strcmp()
strlen()
35. Whole numbers - no decimals and no commas included
Counter-controlled or definite
operand value
int values
recursive function
36. directive A statement that starts with a # is called a ____________.
selection
register
cout
Preprocessor
37. The keyword ________ is used in a function header to indicate that a function does not return a value or to indicate that a function contains no parameters.
void
static_cast<char>(65)
return
mixed expression
38. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.
case sensitive
variable
strcmp()
globals
39. In inheritance the ____________ is the class the receives the inherited members.
arithmetic expression
address
derived class
function overloading
40. Associate an identifier with a memory location
allocating memory
<<
fixed
syntax
41. data types that refer to numbers with decimals
floating-point
dot (.)
escape sequences
strlen()
42. A recursive function typically has two components: One that provides a means for the recursion to terminate by testing for a(n) ________ case and one that expresses the problem as a recursive call for a slightly simpler problem than the original call
cin
char
base
like-type expression
43. Two slash marks ( // ) indicate __________ of a comment
initialized
//
beginning
operator
44. A function that can be used to read character data including whitespace
cin.get(ch)
const datatype identifier = value
ofstream
pointer
45. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.
const datatype identifier = value
this
type
whitespace
46. The ________ qualifier is used to declare read-only variables.
Arithmetic Operators
const
non-static
#include directive
47. A member function should be declared static if it does not access __________ class members.
opened
reserve words
non-static
this
48. When a value of one data type is implicitly (automatically) changed to another data type
type coercion
comments
cin
*
49. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.
associations
if...else
classes
unary scope resolution operator (::)
50. Characters used to separate symbols or reserved words or identifiers and statements
whitespace
variables
showpoint
variable
Sorry!:) No result found.
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests