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. Repeating a set of instructions a specific number of times is called_________repetition.
Counter-controlled or definite
static
getline
preprocessor
2. A C++ statement that makes a decision is ______.
fixed
member
if
Counter-controlled or definite
3. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.
friend
preprocessor
definition
register
4. The stream extraction operator
>>
Default memberwise assignment
public
left
5. The address-of operator. it is used to assign pointers and to print the address of variables.
variable
recursive
&
Sentinel
6. Default name of executable file
a.out
{ }
semicolon
public
7. Used for function calls and local variables
stack
Literals
register
address
8. In inheritance the ____________ is the class the receives the inherited members.
function overloading
syntax
derived class
default constructor
9. A __________ should be used to declare the size of an array because it makes the program more scalable.
semantics
Stack overflow
constant variable
cin
10. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________
if...else
auto
strcmp()
operator overloading
11. When you create a ___________________in the base class and then call it using an object the function will know to look in the inherited class for the specifics of that function.
escape sequences
virtual functions
opened
local variable
12. 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
integer operands
template
member
13. Symbol that denotes an action to be performed
function parameters
variables
pointer
operator
14. The sign you use for references
&
Arithmetic Operators
function call
function scope
15. The modulus operator (%) can be used only with __________.
::
integer operands
linker
switch
16. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.
selection
friend
type
break
17. Nonexecutable statements that are included in a program to provide information about what the program does etc.
function scope
comments
floating-point
opened
18. __________ can be used to assign an object of a class to another object of the same class.
editor
int values
two-dimensional
Default memberwise assignment
19. Class members specified as _________ are accessible anywhere an object of the class is in scope.
unary operator
comments
public
virtual functions
20. The size & shape & color and weight of an object are considered
attributes
function call
friend
mixed expression
21. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.
inline functions
auto
recursive
#include <headerfilename>
22. 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
23. Executable version of program
auto
cout
object file
base class
24. The three values that can be used to initialize a pointer are 0 - __________ and an address.
beginning
NULL
address
char
25. The process of placing the elements of an array in order is called ________ the array.
loader
sorting
operator
strlen()
26. Class members specified as _________ are accessible only to member functions of the class and friends of the class.
private
/n
floating-point
default constructor
27. Use 2 characters to represent one
escape sequences
non-static
fixed
mixed expression
28. Used to qualify hidden names so that they can be used.
scope resolution operator
semicolon
return
strcmp()
29. A member function should be declared static if it does not access __________ class members.
non-static
&
operand value
cin >> variable
30. A function that can be used to read character data including whitespace
classes
reserved words
fstream
cin.get(ch)
31. For every opening brace in a C++ program there must be a ______________.
globals
Closing brace
variable
#include directive
32. Every C++ statement ends with a(n) _________.
preprocessor
void pointer
semicolon
associations
33. A __________ data member represents class-wide information.
token
cin >> variable
static
switch
34. The only integer that can be assigned directly to a pointer is_____________.
initialized
0
NULL
ofstream
35. Operator with two operands
operator
binary operator
comments
beginning
36. Smallest individual unit of a programming language - special symbols or word symbols or identifiers
polymorphism
token
cin >> variable
access specifier
37. 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.
inheritance
linker
associations
cmath
38. Header file that contains commonly performed mathematical functions
floating-point
const
cmath
/n
39. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.
new line
recursive
Stack overflow
void pointer
40. The _________ begins the body of every function and the _________ ends the body of every function.
break
local variable
sorting
{ }
41. * / % + -
arithmetic expression
Arithmetic Operators
floating-point
selection
42. When a value of one data type is implicitly (automatically) changed to another data type
type coercion
recursive
if
break
43. The escape sequence n represents the _________ character which causes the cursor to position to the beginning of the next line on the screen.
setw
new line
linker
before
44. The_________selection statement is used to execute one action when a condition is TRue or a different action when that condition is false.
allocating memory
base class
constant variable
if...else
45. The stream insertion operator
?
inheritance
&
<<
46. A variable declared outside any block or function is a ________ variable.
0
like-type expression
global
floating-point
47. tab
delete
preprocessor
t
operator overloading
48. The elements of an array are related by the fact that they have the same name and ___________.
type
template
cout
::
49. The ________ statement in a called function passes the value of an expression back to the calling function.
strcmp()
information hiding
reserve words
return
50. Syntax for named constant declaration
public
const datatype identifier = value
function scope
#include <headerfilename>
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