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. A function that calls itself
recursive function
cin
continue
subscript (or index)
2. The storage-class specifiers are mutable - auto - ________ - extern and static.
object-oriented analysis and design (OOAD)
register
Semicolon
ofstream
3. A variable that holds the address of another variable.
pointer
sorting
Literals
Stack overflow
4. A sequence of operands and operators that describe a calculation to be performed
inheritance
opened
prompt
arithmetic expression
5. C++ programs are normally typed into a computer using a(n) ________ program.
editor
classes
scope
register
6. Characters used to separate symbols or reserved words or identifiers and statements
ofstream
?
if...else
whitespace
7. Function ________ is used to produce random numbers.
if...else
before
rand
#include
8. A variable declared outside any block or function is a ________ variable.
operator
access specifier
unary scope resolution operator (::)
global
9. The keyword __________ specifies that an object or variable is not modifiable after it is initialized.
break
const
cin.get(ch)
assignment
10. Sets floating-point values to a fixed decimal format
fixed
0
local variable
a.out
11. Default name of executable file
a.out
function scope
base
token
12. The number used to refer to a particular element of an array is called its ________.
before
recursive function
subscript (or index)
identifiers
13. 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.
void
::
unary scope resolution operator (::)
new line
14. Creates a copy of a string.
::
Semicolon
strcpy()
sorting
15. All ______ must be declared before they are used.
scope resolution operator
stack
n
variables
16. A program that finds and attaches to your program the indicated libraries for compilation
cin
base
preprocessor
classes
17. Two slash marks ( // ) indicate __________ of a comment
special symbols
beginning
Counter-controlled or definite
syntax
18. Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise.
prompt
strcpy()
auto
Semicolon
19. A set of values together with a set of operations
data type
initialized
Literals
recursive function
20. Words that are used for special purposes in a program
reserved words
Default memberwise assignment
friend
strlen()
21. To explicitly indicate that a value is to be converted to another type
function scope
function call
type casting (conversion)
#include
22. Symbol that denotes an action to be performed
operator
variables
data type
register
23. The_________selection statement is used to execute one action when a condition is TRue or a different action when that condition is false.
if...else
n
#include <headerfilename>
two-dimensional
24. A C++ statement that makes a decision is ______.
if
variables
assignment
scope
25. This is used to mark the end of a complete C++ programming statement.
{ }
Semicolon
classes
preprocessor
26. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.
associations
Sentinel
Unified Modeling Language(UML)
binary operator
27. __________ can be used to assign an object of a class to another object of the same class.
Default memberwise assignment
beginning
cin
n
28. 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.
type coercion
cout
information hiding
private
29. A function that calls itself either directly or indirectly - through another function) - is a ________ function.
recursive
scope
unary operator
operator overloading
30. Operator with two operands
binary operator
delete
classes
private
31. An expression in which all operands have the same data type - result will have the same data type as operands
like-type expression
associations
template
object file
32. 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.
beginning
linker
dot (.)
comments
33. Used to qualify hidden names so that they can be used.
scope resolution operator
virtual functions
sorting
identifiers
34. A function ________ enables a single function to be defined to perform a task on many different data types.
function scope
template
return
return
35. Message displayed to the screen asking user for input; generated with an output statement
setw
Default memberwise assignment
prompt
assignment
36. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.
strcpy()
function overloading
source file
cout
37. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.
assignment statement
classes
{ }
searching
38. The six possible scopes of an identifier are ________ - file scope - block scope - function-prototype scope - class scope - namespace scope .
left
syntax
return
function scope
39. An array that uses two subscripts is referred to as a(n) _________ array.
void pointer
initialized
pointer
two-dimensional
40. This manipulator is used to establish a field width for the value immediately following it.
setw
recursive function
0
unary scope resolution operator (::)
41. A filestream variable that represents the default output device
global
const
endl (same as 'n')
cout
42. Class members specified as _________ are accessible only to member functions of the class and friends of the class.
break
>>
private
classes
43. A________ allows the compiler to check the number & types and order of the arguments passed to a function.
before
function prototype
private
escape sequences
44. A member function should be declared static if it does not access __________ class members.
derived class
floating-point
non-static
operator overloading
45. Forces the computer to display decimal point and trailing zeroes
beginning
if...else
void pointer
showpoint
46. The elements of an array are related by the fact that they have the same name and ___________.
named constant
type
definition
&
47. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.
getline
t
return
Stack overflow
48. In inheritance the ____________ is the class the receives the inherited members.
getline
case sensitive
derived class
searching
49. The idea that you can call the same function and the output will depend on the type of object you're using.
polymorphism
pointer
virtual functions
mixed expression
50. This manipulator causes the field to be left-justified with padding spaces printed to the right.
>>
left
friend
type