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. Naming convention for C++ programs
floating-point
.cpp
if
const
2. A type of pointer that can point at objects of any data type.
cin
/n
void pointer
?
3. A variable that holds the address of another variable.
break
pointer
t
named constant
4. = & | are examples of ____________.
special symbols
ofstream
associations
reserved words
5. Forces the computer to display decimal point and trailing zeroes
showpoint
ofstream
template
const
6. The elements of an array are related by the fact that they have the same name and ___________.
case sensitive
&
identifiers
type
7. A ________ program executes before the compiler's translation phase begins.
continue
base
<<
preprocessor
8. Class members specified as _________ are accessible anywhere an object of the class is in scope.
main
::
public
strcpy()
9. You can declare default values for a function in the ____________________.
&
static_cast<char>(65)
prompt
function parameters
10. The conditional operator. it evaluates a line of code and returns one thing if the condition is true and a different thing if the condition is false.
function call
?
switch
private
11. The storage-class specifiers are mutable - auto - ________ - extern and static.
register
*
0
void
12. newline
derived class
fixed
n
classes
13. Function _________ from the <string> library reads characters until a newline character is encountered - then copies those characters into the specified string.
{ }
integer operands
new line
getline
14. A constant object must be __________; it cannot be modified after it is created.
initialized
>>
unary operator
definition
15. The ________ statement in a called function passes the value of an expression back to the calling function.
attributes
Stack overflow
fixed
return
16. A filestream variable that represents the default output device
cout
cin >> variable
associations
linker
17. All ______ must be declared before they are used.
data type
register
void
variables
18. The process of analyzing and designing a system from an object-oriented point of view is called ________.
semantics
char
object-oriented analysis and design (OOAD)
new line
19. The stream insertion operator
const
floating-point
<<
subscript (or index)
20. The_________selection statement is used to execute one action when a condition is TRue or a different action when that condition is false.
address
if...else
srand
definition
21. The sign you use for references
return
&
cmath
local variable
22. Header file that contains commonly performed mathematical functions
auto
cmath
setw
if...else
23. A memory location with a name and data type - its content may be changed during program execution
type
.cpp
main
variable
24. In inheritance the ____________ is the class the receives the inherited members.
derived class
object-oriented analysis and design (OOAD)
base class
cmath
25. The ________ of an identifier is the portion of the program in which the identifier can be used.
left
?
scope
.cpp
26. Function ________ is used to set the random number seed to randomize a program.
srand
non-static
sorting
scope resolution operator
27. 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
pointer
stack
endl (same as 'n')
base
28. When a value of one data type is implicitly (automatically) changed to another data type
type coercion
Sentinel
main
Default memberwise assignment
29. Syntax for reading char type variables by extracting one nonwhitespace character extracted at a time
cin >> variable
object-oriented analysis and design (OOAD)
special symbols
like-type expression
30. The sign you use for pointers
fstream
*
scope resolution operator
reserve words
31. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.
Unified Modeling Language(UML)
editor
rand
searching
32. Classes can have relationships with other classes. These relationships are called ________.
strcmp()
associations
public
const datatype identifier = value
33. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.
cmath
attributes
selection
assignment
34. A set of values together with a set of operations
operator
fstream
before
data type
35. Preprocessor directive syntax
#include <headerfilename>
virtual functions
assignment statement
local variable
36. Symbol that denotes an action to be performed
classes
operator
vectors
allocating memory
37. The ________ program combines the output of the compiler with various library functions to produce an executable image.
type coercion
getline
linker
#include
38. Nonexecutable statements that are included in a program to provide information about what the program does etc.
comments
/n
variable
opened
39. The only integer that can be assigned directly to a pointer is_____________.
syntax
attributes
associations
0
40. directive A statement that starts with a # is called a ____________.
Preprocessor
definition
scope resolution operator
pointer
41. data types that refer to numbers with decimals
floating-point
Closing brace
<<
n
42. Member objects are constructed __________ their enclosing class object.
before
classes
reserved words
if
43. These are data items whose values do not change while the program is running
switch
Literals
this
globals
44. The size & shape & color and weight of an object are considered
Default memberwise assignment
named constant
attributes
reserve words
45. 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
46. To allow file access in a program you must #include this header file.
fstream
inheritance
Literals
switch
47. Operator with only one operand
type
register
unary operator
assignment statement
48. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.
inline functions
getline
::
preprocessor
49. Identifier or expression that is part of the calculation to be performed
operand value
delete
special symbols
arithmetic expression
50. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')
#include
void
srand
char
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