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 variable that holds the address of another variable.
static_cast<char>(65)
pointer
::
#include
2. The stream insertion operator
stack
endl (same as 'n')
<<
getline
3. Naming convention for C++ programs
integer operands
cin.get(ch)
.cpp
*
4. Two slash marks ( // ) indicate __________ of a comment
scope
editor
base
beginning
5. The ________ program transfers the executable image of a C++ program from disk to memory.
object-oriented analysis and design (OOAD)
cin
inheritance
loader
6. Repeating a set of instructions a specific number of times is called_________repetition.
heap
subscript (or index)
Counter-controlled or definite
type
7. A set of values together with a set of operations
data type
globals
allocating memory
source file
8. The _____ causes the contents of another file to be inserted into a program.
left
new line
#include directive
n
9. A variable declared outside any block or function is a ________ variable.
object file
cmath
global
dot (.)
10. Used to qualify hidden names so that they can be used.
void
editor
pointer
scope resolution operator
11. A human readable file that contains C++ program
comments
recursive
attributes
source file
12. A __________ data member represents class-wide information.
token
ofstream
preprocessor
static
13. int namespace include using return examples of ___________
like-type expression
data type
reserve words
Unified Modeling Language(UML)
14. The six possible scopes of an identifier are ________ - file scope - block scope - function-prototype scope - class scope - namespace scope .
operator
function scope
type
new line
15. Operator with two operands
subscript (or index)
binary operator
rand
>>
16. The _________ begins the body of every function and the _________ ends the body of every function.
ofstream
{ }
const
token
17. Class members specified as _________ are accessible anywhere an object of the class is in scope.
public
preprocessor
pointer
syntax
18. A memory location with a name and data type - its content may be changed during program execution
escape sequences
const
variable
editor
19. Class members specified as _________ are accessible only to member functions of the class and friends of the class.
endl (same as 'n')
register
searching
private
20. A type of pointer that can point at objects of any data type.
overloading
cmath
void pointer
void
21. The idea that you can call the same function and the output will depend on the type of object you're using.
preprocessor
&
polymorphism
a.out
22. The three ways to return control from a called function to a caller are ________ - return expression and encounter.
return
break
data type
?
23. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.
information hiding
friend
semantics
case sensitive
24. Used for dynamically allocated variables
identifiers
two-dimensional
opened
heap
25. The keyword __________ specifies that an object or variable is not modifiable after it is initialized.
prompt
cin
getline
const
26. Header file that contains commonly performed mathematical functions
recursive function
cmath
?
::
27. 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
28. Member objects are constructed __________ their enclosing class object.
assignment statement
% modulus
before
srand
29. A________ allows the compiler to check the number & types and order of the arguments passed to a function.
member
variables
heap
function prototype
30. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.
globals
prompt
function parameters
static_cast<char>(65)
31. A sequence of operands and operators that describe a calculation to be performed
inline functions
arithmetic expression
#include
classes
32. Whole numbers - no decimals and no commas included
Closing brace
mixed expression
int values
attributes
33. These are data items whose values do not change while the program is running
Literals
<<
void
overloading
34. A __________ should be used to declare the size of an array because it makes the program more scalable.
associations
showpoint
constant variable
dot (.)
35. * / % + -
global
Semicolon
access specifier
Arithmetic Operators
36. This manipulator is used to establish a field width for the value immediately following it.
{ }
default constructor
getline
setw
37. Operator with only one operand
integer operands
initialized
object file
unary operator
38. The stream extraction operator
>>
function overloading
n
definition
39. Syntax for reading char type variables by extracting one nonwhitespace character extracted at a time
{ }
cin >> variable
constant variable
const
40. The sign you use for references
attributes
local variable
&
inheritance
41. 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.
getline
static
continue
opened
42. Used for function calls and local variables
allocating memory
inheritance
stack
identifiers
43. All ______ must be declared before they are used.
variables
whitespace
fixed
function parameters
44. directive A statement that starts with a # is called a ____________.
access specifier
t
void
Preprocessor
45. 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.
pointer
/n
setw
if
46. A function ________ enables a single function to be defined to perform a task on many different data types.
?
source file
template
base
47. Use 2 characters to represent one
const
source file
local variable
escape sequences
48. An expression in which all operands have the same data type - result will have the same data type as operands
break
scope
like-type expression
non-static
49. C++ programs are normally typed into a computer using a(n) ________ program.
&
selection
editor
escape sequences
50. __________ can be used to assign an object of a class to another object of the same class.
polymorphism
Default memberwise assignment
reserved words
floating-point
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