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. 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.
object-oriented analysis and design (OOAD)
strlen()
strcpy()
information hiding
2. A variable that is known only within the function in which it is defined is called a ________.
*
local variable
strlen()
Unified Modeling Language(UML)
3. An expression that has operands with different data types
mixed expression
initialized
semantics
object-oriented analysis and design (OOAD)
4. A function that can be used to read character data including whitespace
preprocessor
srand
operator overloading
cin.get(ch)
5. A function that calls itself
recursive function
const datatype identifier = value
void pointer
virtual functions
6. The __________ operator reclaims memory previously allocated by new.
register
data type
classes
delete
7. Syntax for reading char type variables by extracting one nonwhitespace character extracted at a time
escape sequences
variable
cin >> variable
reserved words
8. The stream extraction operator
type casting (conversion)
template
Default memberwise assignment
>>
9. These are data items whose values do not change while the program is running
dot (.)
friend
Literals
member
10. The _____ causes the contents of another file to be inserted into a program.
preprocessor
left
local variable
#include directive
11. A pointer is a variable that contains as its value the____________ of another variable.
fstream
address
scope resolution operator
NULL
12. Header file that contains commonly performed mathematical functions
cmath
Stack overflow
function overloading
#include
13. The process of placing the elements of an array in order is called ________ the array.
sorting
pointer
left
variables
14. Forces the computer to display decimal point and trailing zeroes
linker
showpoint
classes
void pointer
15. A ________ program executes before the compiler's translation phase begins.
void
preprocessor
default constructor
Semicolon
16. You can declare default values for a function in the ____________________.
stack
const
function parameters
type casting (conversion)
17. A __________ data member represents class-wide information.
type
token
friend
static
18. The elements of an array are related by the fact that they have the same name and ___________.
base class
subscript (or index)
{ }
type
19. Function ________ is used to produce random numbers.
function overloading
rand
reserved words
globals
20. 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.
#include directive
0
static
cin.get(ch)
21. Associate an identifier with a memory location
operator overloading
opened
allocating memory
pointer
22. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.
auto
void
if
Unified Modeling Language(UML)
23. 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.
cin
derived class
continue
selection
24. A __________ should be used to declare the size of an array because it makes the program more scalable.
*
cout
constant variable
assignment statement
25. = & | are examples of ____________.
showpoint
special symbols
integer operands
fixed
26. This is used to mark the end of a complete C++ programming statement.
fstream
Semicolon
showpoint
syntax
27. C++ programs are normally typed into a computer using a(n) ________ program.
break
type coercion
comments
editor
28. It is possible to have various functions with the same name that operate on different types or numbers of arguments. This is called function ________.
default constructor
strcmp()
private
overloading
29. Returns the length of a string excluding the null terminator.
strlen()
Counter-controlled or definite
variables
fixed
30. You must have a ___________ for every variable you intend to use in a program
like-type expression
type casting (conversion)
before
definition
31. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.
reserved words
friend
Default memberwise assignment
comments
32. This manipulator is used to establish a field width for the value immediately following it.
setw
function call
linker
data type
33. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')
char
getline
integer operands
variables
34. The sign you use for references
switch
initialized
&
Unified Modeling Language(UML)
35. 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
type coercion
pointer
base
NULL
36. data types that refer to numbers with decimals
srand
#include
floating-point
operator
37. Use 2 characters to represent one
linker
overloading
strcpy()
escape sequences
38. A memory location with a name and data type and a value - its content (value) cannot be changed during program execution
scope resolution operator
preprocessor
unary scope resolution operator (::)
named constant
39. Program components in C++ are called functions and ________.
Preprocessor
strlen()
data type
classes
40. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.
type
Stack overflow
classes
function prototype
41. The escape sequence ___ when output with cout and the stream insertion operator - causes the cursor to position to the beginning of the next line on the screen.
/n
type
type coercion
comments
42. Lists and tables of values can be stored in arrays or __________.
semicolon
int values
vectors
this
43. A C++ statement that makes a decision is ______.
dot (.)
.cpp
if
::
44. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.
register
cin >> variable
sorting
type coercion
45. The process of analyzing and designing a system from an object-oriented point of view is called ________.
semantics
loader
object-oriented analysis and design (OOAD)
srand
46. 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.
selection
void
return
cmath
47. Names of things that are used in a program - can apply to variables & constants and functions
identifiers
selection
arithmetic expression
Sentinel
48. The ________ enables access to a global variable with the same name as a variable in the current scope.
#include <headerfilename>
type
static
unary scope resolution operator (::)
49. In inheritance the ____________ is the class that supplies the inherited members.
Stack overflow
integer operands
stack
base class
50. A function that calls itself either directly or indirectly - through another function) - is a ________ function.
continue
recursive
pointer
like-type expression
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