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. Keyword public is a(n) _________
scope
access specifier
showpoint
/n
2. A __________ should be used to declare the size of an array because it makes the program more scalable.
two-dimensional
ofstream
constant variable
cin.get(ch)
3. A function ________ enables a single function to be defined to perform a task on many different data types.
subscript (or index)
linker
global
template
4. Used to qualify hidden names so that they can be used.
n
scope resolution operator
&
cin
5. The number used to refer to a particular element of an array is called its ________.
subscript (or index)
scope resolution operator
cin.get(ch)
member
6. Forces the computer to display decimal point and trailing zeroes
private
&
showpoint
scope resolution operator
7. __________ can be used to assign an object of a class to another object of the same class.
Default memberwise assignment
const
register
unary scope resolution operator (::)
8. The ________ program transfers the executable image of a C++ program from disk to memory.
break
loader
variable
n
9. Class members specified as _________ are accessible anywhere an object of the class is in scope.
template
public
preprocessor
function overloading
10. The sign you use for references
&
integer operands
token
beginning
11. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.
int values
new line
function overloading
selection
12. For every opening brace in a C++ program there must be a ______________.
syntax
getline
case sensitive
Closing brace
13. You must have a ___________ for every variable you intend to use in a program
>>
address
definition
cin.get(ch)
14. The process of analyzing and designing a system from an object-oriented point of view is called ________.
::
continue
object-oriented analysis and design (OOAD)
auto
15. When a value of one data type is implicitly (automatically) changed to another data type
polymorphism
base
type coercion
this
16. It is possible to have various functions with the same name that operate on different types or numbers of arguments. This is called function ________.
pointer
*
>>
overloading
17. Smallest individual unit of a programming language - special symbols or word symbols or identifiers
Stack overflow
*
a.out
token
18. The storage-class specifiers are mutable - auto - ________ - extern and static.
unary scope resolution operator (::)
strcpy()
classes
register
19. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.
object-oriented analysis and design (OOAD)
void
prompt
#include <headerfilename>
20. The ________ enables access to a global variable with the same name as a variable in the current scope.
variables
unary scope resolution operator (::)
showpoint
editor
21. In inheritance the ____________ is the class the receives the inherited members.
derived class
/n
allocating memory
operator
22. 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.
pointer
operator
void
default constructor
23. The three ways to return control from a called function to a caller are ________ - return expression and encounter.
polymorphism
return
function call
const
24. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.
classes
friend
cmath
register
25. Allows the programmer to store a value in a variable
assignment statement
Sentinel
base class
Closing brace
26. The stream insertion operator
semicolon
token
<<
attributes
27. newline
n
preprocessor
strcpy()
Counter-controlled or definite
28. Executable version of program
assignment
globals
<<
object file
29. data types that refer to numbers with decimals
function scope
constant variable
floating-point
arithmetic expression
30. A C++ statement that makes a decision is ______.
object-oriented analysis and design (OOAD)
Arithmetic Operators
void pointer
if
31. Preprocessor directive syntax
ofstream
constant variable
void
#include <headerfilename>
32. The new operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.
pointer
definition
inline functions
loader
33. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.
Closing brace
pointer
register
<<
34. This is used to mark the end of a complete C++ programming statement.
ofstream
Semicolon
assignment statement
variables
35. An expression that has operands with different data types
{ }
mixed expression
editor
pointer
36. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.
token
if
globals
semantics
37. A filestream variable that represents the default input source
void
register
recursive function
cin
38. Sets floating-point values to a fixed decimal format
two-dimensional
fixed
derived class
static
39. The ________ qualifier is used to declare read-only variables.
fixed
const
mixed expression
classes
40. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.
% modulus
unary operator
attributes
//
41. * / % + -
dot (.)
char
Arithmetic Operators
prompt
42. Type casting syntax
main
non-static
static_cast<char>(65)
reserve words
43. Lists and tables of values can be stored in arrays or __________.
prompt
vectors
.cpp
srand
44. The ________ of an identifier is the portion of the program in which the identifier can be used.
whitespace
?
n
scope
45. 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.
?
object-oriented analysis and design (OOAD)
virtual functions
operator
46. Classes can have relationships with other classes. These relationships are called ________.
/n
associations
% modulus
a.out
47. The symbol for the binary scope resolution operator
endl (same as 'n')
void
::
ofstream
48. Nonexecutable statements that are included in a program to provide information about what the program does etc.
comments
assignment statement
cin
main
49. Meaning of the instructions in the language; compiler cannot find these errors - often called logic errors
whitespace
*
fstream
semantics
50. Most calculations are normally performed by ______ statements.
dot (.)
semantics
assignment
reserved words
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