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. The storage-class specifiers are mutable - auto - ________ - extern and static.
type coercion
const
register
Literals
2. Returns the length of a string excluding the null terminator.
Unified Modeling Language(UML)
strlen()
like-type expression
function call
3. An expression that has operands with different data types
private
continue
mixed expression
variable
4. The ________ program combines the output of the compiler with various library functions to produce an executable image.
linker
floating-point
friend
cin
5. All C++ Variables are_________.
source file
Sentinel
case sensitive
static
6. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.
break
//
assignment statement
access specifier
7. Most calculations are normally performed by ______ statements.
continue
assignment
special symbols
a.out
8. __________ can be used to assign an object of a class to another object of the same class.
mixed expression
variables
Default memberwise assignment
Semicolon
9. data types that refer to numbers with decimals
?
floating-point
{ }
editor
10. The __________ operator reclaims memory previously allocated by new.
polymorphism
opened
attributes
delete
11. When a value of one data type is implicitly (automatically) changed to another data type
stack
function parameters
0
type coercion
12. Message displayed to the screen asking user for input; generated with an output statement
prompt
member
named constant
fixed
13. A variable that holds the address of another variable.
identifiers
definition
pointer
>>
14. 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.
non-static
strcpy()
delete
void
15. Words that are used for special purposes in a program
reserved words
a.out
static
friend
16. 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.
arithmetic expression
ofstream
static
template
17. You must have a ___________ for every variable you intend to use in a program
template
virtual functions
definition
static_cast<char>(65)
18. Names of things that are used in a program - can apply to variables & constants and functions
polymorphism
special symbols
.cpp
identifiers
19. Symbol that denotes an action to be performed
preprocessor
recursive
{ }
operator
20. Function ________ is used to set the random number seed to randomize a program.
srand
stack
Counter-controlled or definite
function call
21. Initializers __________ must be used to initialize constant members of a class.
cin
member
register
comments
22. A file must be ________ before data can be written to or read from it.
vectors
opened
function overloading
break
23. Characters used to separate symbols or reserved words or identifiers and statements
rand
whitespace
{ }
searching
24. Forces the computer to display decimal point and trailing zeroes
showpoint
assignment
delete
register
25. For every opening brace in a C++ program there must be a ______________.
Semicolon
vectors
void
Closing brace
26. The ________ statement in a called function passes the value of an expression back to the calling function.
a.out
return
cin.get(ch)
assignment
27. A __________ should be used to declare the size of an array because it makes the program more scalable.
operator overloading
/n
constant variable
char
28. The ________ enables access to a global variable with the same name as a variable in the current scope.
delete
two-dimensional
#include
unary scope resolution operator (::)
29. Classes can have relationships with other classes. These relationships are called ________.
semantics
t
associations
#include directive
30. The process of analyzing and designing a system from an object-oriented point of view is called ________.
object-oriented analysis and design (OOAD)
srand
#include
default constructor
31. Repeating a set of instructions a specific number of times is called_________repetition.
polymorphism
Counter-controlled or definite
rand
semantics
32. The _____ causes the contents of another file to be inserted into a program.
*
% modulus
opened
#include directive
33. The size & shape & color and weight of an object are considered
attributes
?
Default memberwise assignment
two-dimensional
34. To explicitly indicate that a value is to be converted to another type
function parameters
before
type casting (conversion)
{ }
35. The stream extraction operator
private
cin
main
>>
36. Syntax for named constant declaration
Unified Modeling Language(UML)
register
const datatype identifier = value
*
37. A variable that is known only within the function in which it is defined is called a ________.
vectors
local variable
cin
subscript (or index)
38. In inheritance the ____________ is the class the receives the inherited members.
base class
derived class
function call
associations
39. The number used to refer to a particular element of an array is called its ________.
globals
type
t
subscript (or index)
40. An array that uses two subscripts is referred to as a(n) _________ array.
whitespace
two-dimensional
Counter-controlled or definite
ofstream
41. A set of values together with a set of operations
showpoint
public
data type
void
42. A memory location with a name and data type - its content may be changed during program execution
*
globals
case sensitive
variable
43. This manipulator is used to establish a field width for the value immediately following it.
assignment statement
getline
Stack overflow
setw
44. Used to qualify hidden names so that they can be used.
type casting (conversion)
globals
scope resolution operator
dot (.)
45. The idea that you can call the same function and the output will depend on the type of object you're using.
function prototype
polymorphism
editor
before
46. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.
static
case sensitive
inline functions
recursive
47. The ________ qualifier is used to declare read-only variables.
const
% modulus
void pointer
cout
48. The modulus operator (%) can be used only with __________.
type coercion
integer operands
return
syntax
49. Member objects are constructed __________ their enclosing class object.
arithmetic expression
operator
unary operator
before
50. 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.
inheritance
information hiding
pointer
delete
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