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 function that calls itself either directly or indirectly - through another function) - is a ________ function.
beginning
recursive
assignment
break
2. A________ allows the compiler to check the number & types and order of the arguments passed to a function.
function prototype
/n
const
recursive
3. The stream insertion operator
<<
allocating memory
#include
special symbols
4. Member objects are constructed __________ their enclosing class object.
before
two-dimensional
beginning
<<
5. Operator with only one operand
const
unary operator
?
cin.get(ch)
6. Creates a copy of a string.
?
virtual functions
main
strcpy()
7. Used for dynamically allocated variables
comments
register
fixed
heap
8. The address-of operator. it is used to assign pointers and to print the address of variables.
escape sequences
function prototype
&
scope resolution operator
9. Words that are used for special purposes in a program
function overloading
reserved words
static
if
10. tab
t
function prototype
non-static
if...else
11. A member function should be declared static if it does not access __________ class members.
function prototype
non-static
before
reserved words
12. The source-code file and any other files that use a class can include the class's header file via an _________ preprocessor directive.
#include
if...else
static
global
13. Associate an identifier with a memory location
int values
continue
polymorphism
allocating memory
14. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.
classes
t
const
srand
15. The escape sequence n represents the _________ character which causes the cursor to position to the beginning of the next line on the screen.
Sentinel
named constant
srand
new line
16. An array that uses two subscripts is referred to as a(n) _________ array.
two-dimensional
prompt
linker
function call
17. The process of analyzing and designing a system from an object-oriented point of view is called ________.
reserved words
scope
Closing brace
object-oriented analysis and design (OOAD)
18. A memory location with a name and data type - its content may be changed during program execution
static
selection
variable
endl (same as 'n')
19. The sign you use for references
&
t
function parameters
cin >> variable
20. Class members specified as _________ are accessible only to member functions of the class and friends of the class.
NULL
>>
private
Counter-controlled or definite
21. To explicitly indicate that a value is to be converted to another type
#include <headerfilename>
type casting (conversion)
strcmp()
break
22. The six possible scopes of an identifier are ________ - file scope - block scope - function-prototype scope - class scope - namespace scope .
function scope
NULL
cin
type coercion
23. The _________ begins the body of every function and the _________ ends the body of every function.
default constructor
const datatype identifier = value
function call
{ }
24. Executable version of program
object file
#include directive
address
cmath
25. Syntax for reading char type variables by extracting one nonwhitespace character extracted at a time
object-oriented analysis and design (OOAD)
non-static
preprocessor
cin >> variable
26. Allows the programmer to store a value in a variable
assignment statement
ofstream
address
variable
27. In inheritance the ____________ is the class the receives the inherited members.
Closing brace
derived class
int values
static
28. A function ________ enables a single function to be defined to perform a task on many different data types.
template
Arithmetic Operators
switch
before
29. A filestream variable that represents the default input source
base class
cin
source file
auto
30. = & | are examples of ____________.
unary operator
cin.get(ch)
special symbols
srand
31. A variable that is known only within the function in which it is defined is called a ________.
void
local variable
special symbols
escape sequences
32. The ________ program combines the output of the compiler with various library functions to produce an executable image.
endl (same as 'n')
srand
linker
stack
33. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.
friend
/n
selection
scope resolution operator
34. The process of placing the elements of an array in order is called ________ the array.
sorting
two-dimensional
friend
allocating memory
35. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________
Default memberwise assignment
#include <headerfilename>
template
operator overloading
36. A program that finds and attaches to your program the indicated libraries for compilation
virtual functions
function overloading
cout
preprocessor
37. 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.
<<
variables
overloading
information hiding
38. Header file that contains commonly performed mathematical functions
Semicolon
cmath
delete
virtual functions
39. Type casting syntax
static_cast<char>(65)
classes
cmath
special symbols
40. To allow file access in a program you must #include this header file.
special symbols
information hiding
fstream
fixed
41. A __________ data member represents class-wide information.
object-oriented analysis and design (OOAD)
constant variable
static
heap
42. A type of pointer that can point at objects of any data type.
ofstream
token
dot (.)
void pointer
43. Most calculations are normally performed by ______ statements.
return
assignment
function prototype
this
44. A C++ statement that makes a decision is ______.
beginning
*
if
void
45. A function that can be used to read character data including whitespace
void
reserved words
cin.get(ch)
::
46. Characters used to separate symbols or reserved words or identifiers and statements
whitespace
reserved words
function overloading
allocating memory
47. * / % + -
subscript (or index)
variables
function prototype
Arithmetic Operators
48. A file must be ________ before data can be written to or read from it.
initialized
opened
function prototype
//
49. The three values that can be used to initialize a pointer are 0 - __________ and an address.
opened
object file
semicolon
NULL
50. Smallest individual unit of a programming language - special symbols or word symbols or identifiers
token
preprocessor
globals
if...else
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