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. A constant object must be __________; it cannot be modified after it is created.
initialized
case sensitive
syntax
globals
2. Executable version of program
initialized
endl (same as 'n')
n
object file
3. Used for function calls and local variables
stack
address
<<
Preprocessor
4. A________ allows the compiler to check the number & types and order of the arguments passed to a function.
type casting (conversion)
prompt
function prototype
::
5. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.
function scope
classes
cin.get(ch)
register
6. A variable that is known only within the function in which it is defined is called a ________.
overloading
template
local variable
allocating memory
7. A type of pointer that can point at objects of any data type.
assignment
&
rand
void pointer
8. A function ________ enables a single function to be defined to perform a task on many different data types.
opened
template
before
arithmetic expression
9. Grammar rules of the language; compiler will try to identify and locate syntax errors
?
endl (same as 'n')
syntax
base
10. All C++ Variables are_________.
fixed
data type
case sensitive
delete
11. Keyword public is a(n) _________
unary scope resolution operator (::)
variables
beginning
access specifier
12. An array that uses two subscripts is referred to as a(n) _________ array.
operator overloading
two-dimensional
like-type expression
unary operator
13. 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
14. 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.
void
{ }
rand
global
15. 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.
type casting (conversion)
this
information hiding
preprocessor
16. The ________ enables access to a global variable with the same name as a variable in the current scope.
*
unary scope resolution operator (::)
Semicolon
variables
17. Operator with two operands
scope resolution operator
function parameters
binary operator
continue
18. The storage-class specifiers are mutable - auto - ________ - extern and static.
type casting (conversion)
static_cast<char>(65)
register
before
19. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.
Stack overflow
Sentinel
Counter-controlled or definite
endl (same as 'n')
20. The stream extraction operator
>>
data type
void pointer
Closing brace
21. 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
static
#include
0
base
22. Header file that contains commonly performed mathematical functions
cout
opened
cmath
Arithmetic Operators
23. The new operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.
member
attributes
pointer
strcpy()
24. Names of things that are used in a program - can apply to variables & constants and functions
comments
special symbols
identifiers
classes
25. The_________selection statement is used to execute one action when a condition is TRue or a different action when that condition is false.
switch
register
local variable
if...else
26. Most calculations are normally performed by ______ statements.
assignment
syntax
/n
default constructor
27. You can declare default values for a function in the ____________________.
special symbols
function scope
function parameters
semicolon
28. A __________ should be used to declare the size of an array because it makes the program more scalable.
static
constant variable
initialized
?
29. A file must be ________ before data can be written to or read from it.
Sentinel
recursive
opened
initialized
30. The _________ begins the body of every function and the _________ ends the body of every function.
{ }
comments
stack
preprocessor
31. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.
floating-point
//
global
endl (same as 'n')
32. 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.
?
Preprocessor
constant variable
/n
33. The ________ of an identifier is the portion of the program in which the identifier can be used.
>>
scope
a.out
int values
34. Symbol that denotes an action to be performed
operator
polymorphism
default constructor
left
35. A function is invoked with a ________.
function call
binary operator
member
const
36. An expression in which all operands have the same data type - result will have the same data type as operands
unary operator
&
function call
like-type expression
37. Naming convention for C++ programs
editor
const datatype identifier = value
strcmp()
.cpp
38. Syntax for named constant declaration
object-oriented analysis and design (OOAD)
const datatype identifier = value
const
function call
39. A C++ statement that makes a decision is ______.
address
beginning
if
heap
40. = & | are examples of ____________.
inline functions
special symbols
member
rand
41. Creates a copy of a string.
unary operator
strcpy()
int values
function prototype
42. Function ________ is used to produce random numbers.
function overloading
semicolon
Preprocessor
rand
43. The three values that can be used to initialize a pointer are 0 - __________ and an address.
function overloading
private
type
NULL
44. Allows the programmer to store a value in a variable
assignment statement
?
main
dot (.)
45. If a member initializer is not provided for a member object of a class the object's __________ is called.
access specifier
Closing brace
default constructor
global
46. A sequence of operands and operators that describe a calculation to be performed
type casting (conversion)
template
Stack overflow
arithmetic expression
47. A member function should be declared static if it does not access __________ class members.
like-type expression
return
assignment
non-static
48. This manipulator causes the field to be left-justified with padding spaces printed to the right.
rand
left
strcmp()
searching
49. C++ programs are normally typed into a computer using a(n) ________ program.
&
editor
allocating memory
definition
50. The ________ program transfers the executable image of a C++ program from disk to memory.
data type
assignment statement
loader
like-type expression
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