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. Used for function calls and local variables
virtual functions
stack
/n
reserved words
2. The only integer that can be assigned directly to a pointer is_____________.
Counter-controlled or definite
object file
0
preprocessor
3. The size & shape & color and weight of an object are considered
return
attributes
::
unary scope resolution operator (::)
4. 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.
reserved words
classes
#include directive
static
5. Symbol that denotes an action to be performed
operator
public
syntax
address
6. The process of determining if an array contains a particular key value is called _________ the array.
non-static
searching
object file
Arithmetic Operators
7. All C++ Variables are_________.
before
#include <headerfilename>
case sensitive
srand
8. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.
Stack overflow
void pointer
non-static
Literals
9. A variable declared outside any block or function is a ________ variable.
private
scope resolution operator
global
virtual functions
10. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.
base class
function overloading
{ }
binary operator
11. newline
n
switch
vectors
syntax
12. 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
a.out
base
#include
allocating memory
13. The stream extraction operator
special symbols
variable
>>
unary scope resolution operator (::)
14. Type casting syntax
beginning
static_cast<char>(65)
comments
left
15. A program that finds and attaches to your program the indicated libraries for compilation
Sentinel
strlen()
assignment statement
preprocessor
16. Executable version of program
derived class
unary scope resolution operator (::)
object file
return
17. Identifier or expression that is part of the calculation to be performed
unary operator
operand value
register
reserve words
18. 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
19. 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.
virtual functions
object-oriented analysis and design (OOAD)
void pointer
return
20. The keyword __________ specifies that an object or variable is not modifiable after it is initialized.
opened
operator overloading
virtual functions
const
21. Every C++ program begins execution at the function _________.
cmath
main
arithmetic expression
{ }
22. Sets floating-point values to a fixed decimal format
setw
type casting (conversion)
attributes
fixed
23. A function ________ enables a single function to be defined to perform a task on many different data types.
template
comments
this
scope resolution operator
24. The ________ enables access to a global variable with the same name as a variable in the current scope.
comments
unary scope resolution operator (::)
setw
<<
25. Operator with only one operand
.cpp
strcmp()
editor
unary operator
26. Meaning of the instructions in the language; compiler cannot find these errors - often called logic errors
Preprocessor
semantics
auto
token
27. A file must be ________ before data can be written to or read from it.
virtual functions
variable
opened
assignment statement
28. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.
beginning
::
type casting (conversion)
friend
29. This manipulator causes the field to be left-justified with padding spaces printed to the right.
return
Semicolon
attributes
left
30. 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.
endl (same as 'n')
beginning
srand
inheritance
31. You can declare default values for a function in the ____________________.
beginning
function parameters
Default memberwise assignment
default constructor
32. A function that can be used to read character data including whitespace
recursive function
unary scope resolution operator (::)
Counter-controlled or definite
cin.get(ch)
33. The elements of an array are related by the fact that they have the same name and ___________.
unary operator
% modulus
private
type
34. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.
linker
classes
void
stack
35. A member function should be declared static if it does not access __________ class members.
a.out
base
arithmetic expression
non-static
36. Repeating a set of instructions a specific number of times is called_________repetition.
switch
<<
Counter-controlled or definite
access specifier
37. A human readable file that contains C++ program
auto
source file
function prototype
function overloading
38. For every opening brace in a C++ program there must be a ______________.
function prototype
access specifier
Closing brace
<<
39. To allow file access in a program you must #include this header file.
void pointer
access specifier
if...else
fstream
40. The __________ operator reclaims memory previously allocated by new.
&
access specifier
delete
#include
41. Whole numbers - no decimals and no commas included
int values
prompt
operand value
static
42. Compares two strings and returns 0 if they are equal.
private
#include
strcmp()
reserve words
43. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.
scope resolution operator
function scope
Unified Modeling Language(UML)
unary operator
44. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.
object-oriented analysis and design (OOAD)
void
Arithmetic Operators
static
45. data types that refer to numbers with decimals
if...else
floating-point
linker
two-dimensional
46. A sequence of operands and operators that describe a calculation to be performed
arithmetic expression
NULL
template
object file
47. Associate an identifier with a memory location
overloading
allocating memory
non-static
special symbols
48. The three ways to return control from a called function to a caller are ________ - return expression and encounter.
address
inline functions
#include
return
49. 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.
case sensitive
continue
semantics
semicolon
50. The address-of operator. it is used to assign pointers and to print the address of variables.
&
stack
recursive
special symbols
Sorry!:) No result found.
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