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 idea that you can call the same function and the output will depend on the type of object you're using.
Semicolon
n
reserve words
polymorphism
2. A constant object must be __________; it cannot be modified after it is created.
initialized
operator
void
case sensitive
3. The three values that can be used to initialize a pointer are 0 - __________ and an address.
virtual functions
function call
NULL
unary scope resolution operator (::)
4. __________ can be used to assign an object of a class to another object of the same class.
reserve words
strlen()
Default memberwise assignment
floating-point
5. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________
operand value
assignment statement
/n
operator overloading
6. newline
n
static_cast<char>(65)
prompt
derived class
7. A function is invoked with a ________.
function prototype
function call
named constant
subscript (or index)
8. You must have a ___________ for every variable you intend to use in a program
Counter-controlled or definite
definition
scope
stack
9. All ______ must be declared before they are used.
subscript (or index)
delete
setw
variables
10. A variable that holds the address of another variable.
&
% modulus
pointer
char
11. If a member initializer is not provided for a member object of a class the object's __________ is called.
binary operator
default constructor
function prototype
allocating memory
12. The source-code file and any other files that use a class can include the class's header file via an _________ preprocessor directive.
NULL
function overloading
#include
constant variable
13. The stream extraction operator
const
>>
whitespace
cout
14. The ________ statement in a called function passes the value of an expression back to the calling function.
escape sequences
cmath
&
return
15. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.
classes
% modulus
sorting
named constant
16. The ________ of an identifier is the portion of the program in which the identifier can be used.
scope
sorting
opened
delete
17. A set of values together with a set of operations
data type
preprocessor
pointer
rand
18. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.
.cpp
semantics
function overloading
NULL
19. The sign you use for pointers
assignment statement
rand
inline functions
*
20. To explicitly indicate that a value is to be converted to another type
scope resolution operator
default constructor
operator overloading
type casting (conversion)
21. Function ________ is used to produce random numbers.
endl (same as 'n')
rand
delete
t
22. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.
function scope
register
special symbols
reserved words
23. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.
globals
.cpp
cin.get(ch)
int values
24. A member function should be declared static if it does not access __________ class members.
non-static
rand
switch
object file
25. Whole numbers - no decimals and no commas included
int values
beginning
a.out
Sentinel
26. 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.
object-oriented analysis and design (OOAD)
function call
static
fixed
27. A pointer is a variable that contains as its value the____________ of another variable.
prompt
address
void
polymorphism
28. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.
unary operator
#include
void
allocating memory
29. This is used to mark the end of a complete C++ programming statement.
void pointer
void
private
Semicolon
30. Used for dynamically allocated variables
static
identifiers
heap
pointer
31. It is possible to have various functions with the same name that operate on different types or numbers of arguments. This is called function ________.
private
auto
overloading
&
32. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.
pointer
like-type expression
selection
cout
33. A filestream variable that represents the default input source
cin
Sentinel
information hiding
overloading
34. * / % + -
base class
scope resolution operator
Arithmetic Operators
const
35. A function that calls itself
getline
selection
assignment statement
recursive function
36. int namespace include using return examples of ___________
if
const
reserve words
Arithmetic Operators
37. Symbol that denotes an action to be performed
left
classes
operator
const datatype identifier = value
38. A variable that is known only within the function in which it is defined is called a ________.
local variable
fixed
arithmetic expression
allocating memory
39. The stream insertion operator
semicolon
<<
classes
unary operator
40. Associate an identifier with a memory location
left
strcmp()
allocating memory
register
41. Operator with two operands
operand value
source file
inline functions
binary operator
42. Most calculations are normally performed by ______ statements.
identifiers
assignment
Arithmetic Operators
operator overloading
43. The six possible scopes of an identifier are ________ - file scope - block scope - function-prototype scope - class scope - namespace scope .
function scope
left
auto
switch
44. The __________ operator reclaims memory previously allocated by new.
const datatype identifier = value
register
delete
char
45. Names of things that are used in a program - can apply to variables & constants and functions
.cpp
default constructor
identifiers
const
46. The modulus operator (%) can be used only with __________.
named constant
object file
unary scope resolution operator (::)
integer operands
47. This manipulator causes the field to be left-justified with padding spaces printed to the right.
recursive function
vectors
left
main
48. The process of analyzing and designing a system from an object-oriented point of view is called ________.
Stack overflow
setw
% modulus
object-oriented analysis and design (OOAD)
49. 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.
showpoint
information hiding
strcmp()
function call
50. A __________ data member represents class-wide information.
initialized
static
Closing brace
Default memberwise assignment
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