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. When a value of one data type is implicitly (automatically) changed to another data type
type coercion
fstream
*
member
2. An operator that can only be used with int values. result will always be an int.
delete
allocating memory
% modulus
auto
3. The number used to refer to a particular element of an array is called its ________.
subscript (or index)
srand
associations
cin.get(ch)
4. This is used to mark the end of a complete C++ programming statement.
dot (.)
derived class
Semicolon
strlen()
5. Function ________ is used to produce random numbers.
rand
floating-point
linker
switch
6. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.
variable
base
srand
friend
7. These are data items whose values do not change while the program is running
showpoint
base class
cin >> variable
Literals
8. Causes the program to immediately goes back to the top of the loop. the remainder of the statements in the loop are ignored for this current iteration.
Semicolon
continue
data type
overloading
9. Whole numbers - no decimals and no commas included
int values
#include directive
Arithmetic Operators
% modulus
10. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.
if
Counter-controlled or definite
before
selection
11. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.
loader
classes
reserved words
object-oriented analysis and design (OOAD)
12. This manipulator causes the field to be left-justified with padding spaces printed to the right.
NULL
scope
identifiers
left
13. A program that finds and attaches to your program the indicated libraries for compilation
fstream
vectors
preprocessor
default constructor
14. Operator with only one operand
operator
unary operator
/n
if...else
15. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.
member
globals
static
variable
16. The escape sequence n represents the _________ character which causes the cursor to position to the beginning of the next line on the screen.
>>
new line
ofstream
*
17. The only integer that can be assigned directly to a pointer is_____________.
0
arithmetic expression
loader
named constant
18. The symbol for the binary scope resolution operator
::
variables
const datatype identifier = value
strlen()
19. The __________ operator reclaims memory previously allocated by new.
variables
const
delete
globals
20. Program components in C++ are called functions and ________.
classes
if...else
Closing brace
arithmetic expression
21. A variable declared outside any block or function is a ________ variable.
heap
char
global
searching
22. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.
a.out
this
classes
void
23. Class members specified as _________ are accessible anywhere an object of the class is in scope.
assignment
whitespace
public
type
24. A function that calls itself
type coercion
base class
continue
recursive function
25. A filestream variable that represents the default output device
overloading
setw
loader
cout
26. This manipulator is used to establish a field width for the value immediately following it.
before
setw
const
void
27. It is possible to have various functions with the same name that operate on different types or numbers of arguments. This is called function ________.
Stack overflow
?
overloading
access specifier
28. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.
beginning
>>
?
Unified Modeling Language(UML)
29. The three ways to return control from a called function to a caller are ________ - return expression and encounter.
whitespace
return
/n
vectors
30. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.
<<
loader
template
function overloading
31. Compares two strings and returns 0 if they are equal.
strcmp()
NULL
?
polymorphism
32. 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.
delete
information hiding
unary scope resolution operator (::)
{ }
33. data types that refer to numbers with decimals
arithmetic expression
floating-point
delete
information hiding
34. The sign you use for references
&
special symbols
Closing brace
register
35. The address-of operator. it is used to assign pointers and to print the address of variables.
non-static
&
definition
if
36. Used for function calls and local variables
stack
reserved words
&
source file
37. A __________ data member represents class-wide information.
static
unary scope resolution operator (::)
information hiding
public
38. The process of determining if an array contains a particular key value is called _________ the array.
searching
char
return
<<
39. All ______ must be declared before they are used.
::
endl (same as 'n')
variables
default constructor
40. int namespace include using return examples of ___________
Unified Modeling Language(UML)
base class
reserve words
overloading
41. Every C++ program begins execution at the function _________.
//
main
n
register
42. Manipulator that causes the insertion point (cursor) to move to the beginning of the next line
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
43. Every C++ statement ends with a(n) _________.
semicolon
classes
sorting
scope
44. 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.
switch
/n
return
friend
45. Two slash marks ( // ) indicate __________ of a comment
function call
beginning
strlen()
polymorphism
46. A ________ program executes before the compiler's translation phase begins.
preprocessor
new line
&
member
47. The ________ program combines the output of the compiler with various library functions to produce an executable image.
linker
mixed expression
Stack overflow
constant variable
48. A variable that holds the address of another variable.
pointer
fixed
::
derived class
49. All C++ Variables are_________.
showpoint
dot (.)
reserved words
case sensitive
50. The ________ statement in a called function passes the value of an expression back to the calling function.
return
function overloading
new line
Default memberwise assignment
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