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. The keyword ________ is used in a function header to indicate that a function does not return a value or to indicate that a function contains no parameters.
Semicolon
main
strcmp()
void
2. When a value of one data type is implicitly (automatically) changed to another data type
type coercion
ofstream
a.out
showpoint
3. Characters used to separate symbols or reserved words or identifiers and statements
whitespace
const
associations
base
4. The sign you use for pointers
function parameters
Arithmetic Operators
*
local variable
5. Compares two strings and returns 0 if they are equal.
strcmp()
selection
globals
recursive
6. Keyword public is a(n) _________
before
subscript (or index)
left
access specifier
7. The process of analyzing and designing a system from an object-oriented point of view is called ________.
preprocessor
t
object-oriented analysis and design (OOAD)
derived class
8. Member objects are constructed __________ their enclosing class object.
type coercion
?
register
before
9. Lists and tables of values can be stored in arrays or __________.
//
vectors
opened
Arithmetic Operators
10. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.
integer operands
function overloading
cmath
register
11. 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.
information hiding
Stack overflow
allocating memory
pointer
12. To allow file access in a program you must #include this header file.
semantics
fstream
heap
static
13. C++ programs are normally typed into a computer using a(n) ________ program.
editor
::
information hiding
getline
14. All C++ Variables are_________.
case sensitive
return
whitespace
#include
15. A recursive function typically has two components: One that provides a means for the recursion to terminate by testing for a(n) ________ case and one that expresses the problem as a recursive call for a slightly simpler problem than the original call
delete
left
base
comments
16. A filestream variable that represents the default input source
{ }
cin >> variable
return
cin
17. Smallest individual unit of a programming language - special symbols or word symbols or identifiers
token
rand
stack
Arithmetic Operators
18. Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise.
auto
opened
associations
continue
19. A function ________ enables a single function to be defined to perform a task on many different data types.
showpoint
local variable
inline functions
template
20. A type of pointer that can point at objects of any data type.
special symbols
inheritance
void pointer
syntax
21. The sign you use for references
initialized
&
//
Stack overflow
22. You can declare default values for a function in the ____________________.
return
access specifier
subscript (or index)
function parameters
23. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.
cin.get(ch)
function call
this
selection
24. 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
Sentinel
*
Semicolon
25. A program that finds and attaches to your program the indicated libraries for compilation
preprocessor
return
recursive function
loader
26. The three ways to return control from a called function to a caller are ________ - return expression and encounter.
auto
const
integer operands
return
27. An operator that can only be used with int values. result will always be an int.
char
% modulus
left
globals
28. Default name of executable file
ofstream
a.out
Closing brace
source file
29. A function is invoked with a ________.
named constant
function prototype
getline
function call
30. The process of placing the elements of an array in order is called ________ the array.
Unified Modeling Language(UML)
sorting
private
prompt
31. newline
n
new line
escape sequences
>>
32. The new operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.
member
register
allocating memory
pointer
33. The keyword __________ specifies that an object or variable is not modifiable after it is initialized.
const
n
virtual functions
NULL
34. Executable version of program
Arithmetic Operators
syntax
if
object file
35. A variable that holds the address of another variable.
static
linker
pointer
opened
36. Forces the computer to display decimal point and trailing zeroes
associations
unary scope resolution operator (::)
showpoint
a.out
37. 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.
heap
switch
function scope
static
38. Returns the length of a string excluding the null terminator.
type coercion
strlen()
main
before
39. Every C++ statement ends with a(n) _________.
Sentinel
char
unary operator
semicolon
40. Most calculations are normally performed by ______ statements.
&
recursive function
two-dimensional
assignment
41. Used to qualify hidden names so that they can be used.
scope resolution operator
syntax
floating-point
operator overloading
42. A constant object must be __________; it cannot be modified after it is created.
function prototype
initialized
static
recursive function
43. Creates a copy of a string.
strcpy()
getline
binary operator
continue
44. Words that are used for special purposes in a program
reserved words
fixed
opened
cin.get(ch)
45. The escape sequence n represents the _________ character which causes the cursor to position to the beginning of the next line on the screen.
new line
ofstream
strcpy()
char
46. Operator with two operands
stack
#include directive
binary operator
scope resolution operator
47. Preprocessor directive syntax
subscript (or index)
#include <headerfilename>
opened
continue
48. The ________ program transfers the executable image of a C++ program from disk to memory.
*
loader
Unified Modeling Language(UML)
function prototype
49. Grammar rules of the language; compiler will try to identify and locate syntax errors
syntax
searching
type
#include directive
50. 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.
Preprocessor
data type
switch
inheritance
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