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. In inheritance the ____________ is the class the receives the inherited members.
derived class
global
const datatype identifier = value
recursive
2. Keyword public is a(n) _________
const
public
function overloading
access specifier
3. OOD also takes advantage of ________ relationships where new classes of objects are derived by absorbing characteristics of existing classes - then adding unique characteristics of their own.
default constructor
inheritance
#include <headerfilename>
fixed
4. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________
polymorphism
operator overloading
function scope
const datatype identifier = value
5. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.
function overloading
inheritance
associations
0
6. Characters used to separate symbols or reserved words or identifiers and statements
whitespace
comments
a.out
static
7. A human readable file that contains C++ program
attributes
source file
polymorphism
variables
8. The_________selection statement is used to execute one action when a condition is TRue or a different action when that condition is false.
Semicolon
t
constant variable
if...else
9. Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise.
register
cout
auto
n
10. 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.
non-static
type coercion
continue
rand
11. Syntax for reading char type variables by extracting one nonwhitespace character extracted at a time
cin >> variable
beginning
cmath
address
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
return
base
<<
13. The symbol for the binary scope resolution operator
information hiding
constant variable
/n
::
14. A variable that is known only within the function in which it is defined is called a ________.
if
local variable
char
0
15. A sequence of operands and operators that describe a calculation to be performed
Preprocessor
Semicolon
associations
arithmetic expression
16. Compares two strings and returns 0 if they are equal.
const
globals
strcmp()
return
17. The process of determining if an array contains a particular key value is called _________ the array.
searching
void
endl (same as 'n')
return
18. Nonexecutable statements that are included in a program to provide information about what the program does etc.
strcmp()
comments
syntax
cmath
19. Header file that contains commonly performed mathematical functions
linker
cmath
editor
showpoint
20. The number used to refer to a particular element of an array is called its ________.
strlen()
subscript (or index)
Preprocessor
token
21. The stream extraction operator
new line
>>
const
*
22. The ________ enables access to a global variable with the same name as a variable in the current scope.
variable
Closing brace
rand
unary scope resolution operator (::)
23. If a member initializer is not provided for a member object of a class the object's __________ is called.
operand value
strcmp()
default constructor
searching
24. Function _________ from the <string> library reads characters until a newline character is encountered - then copies those characters into the specified string.
getline
allocating memory
function overloading
polymorphism
25. directive A statement that starts with a # is called a ____________.
function overloading
cout
Preprocessor
allocating memory
26. A type of pointer that can point at objects of any data type.
void pointer
Stack overflow
0
non-static
27. Allows the programmer to store a value in a variable
address
% modulus
reserved words
assignment statement
28. This manipulator is used to establish a field width for the value immediately following it.
setw
information hiding
Arithmetic Operators
register
29. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')
operator overloading
strcmp()
char
Sentinel
30. data types that refer to numbers with decimals
floating-point
special symbols
type coercion
classes
31. A file must be ________ before data can be written to or read from it.
identifiers
opened
function prototype
overloading
32. A program that finds and attaches to your program the indicated libraries for compilation
preprocessor
identifiers
base
#include directive
33. Initializers __________ must be used to initialize constant members of a class.
n
subscript (or index)
main
member
34. In inheritance the ____________ is the class that supplies the inherited members.
int values
non-static
base class
case sensitive
35. = & | are examples of ____________.
template
special symbols
% modulus
#include directive
36. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.
void
public
syntax
arithmetic expression
37. Used to qualify hidden names so that they can be used.
allocating memory
delete
scope resolution operator
{ }
38. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.
delete
two-dimensional
globals
operand value
39. Words that are used for special purposes in a program
reserved words
token
function parameters
information hiding
40. Forces the computer to display decimal point and trailing zeroes
non-static
showpoint
preprocessor
function parameters
41. Associate an identifier with a memory location
unary scope resolution operator (::)
t
allocating memory
ofstream
42. 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.
default constructor
&
recursive function
Sentinel
43. Most calculations are normally performed by ______ statements.
register
Arithmetic Operators
assignment
recursive function
44. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.
reserved words
inline functions
function call
Arithmetic Operators
45. When a value of one data type is implicitly (automatically) changed to another data type
Literals
register
selection
type coercion
46. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.
if...else
friend
cmath
strlen()
47. Program components in C++ are called functions and ________.
member
*
classes
ofstream
48. The modulus operator (%) can be used only with __________.
const
integer operands
showpoint
reserve words
49. A __________ should be used to declare the size of an array because it makes the program more scalable.
pointer
cmath
constant variable
srand
50. 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
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