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. Grammar rules of the language; compiler will try to identify and locate syntax errors
continue
if
&
syntax
2. A file must be ________ before data can be written to or read from it.
ofstream
opened
Default memberwise assignment
base
3. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.
operand value
function overloading
*
global
4. Used to qualify hidden names so that they can be used.
strcpy()
NULL
scope resolution operator
Default memberwise assignment
5. Class members specified as _________ are accessible only to member functions of the class and friends of the class.
information hiding
recursive
preprocessor
private
6. Executable version of program
Sentinel
like-type expression
derived class
object file
7. The number used to refer to a particular element of an array is called its ________.
subscript (or index)
static
data type
sorting
8. A function ________ enables a single function to be defined to perform a task on many different data types.
template
char
token
inheritance
9. The ________ statement in a called function passes the value of an expression back to the calling function.
overloading
local variable
return
globals
10. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.
private
Stack overflow
type coercion
preprocessor
11. The ________ of an identifier is the portion of the program in which the identifier can be used.
local variable
scope
strcmp()
function overloading
12. When it is not known in advance how many times a set of statements will be repeated a _________value can be used to terminate the repetition.
pointer
recursive
&
Sentinel
13. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.
this
token
classes
access specifier
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.
base
virtual functions
constant variable
% modulus
15. The elements of an array are related by the fact that they have the same name and ___________.
type
access specifier
inline functions
cin >> variable
16. Symbol that denotes an action to be performed
function parameters
escape sequences
static_cast<char>(65)
operator
17. All C++ Variables are_________.
case sensitive
reserved words
classes
virtual functions
18. A function that calls itself
left
recursive function
like-type expression
.cpp
19. 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.
int values
stack
static
beginning
20. Most calculations are normally performed by ______ statements.
assignment
cin
preprocessor
reserve words
21. newline
data type
//
semantics
n
22. The storage-class specifiers are mutable - auto - ________ - extern and static.
template
const datatype identifier = value
register
allocating memory
23. Repeating a set of instructions a specific number of times is called_________repetition.
switch
if...else
allocating memory
Counter-controlled or definite
24. 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.
global
Semicolon
inheritance
beginning
25. A memory location with a name and data type - its content may be changed during program execution
vectors
variable
prompt
floating-point
26. Words that are used for special purposes in a program
object file
base class
reserved words
subscript (or index)
27. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.
like-type expression
selection
//
Arithmetic Operators
28. The escape sequence n represents the _________ character which causes the cursor to position to the beginning of the next line on the screen.
strlen()
new line
variables
searching
29. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.
syntax
local variable
friend
pointer
30. Function _________ from the <string> library reads characters until a newline character is encountered - then copies those characters into the specified string.
integer operands
register
strcmp()
getline
31. A __________ data member represents class-wide information.
new line
static
::
loader
32. In inheritance the ____________ is the class the receives the inherited members.
//
definition
strcmp()
derived class
33. Used for dynamically allocated variables
Unified Modeling Language(UML)
heap
fstream
{ }
34. Forces the computer to display decimal point and trailing zeroes
two-dimensional
arithmetic expression
{ }
showpoint
35. The _________ begins the body of every function and the _________ ends the body of every function.
void
void pointer
cout
{ }
36. Every C++ program begins execution at the function _________.
escape sequences
editor
friend
main
37. To write data to a file you define an object of which one of the following
/n
showpoint
ofstream
&
38. A filestream variable that represents the default output device
private
void pointer
cout
left
39. C++ programs are normally typed into a computer using a(n) ________ program.
setw
{ }
editor
Arithmetic Operators
40. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.
const
inline functions
void
break
41. A ________ program executes before the compiler's translation phase begins.
#include
rand
NULL
preprocessor
42. The new operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.
semicolon
t
recursive
pointer
43. 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.
information hiding
recursive
classes
syntax
44. A filestream variable that represents the default input source
Sentinel
cin
scope
initialized
45. The size & shape & color and weight of an object are considered
before
private
attributes
reserved words
46. You must have a ___________ for every variable you intend to use in a program
binary operator
const
/n
definition
47. Default name of executable file
a.out
scope
selection
operand value
48. The __________ operator reclaims memory previously allocated by new.
strcpy()
delete
reserved words
this
49. 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
50. An expression that has operands with different data types
object-oriented analysis and design (OOAD)
whitespace
mixed expression
type
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