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 symbol for the binary scope resolution operator
overloading
type coercion
::
Counter-controlled or definite
2. Every C++ statement ends with a(n) _________.
loader
#include <headerfilename>
register
semicolon
3. Creates a copy of a string.
Preprocessor
auto
strcpy()
main
4. The three values that can be used to initialize a pointer are 0 - __________ and an address.
NULL
prompt
opened
type
5. Used to qualify hidden names so that they can be used.
fixed
static
scope resolution operator
public
6. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.
operator overloading
Unified Modeling Language(UML)
derived class
function parameters
7. Program components in C++ are called functions and ________.
opened
operator
const datatype identifier = value
classes
8. If a member initializer is not provided for a member object of a class the object's __________ is called.
static_cast<char>(65)
variable
default constructor
Counter-controlled or definite
9. You can declare default values for a function in the ____________________.
function parameters
integer operands
inheritance
comments
10. Default name of executable file
const
a.out
operator
unary scope resolution operator (::)
11. The process of placing the elements of an array in order is called ________ the array.
sorting
#include directive
case sensitive
Semicolon
12. Allows the programmer to store a value in a variable
#include
const
assignment statement
mixed expression
13. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.
prompt
loader
selection
this
14. 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
15. Symbol that denotes an action to be performed
operator
global
fstream
operator overloading
16. C++ programs are normally typed into a computer using a(n) ________ program.
&
void pointer
editor
default constructor
17. A memory location with a name and data type - its content may be changed during program execution
variable
integer operands
beginning
before
18. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.
void
srand
getline
token
19. The process of analyzing and designing a system from an object-oriented point of view is called ________.
object-oriented analysis and design (OOAD)
#include <headerfilename>
scope resolution operator
.cpp
20. The number used to refer to a particular element of an array is called its ________.
void
non-static
semantics
subscript (or index)
21. An expression that has operands with different data types
mixed expression
heap
data type
showpoint
22. The ________ program transfers the executable image of a C++ program from disk to memory.
loader
new line
beginning
variables
23. The new operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.
delete
pointer
return
fixed
24. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.
break
opened
function overloading
like-type expression
25. A function is invoked with a ________.
Default memberwise assignment
unary scope resolution operator (::)
function call
object-oriented analysis and design (OOAD)
26. A file must be ________ before data can be written to or read from it.
integer operands
cin
data type
opened
27. The modulus operator (%) can be used only with __________.
integer operands
left
if
function prototype
28. data types that refer to numbers with decimals
escape sequences
char
floating-point
break
29. Executable version of program
function call
delete
object file
auto
30. Used for function calls and local variables
stack
assignment
auto
return
31. Nonexecutable statements that are included in a program to provide information about what the program does etc.
cin >> variable
comments
void
data type
32. Whole numbers - no decimals and no commas included
source file
int values
recursive
object file
33. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')
char
allocating memory
type casting (conversion)
case sensitive
34. The sign you use for pointers
*
classes
strlen()
<<
35. Preprocessor directive syntax
#include <headerfilename>
variable
derived class
const
36. The six possible scopes of an identifier are ________ - file scope - block scope - function-prototype scope - class scope - namespace scope .
address
function scope
vectors
0
37. A________ allows the compiler to check the number & types and order of the arguments passed to a function.
function prototype
strcmp()
register
void
38. A filestream variable that represents the default output device
recursive
cout
Unified Modeling Language(UML)
member
39. The keyword __________ specifies that an object or variable is not modifiable after it is initialized.
floating-point
variable
recursive function
const
40. The idea that you can call the same function and the output will depend on the type of object you're using.
Default memberwise assignment
/n
polymorphism
source file
41. A function that calls itself either directly or indirectly - through another function) - is a ________ function.
non-static
binary operator
scope resolution operator
recursive
42. 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.
address
variable
continue
//
43. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.
register
classes
#include <headerfilename>
srand
44. A pointer is a variable that contains as its value the____________ of another variable.
char
type coercion
NULL
address
45. OOD also takes advantage of ________ relationships where new classes of objects are derived by absorbing characteristics of existing classes - then adding unique characteristics of their own.
arithmetic expression
object-oriented analysis and design (OOAD)
new line
inheritance
46. Returns the length of a string excluding the null terminator.
like-type expression
access specifier
strlen()
this
47. The escape sequence n represents the _________ character which causes the cursor to position to the beginning of the next line on the screen.
&
object file
new line
operator overloading
48. A function ________ enables a single function to be defined to perform a task on many different data types.
searching
preprocessor
template
void
49. 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
classes
named constant
Preprocessor
50. Forces the computer to display decimal point and trailing zeroes
showpoint
void
operand value
return