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. Associate an identifier with a memory location
binary operator
function call
rand
allocating memory
2. Program components in C++ are called functions and ________.
before
classes
constant variable
source file
3. __________ can be used to assign an object of a class to another object of the same class.
>>
Default memberwise assignment
heap
Closing brace
4. In inheritance the ____________ is the class the receives the inherited members.
data type
derived class
source file
mixed expression
5. You can declare default values for a function in the ____________________.
0
pointer
NULL
function parameters
6. Creates a copy of a string.
left
type coercion
strcpy()
function overloading
7. This manipulator is used to establish a field width for the value immediately following it.
::
setw
data type
getline
8. Every C++ statement ends with a(n) _________.
allocating memory
Closing brace
semicolon
NULL
9. The process of determining if an array contains a particular key value is called _________ the array.
#include
% modulus
local variable
searching
10. To explicitly indicate that a value is to be converted to another type
special symbols
cmath
type casting (conversion)
Arithmetic Operators
11. 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.
?
/n
>>
named constant
12. Function ________ is used to produce random numbers.
named constant
rand
variable
selection
13. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.
local variable
const datatype identifier = value
this
Unified Modeling Language(UML)
14. 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
reserve words
derived class
classes
15. Used to qualify hidden names so that they can be used.
reserve words
semantics
scope resolution operator
srand
16. A set of values together with a set of operations
stack
data type
integer operands
global
17. Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise.
*
auto
object file
fstream
18. The process of analyzing and designing a system from an object-oriented point of view is called ________.
vectors
prompt
object-oriented analysis and design (OOAD)
return
19. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.
two-dimensional
subscript (or index)
function prototype
classes
20. A function is invoked with a ________.
//
srand
function call
special symbols
21. The address-of operator. it is used to assign pointers and to print the address of variables.
break
object-oriented analysis and design (OOAD)
&
recursive
22. The size & shape & color and weight of an object are considered
//
delete
attributes
base
23. Symbol that denotes an action to be performed
operator
preprocessor
Closing brace
switch
24. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.
function prototype
member
break
char
25. A ________ program executes before the compiler's translation phase begins.
subscript (or index)
preprocessor
cin >> variable
static_cast<char>(65)
26. Smallest individual unit of a programming language - special symbols or word symbols or identifiers
token
semicolon
address
Stack overflow
27. * / % + -
globals
srand
Arithmetic Operators
preprocessor
28. This manipulator causes the field to be left-justified with padding spaces printed to the right.
public
break
private
left
29. It is possible to have various functions with the same name that operate on different types or numbers of arguments. This is called function ________.
overloading
integer operands
Stack overflow
like-type expression
30. A program that finds and attaches to your program the indicated libraries for compilation
static_cast<char>(65)
preprocessor
continue
t
31. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.
const
preprocessor
register
{ }
32. Class members specified as _________ are accessible only to member functions of the class and friends of the class.
srand
default constructor
private
object file
33. When a value of one data type is implicitly (automatically) changed to another data type
default constructor
pointer
type coercion
void
34. The ________ program combines the output of the compiler with various library functions to produce an executable image.
char
operator overloading
linker
0
35. Keyword public is a(n) _________
access specifier
% modulus
delete
variables
36. Operator with two operands
unary operator
<<
srand
binary operator
37. The stream insertion operator
<<
void
before
pointer
38. If a member initializer is not provided for a member object of a class the object's __________ is called.
default constructor
semicolon
void
return
39. To write data to a file you define an object of which one of the following
Default memberwise assignment
ofstream
type
0
40. You must have a ___________ for every variable you intend to use in a program
pointer
overloading
const datatype identifier = value
definition
41. 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.
loader
dot (.)
friend
virtual functions
42. The stream extraction operator
>>
Literals
integer operands
const
43. The six possible scopes of an identifier are ________ - file scope - block scope - function-prototype scope - class scope - namespace scope .
function call
constant variable
?
function scope
44. The keyword ________ is used in a function header to indicate that a function does not return a value or to indicate that a function contains no parameters.
overloading
void
#include <headerfilename>
operator
45. Characters used to separate symbols or reserved words or identifiers and statements
special symbols
attributes
#include directive
whitespace
46. A member function should be declared static if it does not access __________ class members.
recursive function
non-static
floating-point
selection
47. Lists and tables of values can be stored in arrays or __________.
&
escape sequences
vectors
function overloading
48. The new operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.
stack
comments
assignment statement
pointer
49. Two slash marks ( // ) indicate __________ of a comment
beginning
operator overloading
Default memberwise assignment
Closing brace
50. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')
vectors
char
object-oriented analysis and design (OOAD)
% modulus
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