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 ____________.
const
special symbols
return
classes
2. Operator with only one operand
new line
unary operator
mixed expression
strcmp()
3. The number used to refer to a particular element of an array is called its ________.
subscript (or index)
public
register
void
4. The only integer that can be assigned directly to a pointer is_____________.
selection
0
//
base class
5. A __________ data member represents class-wide information.
operator overloading
function prototype
static
constant variable
6. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.
preprocessor
address
function overloading
opened
7. Operator with two operands
Literals
information hiding
inline functions
binary operator
8. Repeating a set of instructions a specific number of times is called_________repetition.
Counter-controlled or definite
rand
showpoint
token
9. If a member initializer is not provided for a member object of a class the object's __________ is called.
a.out
NULL
associations
default constructor
10. A variable that is known only within the function in which it is defined is called a ________.
searching
unary operator
getline
local variable
11. __________ can be used to assign an object of a class to another object of the same class.
this
static
Default memberwise assignment
getline
12. The ________ program combines the output of the compiler with various library functions to produce an executable image.
address
linker
unary operator
heap
13. A function that can be used to read character data including whitespace
object file
cin.get(ch)
linker
type coercion
14. All ______ must be declared before they are used.
variables
static
n
opened
15. The six possible scopes of an identifier are ________ - file scope - block scope - function-prototype scope - class scope - namespace scope .
escape sequences
function scope
static
recursive
16. The idea that you can call the same function and the output will depend on the type of object you're using.
setw
polymorphism
floating-point
subscript (or index)
17. Words that are used for special purposes in a program
derived class
overloading
reserved words
Sentinel
18. The elements of an array are related by the fact that they have the same name and ___________.
static
type
type coercion
0
19. A ________ program executes before the compiler's translation phase begins.
function scope
object-oriented analysis and design (OOAD)
preprocessor
recursive
20. Class members specified as _________ are accessible anywhere an object of the class is in scope.
arithmetic expression
public
continue
derived class
21. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.
Stack overflow
linker
/n
% modulus
22. Class members are accessed via the ________ operator in conjunction with the name of an object (or reference to an object) of the class or via the arrow (->) operator in conjunction with a pointer to an object of the class.
semantics
constant variable
const datatype identifier = value
dot (.)
23. For every opening brace in a C++ program there must be a ______________.
Preprocessor
cin >> variable
assignment
Closing brace
24. Message displayed to the screen asking user for input; generated with an output statement
Preprocessor
initialized
n
prompt
25. An array that uses two subscripts is referred to as a(n) _________ array.
if
two-dimensional
mixed expression
semicolon
26. A file must be ________ before data can be written to or read from it.
base
static_cast<char>(65)
source file
opened
27. Executable version of program
if
&
object file
derived class
28. 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
fixed
function parameters
#include
29. Identifier or expression that is part of the calculation to be performed
operand value
new line
cmath
rand
30. 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.
pointer
virtual functions
Closing brace
srand
31. Two slash marks ( // ) indicate __________ of a comment
scope
classes
friend
beginning
32. Meaning of the instructions in the language; compiler cannot find these errors - often called logic errors
semantics
strcmp()
access specifier
Literals
33. Preprocessor directive syntax
scope resolution operator
scope
#include <headerfilename>
Unified Modeling Language(UML)
34. To explicitly indicate that a value is to be converted to another type
type casting (conversion)
default constructor
preprocessor
Semicolon
35. The ________ statement in a called function passes the value of an expression back to the calling function.
return
//
fixed
&
36. * / % + -
pointer
reserve words
inheritance
Arithmetic Operators
37. A program that finds and attaches to your program the indicated libraries for compilation
preprocessor
friend
polymorphism
type
38. The sign you use for references
function call
endl (same as 'n')
&
?
39. The process of analyzing and designing a system from an object-oriented point of view is called ________.
object-oriented analysis and design (OOAD)
#include directive
continue
dot (.)
40. A filestream variable that represents the default output device
polymorphism
sorting
cout
public
41. Used for function calls and local variables
allocating memory
unary operator
t
stack
42. The source-code file and any other files that use a class can include the class's header file via an _________ preprocessor directive.
#include
endl (same as 'n')
delete
opened
43. Keyword public is a(n) _________
token
access specifier
member
reserve words
44. The address-of operator. it is used to assign pointers and to print the address of variables.
&
vectors
if...else
beginning
45. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.
>>
classes
void
like-type expression
46. Default name of executable file
register
endl (same as 'n')
a.out
Unified Modeling Language(UML)
47. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.
register
fstream
like-type expression
main
48. The size & shape & color and weight of an object are considered
attributes
cmath
like-type expression
before
49. A variable that holds the address of another variable.
static_cast<char>(65)
operator overloading
static
pointer
50. A memory location with a name and data type and a value - its content (value) cannot be changed during program execution
named constant
type coercion
global
&
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