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. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.
static_cast<char>(65)
reserve words
/n
Unified Modeling Language(UML)
2. In inheritance the ____________ is the class the receives the inherited members.
integer operands
fixed
srand
derived class
3. For every opening brace in a C++ program there must be a ______________.
this
object-oriented analysis and design (OOAD)
return
Closing brace
4. Keyword public is a(n) _________
access specifier
data type
return
special symbols
5. 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.
syntax
function call
{ }
void
6. A variable that holds the address of another variable.
Arithmetic Operators
ofstream
non-static
pointer
7. The keyword __________ specifies that an object or variable is not modifiable after it is initialized.
unary operator
NULL
loader
const
8. int namespace include using return examples of ___________
reserve words
operator
stack
&
9. A variable that is known only within the function in which it is defined is called a ________.
this
static_cast<char>(65)
local variable
getline
10. The six possible scopes of an identifier are ________ - file scope - block scope - function-prototype scope - class scope - namespace scope .
void
escape sequences
Semicolon
function scope
11. A member function should be declared static if it does not access __________ class members.
rand
object file
non-static
static_cast<char>(65)
12. An operator that can only be used with int values. result will always be an int.
pointer
return
% modulus
loader
13. Associate an identifier with a memory location
arithmetic expression
cin.get(ch)
type
allocating memory
14. The _____ causes the contents of another file to be inserted into a program.
selection
Closing brace
#include directive
setw
15. These are data items whose values do not change while the program is running
semantics
Literals
editor
member
16. A variable declared outside any block or function is a ________ variable.
Counter-controlled or definite
.cpp
getline
global
17. Characters used to separate symbols or reserved words or identifiers and statements
whitespace
//
comments
overloading
18. A ________ program executes before the compiler's translation phase begins.
register
preprocessor
static
named constant
19. A function that can be used to read character data including whitespace
void pointer
member
cin.get(ch)
recursive function
20. Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise.
unary scope resolution operator (::)
strcpy()
auto
editor
21. Header file that contains commonly performed mathematical functions
cmath
int values
void
% modulus
22. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.
?
unary scope resolution operator (::)
classes
base class
23. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.
inline functions
recursive function
static
Stack overflow
24. A constant object must be __________; it cannot be modified after it is created.
recursive
initialized
new line
syntax
25. Sets floating-point values to a fixed decimal format
globals
fixed
binary operator
data type
26. When a value of one data type is implicitly (automatically) changed to another data type
type coercion
public
floating-point
pointer
27. tab
stack
opened
t
polymorphism
28. A sequence of operands and operators that describe a calculation to be performed
operator
recursive function
void
arithmetic expression
29. A __________ data member represents class-wide information.
initialized
globals
static
break
30. Operator with only one operand
unary operator
recursive
inline functions
rand
31. Executable version of program
template
prompt
global
object file
32. Creates a copy of a string.
editor
strcpy()
continue
function call
33. The ________ program combines the output of the compiler with various library functions to produce an executable image.
Stack overflow
static_cast<char>(65)
linker
pointer
34. This is used to mark the end of a complete C++ programming statement.
global
comments
if
Semicolon
35. Meaning of the instructions in the language; compiler cannot find these errors - often called logic errors
semantics
char
information hiding
member
36. The size & shape & color and weight of an object are considered
attributes
{ }
definition
global
37. Every C++ program begins execution at the function _________.
register
attributes
main
n
38. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________
Semicolon
operator overloading
local variable
special symbols
39. 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.
whitespace
identifiers
inheritance
dot (.)
40. A set of values together with a set of operations
derived class
pointer
//
data type
41. 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
42. The address-of operator. it is used to assign pointers and to print the address of variables.
Semicolon
unary operator
&
virtual functions
43. Default name of executable file
data type
delete
a.out
static
44. An expression that has operands with different data types
mixed expression
escape sequences
Literals
classes
45. __________ can be used to assign an object of a class to another object of the same class.
NULL
Default memberwise assignment
template
void
46. The stream insertion operator
<<
a.out
syntax
named constant
47. A function that calls itself
recursive function
searching
global
stack
48. 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.
Preprocessor
information hiding
NULL
prompt
49. Identifier or expression that is part of the calculation to be performed
if...else
operand value
Semicolon
this
50. A________ allows the compiler to check the number & types and order of the arguments passed to a function.
function prototype
const datatype identifier = value
opened
continue