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.
fixed
const
?
information hiding
2. Characters used to separate symbols or reserved words or identifiers and statements
whitespace
{ }
register
const
3. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')
char
like-type expression
beginning
public
4. Manipulator that causes the insertion point (cursor) to move to the beginning of the next line
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
5. The storage-class specifiers are mutable - auto - ________ - extern and static.
register
source file
fixed
base class
6. These are data items whose values do not change while the program is running
virtual functions
Literals
rand
global
7. A file must be ________ before data can be written to or read from it.
opened
const datatype identifier = value
recursive
static
8. Grammar rules of the language; compiler will try to identify and locate syntax errors
data type
assignment statement
comments
syntax
9. directive A statement that starts with a # is called a ____________.
Preprocessor
#include <headerfilename>
public
reserve words
10. Used for dynamically allocated variables
#include
heap
::
template
11. newline
preprocessor
vectors
n
Semicolon
12. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.
local variable
cmath
non-static
function overloading
13. Initializers __________ must be used to initialize constant members of a class.
delete
opened
NULL
member
14. In inheritance the ____________ is the class the receives the inherited members.
fstream
derived class
#include
loader
15. You can declare default values for a function in the ____________________.
function parameters
function prototype
initialized
heap
16. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.
Unified Modeling Language(UML)
void pointer
like-type expression
function call
17. The ________ enables access to a global variable with the same name as a variable in the current scope.
ofstream
cin
unary scope resolution operator (::)
token
18. Whole numbers - no decimals and no commas included
strcmp()
template
int values
t
19. Preprocessor directive syntax
overloading
#include <headerfilename>
allocating memory
template
20. The sign you use for references
&
loader
friend
delete
21. A function ________ enables a single function to be defined to perform a task on many different data types.
vectors
Counter-controlled or definite
template
new line
22. Keyword public is a(n) _________
access specifier
Unified Modeling Language(UML)
semantics
floating-point
23. Compares two strings and returns 0 if they are equal.
t
identifiers
strcmp()
scope
24. Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise.
pointer
auto
strcpy()
type coercion
25. The sign you use for pointers
*
cin.get(ch)
information hiding
register
26. An operator that can only be used with int values. result will always be an int.
0
showpoint
assignment
% modulus
27. The idea that you can call the same function and the output will depend on the type of object you're using.
Closing brace
syntax
polymorphism
scope resolution operator
28. Naming convention for C++ programs
.cpp
cin >> variable
semantics
function parameters
29. All ______ must be declared before they are used.
variables
prompt
/n
assignment statement
30. Nonexecutable statements that are included in a program to provide information about what the program does etc.
continue
strlen()
comments
pointer
31. A __________ data member represents class-wide information.
polymorphism
Preprocessor
assignment statement
static
32. The conditional operator. it evaluates a line of code and returns one thing if the condition is true and a different thing if the condition is false.
showpoint
static_cast<char>(65)
?
void pointer
33. The symbol for the binary scope resolution operator
::
sorting
>>
whitespace
34. To allow file access in a program you must #include this header file.
fstream
arithmetic expression
rand
&
35. A set of values together with a set of operations
classes
void
allocating memory
data type
36. Words that are used for special purposes in a program
inheritance
scope
operator
reserved words
37. A________ allows the compiler to check the number & types and order of the arguments passed to a function.
function prototype
operator overloading
void pointer
associations
38. Classes can have relationships with other classes. These relationships are called ________.
case sensitive
static
srand
associations
39. Operator with only one operand
Counter-controlled or definite
unary operator
Semicolon
void pointer
40. This is used to mark the end of a complete C++ programming statement.
information hiding
const
variable
Semicolon
41. The source-code file and any other files that use a class can include the class's header file via an _________ preprocessor directive.
preprocessor
#include
#include <headerfilename>
editor
42. 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.
continue
operator overloading
rand
virtual functions
43. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.
pointer
globals
t
type coercion
44. The three values that can be used to initialize a pointer are 0 - __________ and an address.
left
NULL
n
.cpp
45. The ________ qualifier is used to declare read-only variables.
const
information hiding
void
% modulus
46. The ________ program combines the output of the compiler with various library functions to produce an executable image.
like-type expression
local variable
linker
#include directive
47. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________
pointer
function scope
&
operator overloading
48. When it is not known in advance how many times a set of statements will be repeated a _________value can be used to terminate the repetition.
Sentinel
beginning
polymorphism
recursive function
49. Class members specified as _________ are accessible only to member functions of the class and friends of the class.
global
delete
private
n
50. Every C++ statement ends with a(n) _________.
pointer
semicolon
member
base
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