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. Header file that contains commonly performed mathematical functions
editor
const
register
cmath
2. This manipulator causes the field to be left-justified with padding spaces printed to the right.
left
Unified Modeling Language(UML)
unary scope resolution operator (::)
::
3. Identifier or expression that is part of the calculation to be performed
cin
heap
token
operand value
4. Every C++ statement ends with a(n) _________.
semicolon
private
default constructor
void
5. The address-of operator. it is used to assign pointers and to print the address of variables.
*
% modulus
&
0
6. Initializers __________ must be used to initialize constant members of a class.
loader
mixed expression
member
selection
7. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.
before
object-oriented analysis and design (OOAD)
case sensitive
Stack overflow
8. Preprocessor directive syntax
integer operands
#include <headerfilename>
subscript (or index)
delete
9. The _____ causes the contents of another file to be inserted into a program.
searching
static_cast<char>(65)
#include directive
fixed
10. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.
classes
object-oriented analysis and design (OOAD)
member
this
11. The size & shape & color and weight of an object are considered
local variable
attributes
cin.get(ch)
register
12. A type of pointer that can point at objects of any data type.
void pointer
showpoint
static_cast<char>(65)
like-type expression
13. The _________ begins the body of every function and the _________ ends the body of every function.
vectors
operand value
{ }
allocating memory
14. A pointer is a variable that contains as its value the____________ of another variable.
associations
floating-point
address
#include directive
15. All C++ Variables are_________.
case sensitive
fstream
unary scope resolution operator (::)
/n
16. Class members specified as _________ are accessible anywhere an object of the class is in scope.
const
public
if...else
const datatype identifier = value
17. A variable that is known only within the function in which it is defined is called a ________.
public
local variable
*
#include <headerfilename>
18. A program that finds and attaches to your program the indicated libraries for compilation
base class
static_cast<char>(65)
new line
preprocessor
19. Program components in C++ are called functions and ________.
token
access specifier
this
classes
20. The ________ of an identifier is the portion of the program in which the identifier can be used.
semicolon
fstream
member
scope
21. Associate an identifier with a memory location
?
loader
void
allocating memory
22. An expression in which all operands have the same data type - result will have the same data type as operands
unary operator
like-type expression
showpoint
floating-point
23. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.
polymorphism
void
two-dimensional
strlen()
24. To allow file access in a program you must #include this header file.
fstream
&
vectors
n
25. The keyword __________ specifies that an object or variable is not modifiable after it is initialized.
?
variables
const
unary scope resolution operator (::)
26. A variable declared outside any block or function is a ________ variable.
recursive function
global
loader
void
27. Allows the programmer to store a value in a variable
assignment statement
member
object-oriented analysis and design (OOAD)
sorting
28. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.
floating-point
Unified Modeling Language(UML)
globals
classes
29. The number used to refer to a particular element of an array is called its ________.
dot (.)
subscript (or index)
address
type coercion
30. A function that calls itself
continue
case sensitive
recursive function
delete
31. * / % + -
% modulus
Arithmetic Operators
void pointer
object-oriented analysis and design (OOAD)
32. Creates a copy of a string.
variables
pointer
strcpy()
non-static
33. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.
object file
pointer
assignment
break
34. In inheritance the ____________ is the class that supplies the inherited members.
object file
linker
base class
attributes
35. A sequence of operands and operators that describe a calculation to be performed
non-static
arithmetic expression
friend
Closing brace
36. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.
continue
information hiding
private
selection
37. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.
associations
<<
inline functions
cin >> variable
38. Class members specified as _________ are accessible only to member functions of the class and friends of the class.
private
&
information hiding
two-dimensional
39. An array that uses two subscripts is referred to as a(n) _________ array.
two-dimensional
assignment statement
NULL
register
40. These are data items whose values do not change while the program is running
Literals
this
cin >> variable
reserved words
41. The_________selection statement is used to execute one action when a condition is TRue or a different action when that condition is false.
if...else
preprocessor
reserve words
pointer
42. A file must be ________ before data can be written to or read from it.
scope resolution operator
inline functions
opened
base class
43. The ________ program transfers the executable image of a C++ program from disk to memory.
loader
information hiding
selection
>>
44. The stream insertion operator
friend
<<
static
selection
45. For every opening brace in a C++ program there must be a ______________.
prompt
int values
dot (.)
Closing brace
46. A human readable file that contains C++ program
NULL
strcmp()
source file
arithmetic expression
47. A________ allows the compiler to check the number & types and order of the arguments passed to a function.
function prototype
rand
void pointer
opened
48. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.
this
cin >> variable
auto
reserved words
49. The idea that you can call the same function and the output will depend on the type of object you're using.
getline
/n
operator
polymorphism
50. Operator with two operands
switch
t
binary operator
definition
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