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. A filestream variable that represents the default output device
base class
before
cout
setw
2. Allows the programmer to store a value in a variable
delete
void
comments
assignment statement
3. A filestream variable that represents the default input source
&
setw
cin
Stack overflow
4. The ________ program transfers the executable image of a C++ program from disk to memory.
named constant
function parameters
n
loader
5. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.
Stack overflow
linker
reserved words
left
6. The three values that can be used to initialize a pointer are 0 - __________ and an address.
function prototype
reserved words
void pointer
NULL
7. A function that calls itself either directly or indirectly - through another function) - is a ________ function.
linker
getline
recursive
n
8. Class members specified as _________ are accessible anywhere an object of the class is in scope.
return
two-dimensional
Stack overflow
public
9. Identifier or expression that is part of the calculation to be performed
operand value
return
void
classes
10. Words that are used for special purposes in a program
getline
reserved words
special symbols
static_cast<char>(65)
11. This is used to mark the end of a complete C++ programming statement.
showpoint
access specifier
Semicolon
whitespace
12. Returns the length of a string excluding the null terminator.
access specifier
//
strlen()
like-type expression
13. An expression in which all operands have the same data type - result will have the same data type as operands
selection
like-type expression
prompt
getline
14. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.
type coercion
register
auto
template
15. A function that can be used to read character data including whitespace
friend
&
const
cin.get(ch)
16. A variable declared outside any block or function is a ________ variable.
opened
global
Semicolon
return
17. The symbol for the binary scope resolution operator
loader
::
binary operator
classes
18. These are data items whose values do not change while the program is running
address
semantics
showpoint
Literals
19. Default name of executable file
fstream
a.out
case sensitive
comments
20. Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise.
classes
associations
auto
identifiers
21. A __________ data member represents class-wide information.
.cpp
ofstream
static
variables
22. Manipulator that causes the insertion point (cursor) to move to the beginning of the next line
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
23. The number used to refer to a particular element of an array is called its ________.
subscript (or index)
like-type expression
pointer
unary scope resolution operator (::)
24. A file must be ________ before data can be written to or read from it.
linker
register
cin
opened
25. The process of analyzing and designing a system from an object-oriented point of view is called ________.
left
#include <headerfilename>
object-oriented analysis and design (OOAD)
scope
26. The three ways to return control from a called function to a caller are ________ - return expression and encounter.
non-static
special symbols
return
classes
27. The escape sequence ___ when output with cout and the stream insertion operator - causes the cursor to position to the beginning of the next line on the screen.
static_cast<char>(65)
virtual functions
/n
Literals
28. The keyword __________ specifies that an object or variable is not modifiable after it is initialized.
const
continue
static
function scope
29. OOD also takes advantage of ________ relationships where new classes of objects are derived by absorbing characteristics of existing classes - then adding unique characteristics of their own.
public
const
cin.get(ch)
inheritance
30. Most calculations are normally performed by ______ statements.
unary scope resolution operator (::)
assignment
inheritance
&
31. The process of placing the elements of an array in order is called ________ the array.
pointer
sorting
Closing brace
globals
32. When a value of one data type is implicitly (automatically) changed to another data type
type coercion
return
fixed
ofstream
33. Classes can have relationships with other classes. These relationships are called ________.
associations
Sentinel
heap
function parameters
34. A function is invoked with a ________.
Preprocessor
named constant
polymorphism
function call
35. Names of things that are used in a program - can apply to variables & constants and functions
const datatype identifier = value
classes
static
identifiers
36. Characters used to separate symbols or reserved words or identifiers and statements
inheritance
whitespace
void
.cpp
37. A sequence of operands and operators that describe a calculation to be performed
arithmetic expression
fstream
cin
t
38. Nonexecutable statements that are included in a program to provide information about what the program does etc.
polymorphism
Arithmetic Operators
pointer
comments
39. The stream insertion operator
switch
<<
source file
semicolon
40. An operator that can only be used with int values. result will always be an int.
two-dimensional
this
allocating memory
% modulus
41. This manipulator is used to establish a field width for the value immediately following it.
allocating memory
template
floating-point
setw
42. An array that uses two subscripts is referred to as a(n) _________ array.
local variable
continue
semicolon
two-dimensional
43. For a local variable in a function to retain its value between calls to the function it must be declared with the ________ storage-class specifier.
static_cast<char>(65)
register
static
identifiers
44. Symbol that denotes an action to be performed
endl (same as 'n')
operator
named constant
globals
45. The escape sequence n represents the _________ character which causes the cursor to position to the beginning of the next line on the screen.
Unified Modeling Language(UML)
new line
virtual functions
subscript (or index)
46. Message displayed to the screen asking user for input; generated with an output statement
<<
arithmetic expression
auto
prompt
47. Naming convention for C++ programs
.cpp
function scope
information hiding
recursive
48. int namespace include using return examples of ___________
t
<<
identifiers
reserve words
49. To allow file access in a program you must #include this header file.
global
const
fstream
*
50. Header file that contains commonly performed mathematical functions
inheritance
cmath
endl (same as 'n')
% modulus
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