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. An array that uses two subscripts is referred to as a(n) _________ array.
continue
Closing brace
return
two-dimensional
2. 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.
beginning
virtual functions
void pointer
new line
3. Used to qualify hidden names so that they can be used.
function prototype
allocating memory
Closing brace
scope resolution operator
4. A memory location with a name and data type and a value - its content (value) cannot be changed during program execution
virtual functions
named constant
fixed
#include <headerfilename>
5. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________
% modulus
getline
0
operator overloading
6. C++ programs are normally typed into a computer using a(n) ________ program.
type
editor
strlen()
default constructor
7. In inheritance the ____________ is the class that supplies the inherited members.
opened
base class
assignment
editor
8. A function that calls itself
recursive function
local variable
integer operands
register
9. A variable declared outside any block or function is a ________ variable.
scope resolution operator
ofstream
global
{ }
10. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')
assignment statement
char
recursive function
&
11. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.
fixed
mixed expression
beginning
void
12. Every C++ program begins execution at the function _________.
derived class
main
::
Unified Modeling Language(UML)
13. A pointer is a variable that contains as its value the____________ of another variable.
srand
void pointer
Closing brace
address
14. To explicitly indicate that a value is to be converted to another type
static
assignment statement
type casting (conversion)
stack
15. int namespace include using return examples of ___________
endl (same as 'n')
token
n
reserve words
16. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.
named constant
friend
fixed
scope resolution operator
17. A function ________ enables a single function to be defined to perform a task on many different data types.
cin >> variable
access specifier
template
local variable
18. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.
this
identifiers
binary operator
function overloading
19. Meaning of the instructions in the language; compiler cannot find these errors - often called logic errors
{ }
information hiding
semantics
beginning
20. The address-of operator. it is used to assign pointers and to print the address of variables.
&
>>
cin.get(ch)
inheritance
21. Function _________ from the <string> library reads characters until a newline character is encountered - then copies those characters into the specified string.
return
access specifier
local variable
getline
22. Names of things that are used in a program - can apply to variables & constants and functions
rand
identifiers
endl (same as 'n')
*
23. Smallest individual unit of a programming language - special symbols or word symbols or identifiers
token
const
showpoint
.cpp
24. Header file that contains commonly performed mathematical functions
heap
searching
integer operands
cmath
25. The ________ of an identifier is the portion of the program in which the identifier can be used.
type coercion
scope
prompt
base
26. Member objects are constructed __________ their enclosing class object.
information hiding
operator overloading
before
strcpy()
27. Syntax for reading char type variables by extracting one nonwhitespace character extracted at a time
cin >> variable
ofstream
a.out
operator overloading
28. The storage-class specifiers are mutable - auto - ________ - extern and static.
register
classes
constant variable
vectors
29. The three ways to return control from a called function to a caller are ________ - return expression and encounter.
return
Sentinel
&
.cpp
30. The six possible scopes of an identifier are ________ - file scope - block scope - function-prototype scope - class scope - namespace scope .
return
a.out
function scope
default constructor
31. The symbol for the binary scope resolution operator
cin >> variable
::
classes
showpoint
32. In inheritance the ____________ is the class the receives the inherited members.
global
derived class
cout
assignment statement
33. 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
function overloading
getline
Arithmetic Operators
34. A __________ data member represents class-wide information.
static
int values
endl (same as 'n')
type coercion
35. Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise.
reserve words
::
ofstream
auto
36. 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
37. Initializers __________ must be used to initialize constant members of a class.
const
member
delete
inheritance
38. A sequence of operands and operators that describe a calculation to be performed
arithmetic expression
cmath
&
int values
39. A variable that holds the address of another variable.
setw
pointer
<<
editor
40. Lists and tables of values can be stored in arrays or __________.
.cpp
vectors
const
editor
41. A C++ statement that makes a decision is ______.
recursive
cin
if
public
42. Can be used as a compound "if" statement. it includes a number of different possibilities and directions rather than a single test.
switch
Unified Modeling Language(UML)
subscript (or index)
strcpy()
43. Creates a copy of a string.
Stack overflow
source file
function scope
strcpy()
44. Two slash marks ( // ) indicate __________ of a comment
a.out
inheritance
beginning
getline
45. Message displayed to the screen asking user for input; generated with an output statement
subscript (or index)
assignment
prompt
classes
46. The modulus operator (%) can be used only with __________.
identifiers
operator overloading
Preprocessor
integer operands
47. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.
template
strlen()
//
int values
48. A variable that is known only within the function in which it is defined is called a ________.
//
local variable
identifiers
initialized
49. The ________ program combines the output of the compiler with various library functions to produce an executable image.
linker
operator
Sentinel
Literals
50. When it is not known in advance how many times a set of statements will be repeated a _________value can be used to terminate the repetition.
Sentinel
identifiers
*
public
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests