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. newline
opened
object file
non-static
n
2. The ________ program combines the output of the compiler with various library functions to produce an executable image.
arithmetic expression
virtual functions
Closing brace
linker
3. These are data items whose values do not change while the program is running
base
<<
reserve words
Literals
4. The three ways to return control from a called function to a caller are ________ - return expression and encounter.
vectors
reserve words
return
dot (.)
5. The size & shape & color and weight of an object are considered
floating-point
function call
attributes
strcpy()
6. Default name of executable file
if...else
::
data type
a.out
7. Operator with two operands
beginning
binary operator
floating-point
constant variable
8. The symbol for the binary scope resolution operator
::
if...else
<<
whitespace
9. Allows the programmer to store a value in a variable
assignment statement
searching
static_cast<char>(65)
operator
10. A program that finds and attaches to your program the indicated libraries for compilation
preprocessor
assignment statement
void
fixed
11. The process of placing the elements of an array in order is called ________ the array.
sorting
t
token
const
12. tab
syntax
t
reserve words
selection
13. Characters used to separate symbols or reserved words or identifiers and statements
whitespace
Semicolon
this
break
14. Classes can have relationships with other classes. These relationships are called ________.
two-dimensional
*
inline functions
associations
15. The ________ statement in a called function passes the value of an expression back to the calling function.
Semicolon
source file
return
recursive
16. int namespace include using return examples of ___________
overloading
source file
syntax
reserve words
17. This is used to mark the end of a complete C++ programming statement.
escape sequences
#include <headerfilename>
scope resolution operator
Semicolon
18. A variable that is known only within the function in which it is defined is called a ________.
endl (same as 'n')
local variable
base class
case sensitive
19. A ________ program executes before the compiler's translation phase begins.
constant variable
static_cast<char>(65)
preprocessor
operator overloading
20. 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.
semicolon
void
operand value
globals
21. The sign you use for pointers
allocating memory
left
const datatype identifier = value
*
22. A type of pointer that can point at objects of any data type.
break
preprocessor
type
void pointer
23. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.
getline
//
template
data type
24. Operator with only one operand
classes
void
left
unary operator
25. A function that calls itself either directly or indirectly - through another function) - is a ________ function.
recursive
public
definition
floating-point
26. 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
base
assignment
left
attributes
27. Executable version of program
virtual functions
object file
this
preprocessor
28. Repeating a set of instructions a specific number of times is called_________repetition.
static
comments
Counter-controlled or definite
register
29. A variable declared outside any block or function is a ________ variable.
strcpy()
global
strlen()
continue
30. A variable that holds the address of another variable.
address
*
pointer
editor
31. Every C++ statement ends with a(n) _________.
allocating memory
semicolon
unary operator
access specifier
32. Used to qualify hidden names so that they can be used.
function overloading
cin >> variable
Arithmetic Operators
scope resolution operator
33. * / % + -
const
Arithmetic Operators
void
Preprocessor
34. The three values that can be used to initialize a pointer are 0 - __________ and an address.
initialized
register
NULL
private
35. = & | are examples of ____________.
special symbols
function call
setw
&
36. If a member initializer is not provided for a member object of a class the object's __________ is called.
default constructor
vectors
comments
stack
37. A filestream variable that represents the default output device
cout
register
//
Arithmetic Operators
38. The process of analyzing and designing a system from an object-oriented point of view is called ________.
if...else
void
Default memberwise assignment
object-oriented analysis and design (OOAD)
39. Symbol that denotes an action to be performed
operator
globals
reserved words
showpoint
40. A C++ statement that makes a decision is ______.
whitespace
if
char
strcpy()
41. Function _________ from the <string> library reads characters until a newline character is encountered - then copies those characters into the specified string.
object file
#include directive
Unified Modeling Language(UML)
getline
42. It is possible to have various functions with the same name that operate on different types or numbers of arguments. This is called function ________.
overloading
inline functions
definition
void
43. A __________ should be used to declare the size of an array because it makes the program more scalable.
reserve words
fixed
::
constant variable
44. The ________ of an identifier is the portion of the program in which the identifier can be used.
char
scope
0
special symbols
45. data types that refer to numbers with decimals
static
floating-point
syntax
srand
46. Message displayed to the screen asking user for input; generated with an output statement
prompt
globals
Arithmetic Operators
Default memberwise assignment
47. A function ________ enables a single function to be defined to perform a task on many different data types.
template
::
const datatype identifier = value
setw
48. Program components in C++ are called functions and ________.
local variable
classes
auto
vectors
49. In inheritance the ____________ is the class that supplies the inherited members.
assignment
semicolon
left
base class
50. The escape sequence n represents the _________ character which causes the cursor to position to the beginning of the next line on the screen.
strlen()
new line
unary scope resolution operator (::)
break