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. A constant object must be __________; it cannot be modified after it is created.
assignment
initialized
opened
prompt
2. The symbol for the binary scope resolution operator
heap
n
register
::
3. A sequence of operands and operators that describe a calculation to be performed
friend
arithmetic expression
srand
binary operator
4. The modulus operator (%) can be used only with __________.
#include directive
integer operands
Semicolon
unary scope resolution operator (::)
5. A________ allows the compiler to check the number & types and order of the arguments passed to a function.
Default memberwise assignment
function prototype
public
scope resolution operator
6. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.
<<
this
#include <headerfilename>
source file
7. Keyword public is a(n) _________
n
strlen()
syntax
access specifier
8. It is possible to have various functions with the same name that operate on different types or numbers of arguments. This is called function ________.
overloading
Unified Modeling Language(UML)
cin.get(ch)
escape sequences
9. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.
two-dimensional
Unified Modeling Language(UML)
strcmp()
escape sequences
10. An array that uses two subscripts is referred to as a(n) _________ array.
Arithmetic Operators
assignment
prompt
two-dimensional
11. An operator that can only be used with int values. result will always be an int.
vectors
% modulus
::
globals
12. The process of analyzing and designing a system from an object-oriented point of view is called ________.
operator overloading
type coercion
address
object-oriented analysis and design (OOAD)
13. Type casting syntax
static_cast<char>(65)
n
allocating memory
local variable
14. The sign you use for pointers
Arithmetic Operators
left
*
definition
15. Repeating a set of instructions a specific number of times is called_________repetition.
if
comments
a.out
Counter-controlled or definite
16. This manipulator is used to establish a field width for the value immediately following it.
selection
&
setw
>>
17. Syntax for reading char type variables by extracting one nonwhitespace character extracted at a time
cin >> variable
switch
operator
variables
18. A program that finds and attaches to your program the indicated libraries for compilation
cmath
static_cast<char>(65)
preprocessor
Counter-controlled or definite
19. int namespace include using return examples of ___________
Preprocessor
two-dimensional
reserve words
const datatype identifier = value
20. A memory location with a name and data type - its content may be changed during program execution
recursive
setw
variable
source file
21. The stream extraction operator
{ }
::
object-oriented analysis and design (OOAD)
>>
22. All ______ must be declared before they are used.
static
floating-point
variables
type
23. data types that refer to numbers with decimals
named constant
continue
*
floating-point
24. Nonexecutable statements that are included in a program to provide information about what the program does etc.
definition
scope resolution operator
integer operands
comments
25. A function is invoked with a ________.
scope
a.out
function call
syntax
26. Use 2 characters to represent one
switch
escape sequences
assignment
static
27. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')
char
#include
assignment
allocating memory
28. 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
private
>>
continue
base
29. 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.
register
NULL
preprocessor
static
30. Used for dynamically allocated variables
heap
scope resolution operator
pointer
integer operands
31. Whole numbers - no decimals and no commas included
int values
preprocessor
semicolon
void
32. A function that calls itself
#include <headerfilename>
recursive function
void pointer
default constructor
33. Function ________ is used to set the random number seed to randomize a program.
{ }
new line
srand
scope
34. You can declare default values for a function in the ____________________.
function parameters
endl (same as 'n')
function call
object file
35. A __________ data member represents class-wide information.
strcpy()
syntax
static
named constant
36. The sign you use for references
source file
variables
NULL
&
37. Preprocessor directive syntax
const datatype identifier = value
register
reserved words
#include <headerfilename>
38. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.
#include directive
pointer
char
function overloading
39. A __________ should be used to declare the size of an array because it makes the program more scalable.
{ }
constant variable
cout
cin.get(ch)
40. Default name of executable file
prompt
a.out
Default memberwise assignment
register
41. These are data items whose values do not change while the program is running
beginning
Closing brace
Literals
pointer
42. A function that calls itself either directly or indirectly - through another function) - is a ________ function.
cmath
selection
recursive
sorting
43. Most calculations are normally performed by ______ statements.
static
assignment
derived class
function call
44. The process of determining if an array contains a particular key value is called _________ the array.
type
scope
*
searching
45. The number used to refer to a particular element of an array is called its ________.
semicolon
semantics
pointer
subscript (or index)
46. The idea that you can call the same function and the output will depend on the type of object you're using.
identifiers
break
polymorphism
recursive
47. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.
sorting
member
break
variables
48. A memory location with a name and data type and a value - its content (value) cannot be changed during program execution
named constant
return
preprocessor
break
49. A variable that holds the address of another variable.
before
object file
access specifier
pointer
50. The new operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.
n
comments
setw
pointer
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