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. 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
virtual functions
pointer
getline
2. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.
unary scope resolution operator (::)
local variable
continue
classes
3. The three ways to return control from a called function to a caller are ________ - return expression and encounter.
showpoint
>>
sorting
return
4. The ________ enables access to a global variable with the same name as a variable in the current scope.
NULL
classes
vectors
unary scope resolution operator (::)
5. The new operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.
prompt
before
register
pointer
6. newline
n
inline functions
prompt
binary operator
7. An operator that can only be used with int values. result will always be an int.
unary scope resolution operator (::)
constant variable
% modulus
.cpp
8. Nonexecutable statements that are included in a program to provide information about what the program does etc.
Closing brace
template
function scope
comments
9. = & | are examples of ____________.
special symbols
cmath
definition
this
10. Associate an identifier with a memory location
strlen()
//
static
allocating memory
11. Smallest individual unit of a programming language - special symbols or word symbols or identifiers
const
auto
setw
token
12. An array that uses two subscripts is referred to as a(n) _________ array.
reserve words
two-dimensional
Arithmetic Operators
constant variable
13. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.
assignment
preprocessor
this
{ }
14. Type casting syntax
non-static
dot (.)
vectors
static_cast<char>(65)
15. Initializers __________ must be used to initialize constant members of a class.
template
continue
member
beginning
16. 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
global
member
operator overloading
17. A function that calls itself
static
data type
recursive function
function prototype
18. A function ________ enables a single function to be defined to perform a task on many different data types.
template
linker
allocating memory
fixed
19. The __________ operator reclaims memory previously allocated by new.
delete
reserved words
named constant
non-static
20. Header file that contains commonly performed mathematical functions
object-oriented analysis and design (OOAD)
.cpp
cmath
#include directive
21. Use 2 characters to represent one
escape sequences
binary operator
case sensitive
globals
22. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.
heap
two-dimensional
Unified Modeling Language(UML)
selection
23. You must have a ___________ for every variable you intend to use in a program
inline functions
cmath
two-dimensional
definition
24. A memory location with a name and data type and a value - its content (value) cannot be changed during program execution
named constant
Semicolon
globals
break
25. The number used to refer to a particular element of an array is called its ________.
mixed expression
Default memberwise assignment
subscript (or index)
initialized
26. The modulus operator (%) can be used only with __________.
integer operands
Preprocessor
&
this
27. A filestream variable that represents the default input source
Sentinel
setw
semantics
cin
28. Naming convention for C++ programs
stack
default constructor
.cpp
prompt
29. Used for function calls and local variables
stack
Arithmetic Operators
local variable
data type
30. Creates a copy of a string.
int values
strcpy()
address
main
31. Operator with only one operand
semantics
#include
variable
unary operator
32. A function that calls itself either directly or indirectly - through another function) - is a ________ function.
global
like-type expression
const
recursive
33. The escape sequence n represents the _________ character which causes the cursor to position to the beginning of the next line on the screen.
function overloading
loader
auto
new line
34. A set of values together with a set of operations
data type
local variable
rand
identifiers
35. Every C++ statement ends with a(n) _________.
default constructor
globals
semicolon
escape sequences
36. The three values that can be used to initialize a pointer are 0 - __________ and an address.
function scope
NULL
//
vectors
37. The ________ program transfers the executable image of a C++ program from disk to memory.
loader
syntax
% modulus
const datatype identifier = value
38. Characters used to separate symbols or reserved words or identifiers and statements
whitespace
token
reserve words
attributes
39. The ________ statement in a called function passes the value of an expression back to the calling function.
virtual functions
return
comments
pointer
40. Syntax for named constant declaration
const datatype identifier = value
register
Semicolon
switch
41. Function ________ is used to produce random numbers.
register
loader
rand
break
42. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')
char
base class
allocating memory
reserve words
43. All ______ must be declared before they are used.
const
::
strlen()
variables
44. A________ allows the compiler to check the number & types and order of the arguments passed to a function.
vectors
function prototype
object file
Counter-controlled or definite
45. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.
template
globals
fixed
register
46. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.
break
if...else
cin
function parameters
47. The ________ of an identifier is the portion of the program in which the identifier can be used.
scope
data type
recursive function
like-type expression
48. The process of placing the elements of an array in order is called ________ the array.
editor
sorting
Preprocessor
heap
49. data types that refer to numbers with decimals
floating-point
#include <headerfilename>
{ }
source file
50. A pointer is a variable that contains as its value the____________ of another variable.
beginning
address
continue
cmath
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