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. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.
//
token
#include <headerfilename>
t
2. The process of analyzing and designing a system from an object-oriented point of view is called ________.
attributes
object-oriented analysis and design (OOAD)
::
Preprocessor
3. A filestream variable that represents the default input source
syntax
cin
assignment
function scope
4. When a value of one data type is implicitly (automatically) changed to another data type
type coercion
before
binary operator
beginning
5. All ______ must be declared before they are used.
variables
function prototype
integer operands
srand
6. Repeating a set of instructions a specific number of times is called_________repetition.
heap
cmath
ofstream
Counter-controlled or definite
7. Class members are accessed via the ________ operator in conjunction with the name of an object (or reference to an object) of the class or via the arrow (->) operator in conjunction with a pointer to an object of the class.
dot (.)
% modulus
case sensitive
{ }
8. A filestream variable that represents the default output device
cout
initialized
reserve words
void pointer
9. 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
searching
continue
base
function call
10. Words that are used for special purposes in a program
reserved words
switch
non-static
searching
11. If a member initializer is not provided for a member object of a class the object's __________ is called.
default constructor
this
function overloading
object-oriented analysis and design (OOAD)
12. Preprocessor directive syntax
whitespace
#include <headerfilename>
&
Unified Modeling Language(UML)
13. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.
friend
dot (.)
this
/n
14. The stream insertion operator
private
<<
preprocessor
comments
15. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.
variables
function call
cin
classes
16. Function ________ is used to produce random numbers.
comments
initialized
rand
data type
17. A __________ should be used to declare the size of an array because it makes the program more scalable.
constant variable
.cpp
Literals
attributes
18. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________
member
operator overloading
<<
return
19. tab
public
t
attributes
function overloading
20. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.
break
% modulus
integer operands
vectors
21. 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.
void
polymorphism
% modulus
auto
22. Naming convention for C++ programs
rand
object file
.cpp
token
23. Smallest individual unit of a programming language - special symbols or word symbols or identifiers
assignment
before
token
cin >> variable
24. The process of determining if an array contains a particular key value is called _________ the array.
whitespace
special symbols
?
searching
25. Every C++ program begins execution at the function _________.
::
showpoint
main
loader
26. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.
#include <headerfilename>
heap
register
function prototype
27. Compares two strings and returns 0 if they are equal.
type casting (conversion)
strcmp()
whitespace
function call
28. Executable version of program
object file
a.out
auto
Closing brace
29. A set of values together with a set of operations
default constructor
constant variable
integer operands
data type
30. The ________ enables access to a global variable with the same name as a variable in the current scope.
inline functions
loader
unary scope resolution operator (::)
identifiers
31. A constant object must be __________; it cannot be modified after it is created.
subscript (or index)
switch
initialized
Literals
32. Function ________ is used to set the random number seed to randomize a program.
Semicolon
template
srand
function overloading
33. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.
semantics
object-oriented analysis and design (OOAD)
globals
recursive
34. Characters used to separate symbols or reserved words or identifiers and statements
derived class
assignment
whitespace
//
35. The __________ operator reclaims memory previously allocated by new.
#include
delete
#include <headerfilename>
scope resolution operator
36. Class members specified as _________ are accessible only to member functions of the class and friends of the class.
sorting
private
dot (.)
allocating memory
37. The address-of operator. it is used to assign pointers and to print the address of variables.
&
n
reserve words
editor
38. C++ programs are normally typed into a computer using a(n) ________ program.
before
loader
editor
srand
39. Whole numbers - no decimals and no commas included
whitespace
if
n
int values
40. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.
whitespace
inheritance
function overloading
floating-point
41. This is used to mark the end of a complete C++ programming statement.
Semicolon
base
like-type expression
derived class
42. 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
43. Classes can have relationships with other classes. These relationships are called ________.
assignment
associations
Closing brace
cin >> variable
44. The ________ of an identifier is the portion of the program in which the identifier can be used.
operator overloading
left
scope
classes
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.
token
function parameters
inheritance
virtual functions
46. Used to qualify hidden names so that they can be used.
definition
information hiding
scope resolution operator
classes
47. Syntax for reading char type variables by extracting one nonwhitespace character extracted at a time
cmath
local variable
cin >> variable
*
48. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.
type
#include <headerfilename>
Unified Modeling Language(UML)
data type
49. Can be used as a compound "if" statement. it includes a number of different possibilities and directions rather than a single test.
void pointer
const
switch
operator
50. newline
n
type casting (conversion)
Arithmetic Operators
semantics