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. = & | are examples of ____________.
object file
special symbols
fstream
pointer
2. 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
//
heap
public
3. The size & shape & color and weight of an object are considered
derived class
overloading
attributes
Literals
4. Executable version of program
editor
const datatype identifier = value
allocating memory
object file
5. The ________ enables access to a global variable with the same name as a variable in the current scope.
unary scope resolution operator (::)
object-oriented analysis and design (OOAD)
cin >> variable
rand
6. To write data to a file you define an object of which one of the following
new line
stack
&
ofstream
7. This manipulator is used to establish a field width for the value immediately following it.
int values
private
static
setw
8. The sign you use for references
base class
&
subscript (or index)
int values
9. * / % + -
mixed expression
Arithmetic Operators
public
*
10. The process of placing the elements of an array in order is called ________ the array.
sorting
#include <headerfilename>
ofstream
Literals
11. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.
loader
classes
prompt
opened
12. Function _________ from the <string> library reads characters until a newline character is encountered - then copies those characters into the specified string.
named constant
rand
cin.get(ch)
getline
13. If a member initializer is not provided for a member object of a class the object's __________ is called.
switch
token
register
default constructor
14. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.
inline functions
auto
opened
type casting (conversion)
15. A________ allows the compiler to check the number & types and order of the arguments passed to a function.
function prototype
initialized
recursive
fstream
16. When a value of one data type is implicitly (automatically) changed to another data type
type coercion
return
type
named constant
17. 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.
binary operator
semicolon
rand
static
18. A function that calls itself
register
recursive function
non-static
% modulus
19. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.
type casting (conversion)
before
this
base class
20. Default name of executable file
access specifier
friend
unary operator
a.out
21. Message displayed to the screen asking user for input; generated with an output statement
return
syntax
prompt
allocating memory
22. The stream extraction operator
unary scope resolution operator (::)
>>
Literals
cmath
23. data types that refer to numbers with decimals
floating-point
#include
type casting (conversion)
::
24. A function is invoked with a ________.
type coercion
function call
access specifier
#include directive
25. A function ________ enables a single function to be defined to perform a task on many different data types.
template
Semicolon
const datatype identifier = value
cmath
26. Class members specified as _________ are accessible only to member functions of the class and friends of the class.
identifiers
private
variables
address
27. A constant object must be __________; it cannot be modified after it is created.
const
initialized
template
strlen()
28. The new operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.
template
attributes
global
pointer
29. A file must be ________ before data can be written to or read from it.
unary operator
variables
opened
/n
30. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')
operand value
char
getline
data type
31. A __________ should be used to declare the size of an array because it makes the program more scalable.
reserve words
local variable
constant variable
cout
32. Characters used to separate symbols or reserved words or identifiers and statements
% modulus
whitespace
t
local variable
33. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________
reserved words
void pointer
operator overloading
#include directive
34. Whole numbers - no decimals and no commas included
operand value
int values
two-dimensional
editor
35. A type of pointer that can point at objects of any data type.
void pointer
classes
cin >> variable
main
36. An operator that can only be used with int values. result will always be an int.
% modulus
//
Literals
reserved words
37. Lists and tables of values can be stored in arrays or __________.
opened
polymorphism
searching
vectors
38. Symbol that denotes an action to be performed
operator
sorting
NULL
delete
39. You can declare default values for a function in the ____________________.
strcpy()
function parameters
Literals
named constant
40. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.
main
object-oriented analysis and design (OOAD)
searching
friend
41. Syntax for named constant declaration
loader
{ }
const datatype identifier = value
Literals
42. Naming convention for C++ programs
rand
attributes
pointer
.cpp
43. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.
two-dimensional
function overloading
char
constant variable
44. 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.
{ }
global
virtual functions
::
45. 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.
static_cast<char>(65)
named constant
/n
void
46. __________ can be used to assign an object of a class to another object of the same class.
Default memberwise assignment
&
Stack overflow
fixed
47. Header file that contains commonly performed mathematical functions
polymorphism
t
whitespace
cmath
48. A memory location with a name and data type - its content may be changed during program execution
case sensitive
variable
const
identifiers
49. Use 2 characters to represent one
escape sequences
cmath
beginning
definition
50. The storage-class specifiers are mutable - auto - ________ - extern and static.
whitespace
function prototype
strcpy()
register
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