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. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.
endl (same as 'n')
special symbols
break
operand value
2. 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 (.)
beginning
break
public
3. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.
rand
Stack overflow
arithmetic expression
escape sequences
4. Can be used as a compound "if" statement. it includes a number of different possibilities and directions rather than a single test.
variable
t
switch
inheritance
5. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.
inline functions
return
arithmetic expression
void
6. The stream extraction operator
integer operands
mixed expression
>>
function call
7. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.
const datatype identifier = value
char
classes
strcpy()
8. In inheritance the ____________ is the class the receives the inherited members.
derived class
const datatype identifier = value
pointer
Stack overflow
9. The ________ statement in a called function passes the value of an expression back to the calling function.
endl (same as 'n')
void pointer
classes
return
10. Use 2 characters to represent one
escape sequences
srand
Closing brace
floating-point
11. Function ________ is used to produce random numbers.
scope
rand
showpoint
heap
12. Keyword public is a(n) _________
access specifier
cin >> variable
object-oriented analysis and design (OOAD)
Arithmetic Operators
13. A program that finds and attaches to your program the indicated libraries for compilation
const datatype identifier = value
preprocessor
assignment
<<
14. This manipulator causes the field to be left-justified with padding spaces printed to the right.
n
left
static
static_cast<char>(65)
15. Program components in C++ are called functions and ________.
variables
static
type coercion
classes
16. 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.
?
object file
::
Sentinel
17. A human readable file that contains C++ program
source file
derived class
function overloading
function call
18. The modulus operator (%) can be used only with __________.
integer operands
base class
Preprocessor
t
19. Most calculations are normally performed by ______ statements.
new line
void pointer
member
assignment
20. The ________ program transfers the executable image of a C++ program from disk to memory.
function overloading
Unified Modeling Language(UML)
Counter-controlled or definite
loader
21. A memory location with a name and data type and a value - its content (value) cannot be changed during program execution
named constant
unary scope resolution operator (::)
void pointer
continue
22. For every opening brace in a C++ program there must be a ______________.
classes
Closing brace
#include directive
integer operands
23. Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise.
auto
reserved words
named constant
like-type expression
24. Syntax for named constant declaration
default constructor
case sensitive
const datatype identifier = value
continue
25. In inheritance the ____________ is the class that supplies the inherited members.
base class
Semicolon
recursive
register
26. This manipulator is used to establish a field width for the value immediately following it.
*
setw
break
type coercion
27. The number used to refer to a particular element of an array is called its ________.
friend
void
subscript (or index)
showpoint
28. The only integer that can be assigned directly to a pointer is_____________.
0
.cpp
const datatype identifier = value
showpoint
29. 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.
void pointer
#include <headerfilename>
inheritance
{ }
30. = & | are examples of ____________.
special symbols
.cpp
identifiers
searching
31. A file must be ________ before data can be written to or read from it.
attributes
inheritance
opened
heap
32. Every C++ statement ends with a(n) _________.
new line
endl (same as 'n')
semicolon
getline
33. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________
operator overloading
reserve words
sorting
source file
34. The process of determining if an array contains a particular key value is called _________ the array.
Semicolon
searching
operator overloading
recursive
35. Words that are used for special purposes in a program
reserved words
base class
default constructor
binary operator
36. Type casting syntax
preprocessor
static_cast<char>(65)
delete
member
37. Whole numbers - no decimals and no commas included
polymorphism
int values
t
Closing brace
38. The size & shape & color and weight of an object are considered
break
attributes
variable
cin.get(ch)
39. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.
//
strcpy()
switch
endl (same as 'n')
40. * / % + -
Arithmetic Operators
int values
prompt
access specifier
41. To explicitly indicate that a value is to be converted to another type
.cpp
/n
named constant
type casting (conversion)
42. The ________ qualifier is used to declare read-only variables.
srand
static
if
const
43. Smallest individual unit of a programming language - special symbols or word symbols or identifiers
token
base
local variable
attributes
44. Characters used to separate symbols or reserved words or identifiers and statements
searching
unary operator
definition
whitespace
45. 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.
type coercion
*
type casting (conversion)
information hiding
46. The three ways to return control from a called function to a caller are ________ - return expression and encounter.
virtual functions
default constructor
return
Semicolon
47. Associate an identifier with a memory location
reserve words
function prototype
overloading
allocating memory
48. Every C++ program begins execution at the function _________.
vectors
heap
main
static
49. Message displayed to the screen asking user for input; generated with an output statement
prompt
default constructor
type
overloading
50. C++ programs are normally typed into a computer using a(n) ________ program.
editor
private
type
% 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