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. 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.
opened
left
special symbols
information hiding
2. You must have a ___________ for every variable you intend to use in a program
definition
strcpy()
global
variables
3. Lists and tables of values can be stored in arrays or __________.
const
unary scope resolution operator (::)
vectors
overloading
4. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.
const datatype identifier = value
Sentinel
member
selection
5. In inheritance the ____________ is the class the receives the inherited members.
inline functions
*
template
derived class
6. Every C++ program begins execution at the function _________.
main
setw
derived class
recursive function
7. A function that calls itself
ofstream
public
recursive function
definition
8. A pointer is a variable that contains as its value the____________ of another variable.
getline
address
a.out
assignment
9. An expression in which all operands have the same data type - result will have the same data type as operands
like-type expression
return
recursive
fixed
10. You can declare default values for a function in the ____________________.
.cpp
Counter-controlled or definite
srand
function parameters
11. Syntax for named constant declaration
const datatype identifier = value
break
template
local variable
12. 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.
register
Default memberwise assignment
::
virtual functions
13. The process of determining if an array contains a particular key value is called _________ the array.
searching
Counter-controlled or definite
recursive function
subscript (or index)
14. A variable that is known only within the function in which it is defined is called a ________.
delete
public
local variable
template
15. A member function should be declared static if it does not access __________ class members.
recursive function
&
getline
non-static
16. Characters used to separate symbols or reserved words or identifiers and statements
integer operands
semantics
editor
whitespace
17. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.
return
break
void
base class
18. The address-of operator. it is used to assign pointers and to print the address of variables.
syntax
auto
continue
&
19. 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.
preprocessor
comments
/n
prompt
20. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.
searching
globals
arithmetic expression
function prototype
21. Naming convention for C++ programs
loader
::
.cpp
Sentinel
22. Class members specified as _________ are accessible only to member functions of the class and friends of the class.
delete
sorting
private
#include
23. Sets floating-point values to a fixed decimal format
t
fixed
left
syntax
24. 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
25. The process of placing the elements of an array in order is called ________ the array.
static
const
sorting
cin >> variable
26. The ________ of an identifier is the portion of the program in which the identifier can be used.
scope
ofstream
Closing brace
friend
27. The three ways to return control from a called function to a caller are ________ - return expression and encounter.
loader
return
named constant
token
28. The ________ program combines the output of the compiler with various library functions to produce an executable image.
arithmetic expression
Sentinel
associations
linker
29. Preprocessor directive syntax
strcmp()
rand
#include <headerfilename>
whitespace
30. To write data to a file you define an object of which one of the following
cin
fixed
ofstream
left
31. The stream insertion operator
<<
Default memberwise assignment
Stack overflow
inline functions
32. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.
register
Arithmetic Operators
data type
classes
33. Words that are used for special purposes in a program
reserved words
const
loader
function call
34. The idea that you can call the same function and the output will depend on the type of object you're using.
polymorphism
integer operands
new line
prompt
35. A memory location with a name and data type and a value - its content (value) cannot be changed during program execution
named constant
inheritance
strlen()
arithmetic expression
36. The six possible scopes of an identifier are ________ - file scope - block scope - function-prototype scope - class scope - namespace scope .
*
friend
inline functions
function scope
37. Use 2 characters to represent one
selection
inheritance
getline
escape sequences
38. A filestream variable that represents the default input source
local variable
cin
cin >> variable
derived class
39. This manipulator causes the field to be left-justified with padding spaces printed to the right.
source file
left
dot (.)
main
40. Nonexecutable statements that are included in a program to provide information about what the program does etc.
function overloading
continue
comments
Semicolon
41. A function that calls itself either directly or indirectly - through another function) - is a ________ function.
data type
recursive
member
a.out
42. Symbol that denotes an action to be performed
template
/n
sorting
operator
43. A function is invoked with a ________.
function call
Semicolon
break
cin >> variable
44. Keyword public is a(n) _________
pointer
like-type expression
?
access specifier
45. 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.
strcmp()
definition
inheritance
preprocessor
46. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.
whitespace
Stack overflow
object-oriented analysis and design (OOAD)
#include directive
47. A type of pointer that can point at objects of any data type.
void pointer
two-dimensional
associations
cmath
48. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.
global
inline functions
floating-point
base
49. The_________selection statement is used to execute one action when a condition is TRue or a different action when that condition is false.
scope resolution operator
base class
if...else
register
50. A C++ statement that makes a decision is ______.
auto
#include
return
if
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