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 the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.
inline functions
static_cast<char>(65)
definition
#include <headerfilename>
2. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.
globals
Literals
continue
void pointer
3. An operator that can only be used with int values. result will always be an int.
% modulus
delete
searching
int values
4. Associate an identifier with a memory location
cin >> variable
allocating memory
pointer
integer operands
5. Use 2 characters to represent one
preprocessor
register
escape sequences
operand value
6. Executable version of program
object file
global
const
fixed
7. Lists and tables of values can be stored in arrays or __________.
vectors
classes
cin
attributes
8. To explicitly indicate that a value is to be converted to another type
auto
&
Semicolon
type casting (conversion)
9. Function _________ from the <string> library reads characters until a newline character is encountered - then copies those characters into the specified string.
register
void
getline
information hiding
10. Keyword public is a(n) _________
#include <headerfilename>
Stack overflow
access specifier
static_cast<char>(65)
11. 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.
static
NULL
initialized
this
12. The new operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.
polymorphism
heap
if
pointer
13. Used to qualify hidden names so that they can be used.
floating-point
&
type
scope resolution operator
14. The size & shape & color and weight of an object are considered
cout
function prototype
attributes
left
15. A human readable file that contains C++ program
source file
classes
void pointer
before
16. In inheritance the ____________ is the class that supplies the inherited members.
source file
polymorphism
base class
member
17. The number used to refer to a particular element of an array is called its ________.
char
subscript (or index)
object-oriented analysis and design (OOAD)
break
18. The three values that can be used to initialize a pointer are 0 - __________ and an address.
cin
named constant
strlen()
NULL
19. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.
classes
pointer
mixed expression
?
20. The three ways to return control from a called function to a caller are ________ - return expression and encounter.
object file
private
before
return
21. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.
Preprocessor
arithmetic expression
function parameters
register
22. Member objects are constructed __________ their enclosing class object.
local variable
if...else
getline
before
23. A set of values together with a set of operations
cin >> variable
data type
{ }
editor
24. This manipulator causes the field to be left-justified with padding spaces printed to the right.
member
opened
function overloading
left
25. directive A statement that starts with a # is called a ____________.
comments
operator
Preprocessor
recursive function
26. The ________ enables access to a global variable with the same name as a variable in the current scope.
case sensitive
#include <headerfilename>
unary scope resolution operator (::)
beginning
27. Nonexecutable statements that are included in a program to provide information about what the program does etc.
escape sequences
comments
identifiers
Closing brace
28. This is used to mark the end of a complete C++ programming statement.
function prototype
Semicolon
/n
Preprocessor
29. A function ________ enables a single function to be defined to perform a task on many different data types.
operand value
0
template
function call
30. It is possible to have various functions with the same name that operate on different types or numbers of arguments. This is called function ________.
named constant
overloading
initialized
unary scope resolution operator (::)
31. The_________selection statement is used to execute one action when a condition is TRue or a different action when that condition is false.
operand value
if...else
whitespace
reserve words
32. A variable that is known only within the function in which it is defined is called a ________.
fixed
local variable
variables
recursive
33. The stream insertion operator
cout
<<
unary scope resolution operator (::)
constant variable
34. Returns the length of a string excluding the null terminator.
preprocessor
strlen()
integer operands
case sensitive
35. Syntax for reading char type variables by extracting one nonwhitespace character extracted at a time
variables
heap
cin >> variable
polymorphism
36. A memory location with a name and data type and a value - its content (value) cannot be changed during program execution
static
static
named constant
Arithmetic Operators
37. Symbol that denotes an action to be performed
{ }
integer operands
operator
static
38. 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
binary operator
Sentinel
classes
39. The process of determining if an array contains a particular key value is called _________ the array.
searching
Closing brace
before
vectors
40. Smallest individual unit of a programming language - special symbols or word symbols or identifiers
heap
token
return
int values
41. The process of analyzing and designing a system from an object-oriented point of view is called ________.
type coercion
overloading
object-oriented analysis and design (OOAD)
integer operands
42. * / % + -
Arithmetic Operators
break
>>
inline functions
43. Used for dynamically allocated variables
polymorphism
assignment
heap
delete
44. A program that finds and attaches to your program the indicated libraries for compilation
fstream
Sentinel
object-oriented analysis and design (OOAD)
preprocessor
45. Names of things that are used in a program - can apply to variables & constants and functions
type
reserved words
object file
identifiers
46. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.
register
::
Unified Modeling Language(UML)
scope resolution operator
47. The address-of operator. it is used to assign pointers and to print the address of variables.
default constructor
Unified Modeling Language(UML)
access specifier
&
48. The escape sequence ___ when output with cout and the stream insertion operator - causes the cursor to position to the beginning of the next line on the screen.
/n
showpoint
Sentinel
register
49. The storage-class specifiers are mutable - auto - ________ - extern and static.
auto
loader
NULL
register
50. A constant object must be __________; it cannot be modified after it is created.
#include <headerfilename>
initialized
int values
type coercion
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