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. Identifier or expression that is part of the calculation to be performed
Literals
void
operand value
base class
2. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.
friend
strcpy()
heap
comments
3. Symbol that denotes an action to be performed
>>
unary scope resolution operator (::)
return
operator
4. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________
overloading
t
type
operator overloading
5. For a local variable in a function to retain its value between calls to the function it must be declared with the ________ storage-class specifier.
rand
syntax
static
cin.get(ch)
6. The symbol for the binary scope resolution operator
reserved words
char
const
::
7. The ________ program combines the output of the compiler with various library functions to produce an executable image.
linker
this
n
char
8. The only integer that can be assigned directly to a pointer is_____________.
loader
getline
continue
0
9. Sets floating-point values to a fixed decimal format
preprocessor
non-static
stack
fixed
10. Lists and tables of values can be stored in arrays or __________.
beginning
Semicolon
vectors
/n
11. The __________ operator reclaims memory previously allocated by new.
friend
delete
const
static
12. The sign you use for references
friend
ofstream
globals
&
13. A________ allows the compiler to check the number & types and order of the arguments passed to a function.
showpoint
function prototype
non-static
address
14. A variable declared outside any block or function is a ________ variable.
global
continue
recursive function
NULL
15. A function that can be used to read character data including whitespace
cin.get(ch)
classes
main
heap
16. The storage-class specifiers are mutable - auto - ________ - extern and static.
opened
register
integer operands
base
17. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.
base class
loader
attributes
selection
18. Meaning of the instructions in the language; compiler cannot find these errors - often called logic errors
associations
pointer
pointer
semantics
19. A set of values together with a set of operations
register
void
associations
data type
20. Words that are used for special purposes in a program
reserved words
scope
sorting
function overloading
21. Program components in C++ are called functions and ________.
static_cast<char>(65)
?
preprocessor
classes
22. The _________ begins the body of every function and the _________ ends the body of every function.
{ }
globals
subscript (or index)
definition
23. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.
classes
operator
this
access specifier
24. directive A statement that starts with a # is called a ____________.
Preprocessor
linker
cin.get(ch)
getline
25. Every C++ statement ends with a(n) _________.
loader
new line
floating-point
semicolon
26. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.
Stack overflow
type
function call
Counter-controlled or definite
27. Returns the length of a string excluding the null terminator.
{ }
beginning
reserve words
strlen()
28. The ________ statement in a called function passes the value of an expression back to the calling function.
return
inheritance
&
escape sequences
29. Compares two strings and returns 0 if they are equal.
static_cast<char>(65)
global
semicolon
strcmp()
30. Every C++ program begins execution at the function _________.
&
::
heap
main
31. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.
source file
//
#include <headerfilename>
getline
32. Use 2 characters to represent one
escape sequences
access specifier
NULL
t
33. Member objects are constructed __________ their enclosing class object.
srand
&
register
before
34. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.
recursive function
subscript (or index)
this
function parameters
35. Preprocessor directive syntax
main
data type
opened
#include <headerfilename>
36. Type casting syntax
heap
classes
static_cast<char>(65)
Arithmetic Operators
37. Initializers __________ must be used to initialize constant members of a class.
Arithmetic Operators
semantics
setw
member
38. Forces the computer to display decimal point and trailing zeroes
fstream
showpoint
reserved words
allocating memory
39. A constant object must be __________; it cannot be modified after it is created.
function scope
initialized
<<
function call
40. Message displayed to the screen asking user for input; generated with an output statement
prompt
return
friend
cout
41. Smallest individual unit of a programming language - special symbols or word symbols or identifiers
type
initialized
operator
token
42. 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
43. The modulus operator (%) can be used only with __________.
loader
pointer
derived class
integer operands
44. A memory location with a name and data type and a value - its content (value) cannot be changed during program execution
variable
information hiding
endl (same as 'n')
named constant
45. You can declare default values for a function in the ____________________.
getline
strcmp()
recursive
function parameters
46. The _____ causes the contents of another file to be inserted into a program.
#include directive
continue
polymorphism
pointer
47. This manipulator is used to establish a field width for the value immediately following it.
Unified Modeling Language(UML)
/n
setw
Default memberwise assignment
48. It is possible to have various functions with the same name that operate on different types or numbers of arguments. This is called function ________.
overloading
if
named constant
>>
49. A function that calls itself
recursive function
address
type coercion
>>
50. Most calculations are normally performed by ______ statements.
reserved words
new line
function overloading
assignment
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