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 size & shape & color and weight of an object are considered
attributes
dot (.)
continue
address
2. Class members specified as _________ are accessible anywhere an object of the class is in scope.
public
pointer
function scope
preprocessor
3. Meaning of the instructions in the language; compiler cannot find these errors - often called logic errors
semantics
variable
NULL
before
4. The idea that you can call the same function and the output will depend on the type of object you're using.
reserved words
>>
t
polymorphism
5. When a value of one data type is implicitly (automatically) changed to another data type
setw
prompt
type coercion
selection
6. Used for dynamically allocated variables
source file
void
const
heap
7. Program components in C++ are called functions and ________.
reserved words
classes
/n
floating-point
8. newline
&
void pointer
vectors
n
9. = & | are examples of ____________.
special symbols
ofstream
loader
cin
10. A sequence of operands and operators that describe a calculation to be performed
object file
definition
arithmetic expression
strcmp()
11. A filestream variable that represents the default output device
cout
attributes
Closing brace
const
12. Allows the programmer to store a value in a variable
&
initialized
dot (.)
assignment statement
13. data types that refer to numbers with decimals
floating-point
semicolon
prompt
access specifier
14. A memory location with a name and data type - its content may be changed during program execution
variable
data type
strcpy()
#include <headerfilename>
15. A __________ data member represents class-wide information.
left
getline
static
switch
16. Naming convention for C++ programs
const
Semicolon
virtual functions
.cpp
17. Used for function calls and local variables
overloading
stack
non-static
void
18. You must have a ___________ for every variable you intend to use in a program
void
definition
syntax
public
19. Used to qualify hidden names so that they can be used.
const
scope resolution operator
operator
//
20. All ______ must be declared before they are used.
classes
polymorphism
variables
n
21. Operator with two operands
binary operator
searching
&
base
22. 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.
prompt
<<
Closing brace
void
23. 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
24. 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
editor
const datatype identifier = value
base
setw
25. The elements of an array are related by the fact that they have the same name and ___________.
address
scope resolution operator
cin >> variable
type
26. Operator with only one operand
//
unary operator
floating-point
selection
27. Nonexecutable statements that are included in a program to provide information about what the program does etc.
source file
comments
>>
beginning
28. 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.
const
continue
escape sequences
vectors
29. A set of values together with a set of operations
data type
constant variable
&
*
30. This manipulator causes the field to be left-justified with padding spaces printed to the right.
function prototype
template
left
cin >> variable
31. Identifier or expression that is part of the calculation to be performed
operand value
function call
preprocessor
function prototype
32. tab
Counter-controlled or definite
t
attributes
Literals
33. The only integer that can be assigned directly to a pointer is_____________.
selection
0
assignment
return
34. Member objects are constructed __________ their enclosing class object.
fixed
loader
before
getline
35. Header file that contains commonly performed mathematical functions
Stack overflow
cmath
function scope
initialized
36. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.
operator
continue
register
void
37. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.
identifiers
friend
selection
register
38. Symbol that denotes an action to be performed
operator
two-dimensional
cin.get(ch)
public
39. Keyword public is a(n) _________
access specifier
void
operator overloading
break
40. A __________ should be used to declare the size of an array because it makes the program more scalable.
//
switch
main
constant variable
41. The escape sequence ___ when output with cout and the stream insertion operator - causes the cursor to position to the beginning of the next line on the screen.
this
/n
special symbols
two-dimensional
42. Function ________ is used to set the random number seed to randomize a program.
const
variable
srand
classes
43. Sets floating-point values to a fixed decimal format
heap
cin
fixed
allocating memory
44. Message displayed to the screen asking user for input; generated with an output statement
/n
prompt
showpoint
definition
45. Use 2 characters to represent one
syntax
left
if
escape sequences
46. Returns the length of a string excluding the null terminator.
fstream
two-dimensional
member
strlen()
47. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.
return
Semicolon
void pointer
Stack overflow
48. 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.
type casting (conversion)
virtual functions
Literals
static
49. Preprocessor directive syntax
#include <headerfilename>
definition
register
pointer
50. Most calculations are normally performed by ______ statements.
variables
comments
assignment
initialized