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. The process of determining if an array contains a particular key value is called _________ the array.
linker
cin >> variable
searching
scope resolution operator
2. Names of things that are used in a program - can apply to variables & constants and functions
definition
polymorphism
identifiers
address
3. The symbol for the binary scope resolution operator
::
const datatype identifier = value
function overloading
const
4. Class members specified as _________ are accessible only to member functions of the class and friends of the class.
private
//
if...else
NULL
5. A human readable file that contains C++ program
source file
dot (.)
static
Counter-controlled or definite
6. A constant object must be __________; it cannot be modified after it is created.
cout
initialized
Closing brace
source file
7. Function ________ is used to set the random number seed to randomize a program.
globals
srand
static
special symbols
8. Most calculations are normally performed by ______ statements.
assignment
::
local variable
left
9. When a value of one data type is implicitly (automatically) changed to another data type
operator
sorting
type coercion
return
10. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________
ofstream
operator overloading
identifiers
preprocessor
11. Allows the programmer to store a value in a variable
function call
attributes
assignment statement
floating-point
12. All ______ must be declared before they are used.
variables
function overloading
classes
int values
13. The new operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.
switch
int values
pointer
classes
14. Syntax for named constant declaration
*
dot (.)
const datatype identifier = value
Default memberwise assignment
15. data types that refer to numbers with decimals
recursive function
loader
floating-point
::
16. A ________ program executes before the compiler's translation phase begins.
cin
preprocessor
Counter-controlled or definite
Unified Modeling Language(UML)
17. These are data items whose values do not change while the program is running
Literals
if
initialized
Counter-controlled or definite
18. A program that finds and attaches to your program the indicated libraries for compilation
heap
ofstream
Semicolon
preprocessor
19. 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.
dot (.)
static_cast<char>(65)
binary operator
void
20. This is used to mark the end of a complete C++ programming statement.
Semicolon
&
floating-point
sorting
21. The_________selection statement is used to execute one action when a condition is TRue or a different action when that condition is false.
if...else
address
like-type expression
main
22. Two slash marks ( // ) indicate __________ of a comment
NULL
int values
Semicolon
beginning
23. The ________ program combines the output of the compiler with various library functions to produce an executable image.
linker
Unified Modeling Language(UML)
heap
break
24. A memory location with a name and data type and a value - its content (value) cannot be changed during program execution
Semicolon
named constant
if...else
a.out
25. To explicitly indicate that a value is to be converted to another type
access specifier
recursive function
recursive
type casting (conversion)
26. Program components in C++ are called functions and ________.
function scope
register
% modulus
classes
27. A sequence of operands and operators that describe a calculation to be performed
arithmetic expression
base
delete
const
28. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.
recursive function
&
variables
Stack overflow
29. Lists and tables of values can be stored in arrays or __________.
heap
object file
Arithmetic Operators
vectors
30. Keyword public is a(n) _________
pointer
auto
type
access specifier
31. 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.
::
?
stack
special symbols
32. A memory location with a name and data type - its content may be changed during program execution
variable
prompt
break
source file
33. newline
recursive function
return
arithmetic expression
n
34. The size & shape & color and weight of an object are considered
{ }
attributes
scope
preprocessor
35. A member function should be declared static if it does not access __________ class members.
cmath
non-static
t
operand value
36. A function is invoked with a ________.
#include
function call
0
register
37. Default name of executable file
Arithmetic Operators
before
left
a.out
38. Associate an identifier with a memory location
allocating memory
information hiding
non-static
heap
39. A __________ should be used to declare the size of an array because it makes the program more scalable.
strcmp()
whitespace
constant variable
operand value
40. Executable version of program
binary operator
fixed
if
object file
41. A variable that holds the address of another variable.
local variable
subscript (or index)
<<
pointer
42. * / % + -
global
return
Arithmetic Operators
semantics
43. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')
object-oriented analysis and design (OOAD)
arithmetic expression
char
main
44. The address-of operator. it is used to assign pointers and to print the address of variables.
Literals
break
&
Closing brace
45. Sets floating-point values to a fixed decimal format
base
special symbols
vectors
fixed
46. 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.
friend
information hiding
return
Counter-controlled or definite
47. Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise.
constant variable
auto
sorting
virtual functions
48. Grammar rules of the language; compiler will try to identify and locate syntax errors
identifiers
syntax
definition
cin
49. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.
this
/n
member
preprocessor
50. A function that can be used to read character data including whitespace
type casting (conversion)
recursive function
return
cin.get(ch)
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