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. Executable version of program
>>
object file
strcpy()
Unified Modeling Language(UML)
2. Type casting syntax
non-static
static_cast<char>(65)
register
#include directive
3. All C++ Variables are_________.
address
case sensitive
type
left
4. The stream insertion operator
strcmp()
dot (.)
<<
::
5. The elements of an array are related by the fact that they have the same name and ___________.
type
char
fstream
floating-point
6. For every opening brace in a C++ program there must be a ______________.
recursive function
Closing brace
linker
base class
7. It is possible to have various functions with the same name that operate on different types or numbers of arguments. This is called function ________.
global
overloading
searching
cin >> variable
8. Program components in C++ are called functions and ________.
a.out
classes
Closing brace
global
9. Function ________ is used to set the random number seed to randomize a program.
srand
selection
setw
const
10. Repeating a set of instructions a specific number of times is called_________repetition.
Counter-controlled or definite
prompt
heap
?
11. In inheritance the ____________ is the class the receives the inherited members.
continue
auto
two-dimensional
derived class
12. A human readable file that contains C++ program
semicolon
source file
allocating memory
void pointer
13. The new operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.
pointer
cin.get(ch)
classes
scope
14. Words that are used for special purposes in a program
two-dimensional
auto
identifiers
reserved words
15. Operator with two operands
cin >> variable
integer operands
linker
binary operator
16. int namespace include using return examples of ___________
#include <headerfilename>
reserve words
int values
return
17. The idea that you can call the same function and the output will depend on the type of object you're using.
scope resolution operator
pointer
inline functions
polymorphism
18. To explicitly indicate that a value is to be converted to another type
special symbols
type casting (conversion)
loader
Stack overflow
19. Used for dynamically allocated variables
0
attributes
heap
definition
20. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.
classes
const datatype identifier = value
new line
heap
21. You must have a ___________ for every variable you intend to use in a program
information hiding
Semicolon
definition
break
22. Allows the programmer to store a value in a variable
semantics
assignment statement
Default memberwise assignment
classes
23. Keyword public is a(n) _________
Stack overflow
non-static
subscript (or index)
access specifier
24. * / % + -
mixed expression
#include directive
Arithmetic Operators
recursive function
25. Meaning of the instructions in the language; compiler cannot find these errors - often called logic errors
semantics
source file
fstream
preprocessor
26. Names of things that are used in a program - can apply to variables & constants and functions
Arithmetic Operators
identifiers
like-type expression
left
27. Compares two strings and returns 0 if they are equal.
strcmp()
showpoint
void pointer
?
28. The size & shape & color and weight of an object are considered
heap
pointer
base class
attributes
29. Used to qualify hidden names so that they can be used.
scope resolution operator
strlen()
unary operator
allocating memory
30. 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.
mixed expression
named constant
allocating memory
virtual functions
31. Two slash marks ( // ) indicate __________ of a comment
scope
virtual functions
beginning
if
32. Classes can have relationships with other classes. These relationships are called ________.
% modulus
const
associations
function call
33. Syntax for named constant declaration
#include <headerfilename>
binary operator
const datatype identifier = value
public
34. Returns the length of a string excluding the null terminator.
subscript (or index)
non-static
strlen()
function call
35. A________ allows the compiler to check the number & types and order of the arguments passed to a function.
delete
function prototype
cmath
semicolon
36. The three values that can be used to initialize a pointer are 0 - __________ and an address.
//
initialized
integer operands
NULL
37. The sign you use for references
#include <headerfilename>
&
cin >> variable
constant variable
38. The ________ program transfers the executable image of a C++ program from disk to memory.
setw
opened
base
loader
39. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.
Arithmetic Operators
new line
selection
type coercion
40. Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise.
setw
static
auto
strcmp()
41. Used for function calls and local variables
left
linker
object file
stack
42. A set of values together with a set of operations
data type
cmath
const datatype identifier = value
integer operands
43. Function _________ from the <string> library reads characters until a newline character is encountered - then copies those characters into the specified string.
getline
recursive
if
const datatype identifier = value
44. Nonexecutable statements that are included in a program to provide information about what the program does etc.
const
unary scope resolution operator (::)
&
comments
45. A member function should be declared static if it does not access __________ class members.
base class
vectors
non-static
void
46. Lists and tables of values can be stored in arrays or __________.
>>
beginning
special symbols
vectors
47. The _________ begins the body of every function and the _________ ends the body of every function.
t
{ }
public
case sensitive
48. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.
function overloading
register
operator
token
49. The storage-class specifiers are mutable - auto - ________ - extern and static.
arithmetic expression
register
token
switch
50. Sets floating-point values to a fixed decimal format
syntax
fixed
variable
escape sequences
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