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. To explicitly indicate that a value is to be converted to another type
loader
derived class
type casting (conversion)
pointer
2. Nonexecutable statements that are included in a program to provide information about what the program does etc.
register
type
comments
&
3. 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.
continue
const
void
if
4. Keyword public is a(n) _________
fstream
access specifier
Literals
template
5. Use 2 characters to represent one
continue
escape sequences
derived class
t
6. Syntax for named constant declaration
Unified Modeling Language(UML)
const datatype identifier = value
reserved words
register
7. All ______ must be declared before they are used.
cmath
>>
variables
selection
8. A variable that is known only within the function in which it is defined is called a ________.
local variable
#include <headerfilename>
scope resolution operator
t
9. The sign you use for references
&
cin >> variable
showpoint
if...else
10. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.
void
#include <headerfilename>
template
function call
11. Sets floating-point values to a fixed decimal format
reserve words
strlen()
polymorphism
fixed
12. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')
>>
char
preprocessor
reserve words
13. In inheritance the ____________ is the class that supplies the inherited members.
::
variables
base class
getline
14. The escape sequence n represents the _________ character which causes the cursor to position to the beginning of the next line on the screen.
new line
strlen()
editor
% modulus
15. tab
t
//
loader
register
16. 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
overloading
token
base
floating-point
17. A memory location with a name and data type and a value - its content (value) cannot be changed during program execution
unary operator
//
named constant
attributes
18. Used for dynamically allocated variables
register
heap
binary operator
special symbols
19. The ________ of an identifier is the portion of the program in which the identifier can be used.
break
::
variable
scope
20. The number used to refer to a particular element of an array is called its ________.
function overloading
subscript (or index)
continue
like-type expression
21. A C++ statement that makes a decision is ______.
public
endl (same as 'n')
0
if
22. Function ________ is used to set the random number seed to randomize a program.
srand
integer operands
polymorphism
void
23. A human readable file that contains C++ program
non-static
source file
friend
register
24. For a local variable in a function to retain its value between calls to the function it must be declared with the ________ storage-class specifier.
static
delete
type casting (conversion)
{ }
25. Repeating a set of instructions a specific number of times is called_________repetition.
template
prompt
dot (.)
Counter-controlled or definite
26. The size & shape & color and weight of an object are considered
default constructor
attributes
ofstream
static
27. The stream extraction operator
strlen()
variables
whitespace
>>
28. The symbol for the binary scope resolution operator
delete
::
Literals
Stack overflow
29. Words that are used for special purposes in a program
pointer
classes
overloading
reserved words
30. The storage-class specifiers are mutable - auto - ________ - extern and static.
globals
comments
register
linker
31. = & | are examples of ____________.
*
named constant
special symbols
mixed expression
32. If a member initializer is not provided for a member object of a class the object's __________ is called.
return
sorting
virtual functions
default constructor
33. Message displayed to the screen asking user for input; generated with an output statement
prompt
const datatype identifier = value
char
comments
34. A __________ data member represents class-wide information.
void
Counter-controlled or definite
static
operator
35. A sequence of operands and operators that describe a calculation to be performed
global
Literals
arithmetic expression
fixed
36. The sign you use for pointers
data type
sorting
function parameters
*
37. 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
38. Symbol that denotes an action to be performed
::
cin.get(ch)
data type
operator
39. Lists and tables of values can be stored in arrays or __________.
vectors
void
static
?
40. A function that calls itself either directly or indirectly - through another function) - is a ________ function.
globals
continue
recursive
associations
41. Member objects are constructed __________ their enclosing class object.
cin
globals
before
semicolon
42. Function _________ from the <string> library reads characters until a newline character is encountered - then copies those characters into the specified string.
NULL
loader
getline
information hiding
43. Operator with two operands
int values
NULL
dot (.)
binary operator
44. A set of values together with a set of operations
data type
function call
srand
global
45. In inheritance the ____________ is the class the receives the inherited members.
derived class
void
Unified Modeling Language(UML)
if...else
46. The source-code file and any other files that use a class can include the class's header file via an _________ preprocessor directive.
t
#include
?
floating-point
47. An array that uses two subscripts is referred to as a(n) _________ array.
two-dimensional
pointer
linker
polymorphism
48. All C++ Variables are_________.
searching
case sensitive
function call
comments
49. The idea that you can call the same function and the output will depend on the type of object you're using.
polymorphism
this
member
access specifier
50. A variable that holds the address of another variable.
comments
pointer
*
member