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. 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
recursive
special symbols
>>
2. 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
3. A filestream variable that represents the default input source
semantics
type
function scope
cin
4. If a member initializer is not provided for a member object of a class the object's __________ is called.
NULL
binary operator
recursive function
default constructor
5. A human readable file that contains C++ program
operator
source file
public
assignment statement
6. A member function should be declared static if it does not access __________ class members.
t
Default memberwise assignment
non-static
recursive function
7. C++ programs are normally typed into a computer using a(n) ________ program.
editor
break
pointer
Stack overflow
8. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')
strcpy()
//
char
cin
9. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.
if
static_cast<char>(65)
left
register
10. Used for function calls and local variables
prompt
Stack overflow
stack
floating-point
11. A function that calls itself either directly or indirectly - through another function) - is a ________ function.
unary scope resolution operator (::)
//
recursive
overloading
12. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.
if
classes
overloading
% modulus
13. 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.
vectors
type coercion
information hiding
template
14. In inheritance the ____________ is the class that supplies the inherited members.
scope
preprocessor
base class
special symbols
15. Use 2 characters to represent one
escape sequences
constant variable
pointer
Arithmetic Operators
16. Naming convention for C++ programs
.cpp
#include <headerfilename>
named constant
const
17. The_________selection statement is used to execute one action when a condition is TRue or a different action when that condition is false.
assignment statement
function scope
% modulus
if...else
18. Member objects are constructed __________ their enclosing class object.
syntax
beginning
before
void
19. data types that refer to numbers with decimals
ofstream
floating-point
n
member
20. The ________ enables access to a global variable with the same name as a variable in the current scope.
char
continue
arithmetic expression
unary scope resolution operator (::)
21. The stream extraction operator
integer operands
reserve words
>>
ofstream
22. The conditional operator. it evaluates a line of code and returns one thing if the condition is true and a different thing if the condition is false.
subscript (or index)
loader
inline functions
?
23. Used to qualify hidden names so that they can be used.
globals
attributes
semantics
scope resolution operator
24. A________ allows the compiler to check the number & types and order of the arguments passed to a function.
subscript (or index)
arithmetic expression
function prototype
this
25. Classes can have relationships with other classes. These relationships are called ________.
derived class
associations
recursive
like-type expression
26. A constant object must be __________; it cannot be modified after it is created.
initialized
arithmetic expression
integer operands
source file
27. This is used to mark the end of a complete C++ programming statement.
Semicolon
sorting
reserved words
function parameters
28. Used for dynamically allocated variables
heap
operator
rand
assignment statement
29. Compares two strings and returns 0 if they are equal.
whitespace
globals
strcmp()
default constructor
30. Words that are used for special purposes in a program
searching
reserved words
default constructor
function prototype
31. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.
*
non-static
char
selection
32. Function _________ from the <string> library reads characters until a newline character is encountered - then copies those characters into the specified string.
getline
floating-point
globals
virtual functions
33. tab
t
dot (.)
operator overloading
return
34. A set of values together with a set of operations
cin >> variable
like-type expression
data type
const datatype identifier = value
35. Lists and tables of values can be stored in arrays or __________.
vectors
pointer
operator overloading
setw
36. The symbol for the binary scope resolution operator
two-dimensional
::
void
global
37. A type of pointer that can point at objects of any data type.
const
void pointer
vectors
private
38. Returns the length of a string excluding the null terminator.
strlen()
friend
>>
Stack overflow
39. The three ways to return control from a called function to a caller are ________ - return expression and encounter.
object file
0
return
information hiding
40. 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.
variable
function prototype
virtual functions
//
41. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.
//
stack
derived class
unary scope resolution operator (::)
42. An operator that can only be used with int values. result will always be an int.
#include <headerfilename>
/n
Semicolon
% modulus
43. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.
this
% modulus
showpoint
scope
44. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.
friend
semantics
auto
function call
45. The number used to refer to a particular element of an array is called its ________.
subscript (or index)
sorting
globals
like-type expression
46. newline
constant variable
n
ofstream
loader
47. The process of determining if an array contains a particular key value is called _________ the array.
static
new line
searching
classes
48. The sign you use for pointers
constant variable
/n
*
static
49. The three values that can be used to initialize a pointer are 0 - __________ and an address.
searching
#include directive
token
NULL
50. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________
recursive
cmath
operator overloading
whitespace
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