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. The ________ program transfers the executable image of a C++ program from disk to memory.
getline
private
derived class
loader
2. A filestream variable that represents the default input source
public
cin
&
mixed expression
3. The_________selection statement is used to execute one action when a condition is TRue or a different action when that condition is false.
editor
::
if...else
sorting
4. 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.
static
information hiding
dot (.)
like-type expression
5. A pointer is a variable that contains as its value the____________ of another variable.
subscript (or index)
main
cmath
address
6. Causes the program to immediately goes back to the top of the loop. the remainder of the statements in the loop are ignored for this current iteration.
break
Default memberwise assignment
loader
continue
7. Symbol that denotes an action to be performed
base class
fixed
operator
{ }
8. Used for function calls and local variables
information hiding
assignment statement
stack
type coercion
9. A recursive function typically has two components: One that provides a means for the recursion to terminate by testing for a(n) ________ case and one that expresses the problem as a recursive call for a slightly simpler problem than the original call
binary operator
base
local variable
two-dimensional
10. 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
11. The only integer that can be assigned directly to a pointer is_____________.
reserve words
object file
0
function call
12. Type casting syntax
void
a.out
globals
static_cast<char>(65)
13. An operator that can only be used with int values. result will always be an int.
prompt
definition
% modulus
if
14. A C++ statement that makes a decision is ______.
Preprocessor
like-type expression
if
const datatype identifier = value
15. The ________ statement in a called function passes the value of an expression back to the calling function.
Literals
initialized
#include directive
return
16. The escape sequence n represents the _________ character which causes the cursor to position to the beginning of the next line on the screen.
void
new line
function scope
attributes
17. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.
*
operator
object-oriented analysis and design (OOAD)
globals
18. A set of values together with a set of operations
reserved words
Literals
data type
a.out
19. The __________ operator reclaims memory previously allocated by new.
setw
delete
object file
variables
20. Identifier or expression that is part of the calculation to be performed
information hiding
operand value
*
before
21. The process of analyzing and designing a system from an object-oriented point of view is called ________.
editor
information hiding
object-oriented analysis and design (OOAD)
Counter-controlled or definite
22. Two slash marks ( // ) indicate __________ of a comment
Arithmetic Operators
public
beginning
unary operator
23. A________ allows the compiler to check the number & types and order of the arguments passed to a function.
function prototype
cin.get(ch)
//
beginning
24. * / % + -
return
type coercion
pointer
Arithmetic Operators
25. A memory location with a name and data type - its content may be changed during program execution
operand value
>>
whitespace
variable
26. Sets floating-point values to a fixed decimal format
searching
fixed
cin >> variable
return
27. The sign you use for pointers
*
arithmetic expression
information hiding
polymorphism
28. These are data items whose values do not change while the program is running
Literals
polymorphism
overloading
Sentinel
29. Repeating a set of instructions a specific number of times is called_________repetition.
Counter-controlled or definite
beginning
a.out
linker
30. __________ can be used to assign an object of a class to another object of the same class.
global
Default memberwise assignment
Closing brace
a.out
31. This manipulator causes the field to be left-justified with padding spaces printed to the right.
delete
operator overloading
left
recursive
32. A type of pointer that can point at objects of any data type.
subscript (or index)
fstream
void pointer
local variable
33. The sign you use for references
new line
static
&
scope
34. = & | are examples of ____________.
private
integer operands
special symbols
void
35. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________
break
operator overloading
case sensitive
?
36. Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise.
auto
Default memberwise assignment
information hiding
base class
37. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.
this
Preprocessor
beginning
binary operator
38. Allows the programmer to store a value in a variable
function prototype
int values
assignment statement
void
39. If a member initializer is not provided for a member object of a class the object's __________ is called.
constant variable
Arithmetic Operators
default constructor
overloading
40. The three ways to return control from a called function to a caller are ________ - return expression and encounter.
Default memberwise assignment
arithmetic expression
.cpp
return
41. A variable that holds the address of another variable.
mixed expression
0
assignment
pointer
42. Smallest individual unit of a programming language - special symbols or word symbols or identifiers
token
::
named constant
0
43. For every opening brace in a C++ program there must be a ______________.
heap
Closing brace
Preprocessor
prompt
44. Message displayed to the screen asking user for input; generated with an output statement
const datatype identifier = value
member
template
prompt
45. The elements of an array are related by the fact that they have the same name and ___________.
recursive
preprocessor
type
.cpp
46. 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
associations
//
void
47. Words that are used for special purposes in a program
<<
scope resolution operator
showpoint
reserved words
48. Executable version of program
object file
searching
cin >> variable
if
49. The idea that you can call the same function and the output will depend on the type of object you're using.
0
polymorphism
operand value
semicolon
50. The _____ causes the contents of another file to be inserted into a program.
case sensitive
comments
#include directive
if