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. 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.
preprocessor
dot (.)
function prototype
function parameters
2. Initializers __________ must be used to initialize constant members of a class.
function scope
member
function overloading
register
3. The process of placing the elements of an array in order is called ________ the array.
::
strlen()
sorting
&
4. data types that refer to numbers with decimals
void
subscript (or index)
floating-point
operator overloading
5. The stream insertion operator
searching
<<
strlen()
const datatype identifier = value
6. Two slash marks ( // ) indicate __________ of a comment
this
fixed
beginning
if
7. The ________ program transfers the executable image of a C++ program from disk to memory.
Unified Modeling Language(UML)
definition
dot (.)
loader
8. A ________ program executes before the compiler's translation phase begins.
editor
preprocessor
member
left
9. A function that can be used to read character data including whitespace
type casting (conversion)
n
t
cin.get(ch)
10. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.
break
global
static
const
11. Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise.
globals
<<
auto
0
12. The idea that you can call the same function and the output will depend on the type of object you're using.
srand
unary scope resolution operator (::)
polymorphism
access specifier
13. directive A statement that starts with a # is called a ____________.
Preprocessor
polymorphism
overloading
recursive
14. When you create a ___________________in the base class and then call it using an object the function will know to look in the inherited class for the specifics of that function.
scope
&
virtual functions
Sentinel
15. Characters used to separate symbols or reserved words or identifiers and statements
whitespace
#include directive
static
integer operands
16. Function ________ is used to set the random number seed to randomize a program.
srand
operator
preprocessor
Semicolon
17. Executable version of program
object file
Unified Modeling Language(UML)
static_cast<char>(65)
integer operands
18. Type casting syntax
void
recursive function
static_cast<char>(65)
return
19. All C++ Variables are_________.
>>
case sensitive
non-static
a.out
20. This is used to mark the end of a complete C++ programming statement.
if
unary scope resolution operator (::)
Semicolon
<<
21. Allows the programmer to store a value in a variable
reserve words
register
variables
assignment statement
22. The __________ operator reclaims memory previously allocated by new.
global
delete
object file
before
23. The ________ qualifier is used to declare read-only variables.
mixed expression
const
static_cast<char>(65)
binary operator
24. The symbol for the binary scope resolution operator
subscript (or index)
::
data type
two-dimensional
25. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.
&
access specifier
searching
Stack overflow
26. The three ways to return control from a called function to a caller are ________ - return expression and encounter.
return
operand value
cin >> variable
floating-point
27. 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.
return
delete
/n
inheritance
28. Symbol that denotes an action to be performed
//
operator
static
inline functions
29. Operator with only one operand
main
Closing brace
polymorphism
unary operator
30. The source-code file and any other files that use a class can include the class's header file via an _________ preprocessor directive.
srand
#include
access specifier
register
31. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.
operator overloading
function overloading
?
#include
32. Function ________ is used to produce random numbers.
two-dimensional
private
globals
rand
33. The address-of operator. it is used to assign pointers and to print the address of variables.
escape sequences
&
base
non-static
34. Identifier or expression that is part of the calculation to be performed
srand
static_cast<char>(65)
endl (same as 'n')
operand value
35. The _________ begins the body of every function and the _________ ends the body of every function.
like-type expression
template
register
{ }
36. tab
return
t
#include directive
comments
37. Nonexecutable statements that are included in a program to provide information about what the program does etc.
comments
char
main
delete
38. A set of values together with a set of operations
data type
strcpy()
delete
0
39. Creates a copy of a string.
strcpy()
endl (same as 'n')
reserve words
variables
40. To write data to a file you define an object of which one of the following
//
definition
polymorphism
ofstream
41. A program that finds and attaches to your program the indicated libraries for compilation
>>
preprocessor
whitespace
Arithmetic Operators
42. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.
template
function parameters
fixed
classes
43. For every opening brace in a C++ program there must be a ______________.
classes
Closing brace
fixed
escape sequences
44. Associate an identifier with a memory location
delete
a.out
derived class
allocating memory
45. A filestream variable that represents the default input source
cin
before
sorting
::
46. The sign you use for references
&
source file
special symbols
t
47. The ________ statement in a called function passes the value of an expression back to the calling function.
return
strlen()
type
Semicolon
48. These are data items whose values do not change while the program is running
fixed
Literals
static
cout
49. A variable that is known only within the function in which it is defined is called a ________.
local variable
derived class
linker
n
50. int namespace include using return examples of ___________
reserve words
n
left
access specifier
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