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. Sets floating-point values to a fixed decimal format
>>
<<
pointer
fixed
2. The _________ begins the body of every function and the _________ ends the body of every function.
access specifier
{ }
Arithmetic Operators
register
3. A function that can be used to read character data including whitespace
vectors
cin.get(ch)
access specifier
recursive
4. Can be used as a compound "if" statement. it includes a number of different possibilities and directions rather than a single test.
constant variable
ofstream
default constructor
switch
5. A sequence of operands and operators that describe a calculation to be performed
address
arithmetic expression
*
{ }
6. 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
type coercion
allocating memory
unary operator
7. An expression in which all operands have the same data type - result will have the same data type as operands
identifiers
Arithmetic Operators
auto
like-type expression
8. When a value of one data type is implicitly (automatically) changed to another data type
type coercion
semicolon
binary operator
local variable
9. Words that are used for special purposes in a program
t
allocating memory
const datatype identifier = value
reserved words
10. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.
global
selection
scope resolution operator
static
11. The process of placing the elements of an array in order is called ________ the array.
sorting
pointer
Sentinel
vectors
12. The address-of operator. it is used to assign pointers and to print the address of variables.
&
left
#include <headerfilename>
return
13. This manipulator is used to establish a field width for the value immediately following it.
inheritance
variable
setw
register
14. Characters used to separate symbols or reserved words or identifiers and statements
binary operator
if...else
overloading
whitespace
15. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.
object-oriented analysis and design (OOAD)
Counter-controlled or definite
inline functions
allocating memory
16. Keyword public is a(n) _________
access specifier
operator
#include
fixed
17. A __________ should be used to declare the size of an array because it makes the program more scalable.
allocating memory
named constant
constant variable
getline
18. The ________ qualifier is used to declare read-only variables.
associations
base class
type casting (conversion)
const
19. The three values that can be used to initialize a pointer are 0 - __________ and an address.
NULL
object file
cin.get(ch)
beginning
20. A ________ program executes before the compiler's translation phase begins.
associations
type coercion
{ }
preprocessor
21. Class members specified as _________ are accessible only to member functions of the class and friends of the class.
<<
private
loader
information hiding
22. A C++ statement that makes a decision is ______.
if
function parameters
0
cin >> variable
23. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.
break
assignment
scope
member
24. Classes can have relationships with other classes. These relationships are called ________.
break
global
associations
main
25. The only integer that can be assigned directly to a pointer is_____________.
static
function prototype
&
0
26. The elements of an array are related by the fact that they have the same name and ___________.
Literals
setw
getline
type
27. A function that calls itself
globals
recursive function
return
t
28. Naming convention for C++ programs
virtual functions
.cpp
NULL
local variable
29. Initializers __________ must be used to initialize constant members of a class.
if...else
information hiding
member
#include <headerfilename>
30. = & | are examples of ____________.
member
getline
special symbols
linker
31. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.
source file
loader
//
strcpy()
32. The ________ enables access to a global variable with the same name as a variable in the current scope.
unary scope resolution operator (::)
continue
variable
comments
33. Names of things that are used in a program - can apply to variables & constants and functions
object file
function call
/n
identifiers
34. __________ can be used to assign an object of a class to another object of the same class.
Default memberwise assignment
#include
binary operator
special symbols
35. A variable that is known only within the function in which it is defined is called a ________.
integer operands
local variable
object file
function call
36. The new operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.
arithmetic expression
pointer
void
allocating memory
37. 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.
prompt
/n
.cpp
strcmp()
38. To explicitly indicate that a value is to be converted to another type
char
syntax
setw
type casting (conversion)
39. Used for dynamically allocated variables
Unified Modeling Language(UML)
non-static
heap
Default memberwise assignment
40. C++ programs are normally typed into a computer using a(n) ________ program.
function prototype
*
prompt
editor
41. Identifier or expression that is part of the calculation to be performed
operand value
base
derived class
operator
42. All C++ Variables are_________.
dot (.)
if
delete
case sensitive
43. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.
friend
cin.get(ch)
const
function overloading
44. Class members are accessed via the ________ operator in conjunction with the name of an object (or reference to an object) of the class or via the arrow (->) operator in conjunction with a pointer to an object of the class.
t
classes
dot (.)
register
45. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.
globals
rand
access specifier
ofstream
46. The sign you use for pointers
base class
prompt
void pointer
*
47. Function ________ is used to produce random numbers.
associations
fixed
rand
cin >> variable
48. A constant object must be __________; it cannot be modified after it is created.
integer operands
like-type expression
virtual functions
initialized
49. A memory location with a name and data type - its content may be changed during program execution
>>
t
recursive
variable
50. The ________ of an identifier is the portion of the program in which the identifier can be used.
inheritance
scope
const datatype identifier = value
source file
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