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 idea that you can call the same function and the output will depend on the type of object you're using.
pointer
polymorphism
cin >> variable
unary scope resolution operator (::)
2. You must have a ___________ for every variable you intend to use in a program
subscript (or index)
>>
definition
register
3. Operator with two operands
binary operator
prompt
inline functions
type coercion
4. A variable that is known only within the function in which it is defined is called a ________.
opened
endl (same as 'n')
{ }
local variable
5. To explicitly indicate that a value is to be converted to another type
type casting (conversion)
non-static
auto
endl (same as 'n')
6. The __________ operator reclaims memory previously allocated by new.
initialized
delete
fixed
a.out
7. All C++ Variables are_________.
member
ofstream
case sensitive
cin.get(ch)
8. Symbol that denotes an action to be performed
variables
>>
delete
operator
9. The size & shape & color and weight of an object are considered
comments
Closing brace
static
attributes
10. A member function should be declared static if it does not access __________ class members.
non-static
allocating memory
constant variable
operator overloading
11. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.
new line
default constructor
Preprocessor
void
12. An operator that can only be used with int values. result will always be an int.
sorting
Sentinel
% modulus
overloading
13. The ________ of an identifier is the portion of the program in which the identifier can be used.
scope
inline functions
strlen()
subscript (or index)
14. A set of values together with a set of operations
/n
case sensitive
data type
definition
15. The sign you use for pointers
like-type expression
*
base class
main
16. Initializers __________ must be used to initialize constant members of a class.
//
opened
member
object file
17. The _________ begins the body of every function and the _________ ends the body of every function.
whitespace
subscript (or index)
{ }
Closing brace
18. The ________ statement in a called function passes the value of an expression back to the calling function.
return
getline
::
fixed
19. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________
access specifier
variables
NULL
operator overloading
20. A memory location with a name and data type and a value - its content (value) cannot be changed during program execution
identifiers
named constant
0
return
21. Meaning of the instructions in the language; compiler cannot find these errors - often called logic errors
?
semantics
variable
semicolon
22. Associate an identifier with a memory location
selection
cmath
scope resolution operator
allocating memory
23. A __________ should be used to declare the size of an array because it makes the program more scalable.
constant variable
Arithmetic Operators
global
#include <headerfilename>
24. tab
rand
variable
cmath
t
25. All ______ must be declared before they are used.
variables
void
template
main
26. The process of determining if an array contains a particular key value is called _________ the array.
searching
strlen()
token
variables
27. 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.
>>
#include
recursive
virtual functions
28. Every C++ statement ends with a(n) _________.
/n
loader
0
semicolon
29. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')
char
reserve words
initialized
fstream
30. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.
char
this
delete
&
31. = & | are examples of ____________.
srand
Semicolon
semicolon
special symbols
32. The ________ program transfers the executable image of a C++ program from disk to memory.
NULL
constant variable
source file
loader
33. Identifier or expression that is part of the calculation to be performed
static
information hiding
this
operand value
34. Creates a copy of a string.
>>
strcpy()
pointer
operator
35. The process of analyzing and designing a system from an object-oriented point of view is called ________.
object-oriented analysis and design (OOAD)
semicolon
rand
escape sequences
36. These are data items whose values do not change while the program is running
Arithmetic Operators
associations
private
Literals
37. A function that calls itself either directly or indirectly - through another function) - is a ________ function.
Closing brace
Unified Modeling Language(UML)
recursive
binary operator
38. The keyword __________ specifies that an object or variable is not modifiable after it is initialized.
const
token
*
prompt
39. 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.
scope resolution operator
cmath
?
this
40. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.
<<
//
*
prompt
41. In inheritance the ____________ is the class that supplies the inherited members.
information hiding
non-static
base class
Literals
42. Sets floating-point values to a fixed decimal format
fixed
#include <headerfilename>
classes
char
43. Header file that contains commonly performed mathematical functions
Unified Modeling Language(UML)
stack
source file
cmath
44. Grammar rules of the language; compiler will try to identify and locate syntax errors
syntax
const
heap
opened
45. Default name of executable file
{ }
a.out
subscript (or index)
variables
46. An array that uses two subscripts is referred to as a(n) _________ array.
associations
two-dimensional
cmath
?
47. 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.
whitespace
binary operator
information hiding
NULL
48. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.
special symbols
public
private
selection
49. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.
inline functions
virtual functions
member
cin.get(ch)
50. To allow file access in a program you must #include this header file.
comments
linker
>>
fstream