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. Repeating a set of instructions a specific number of times is called_________repetition.
Counter-controlled or definite
like-type expression
classes
return
2. int namespace include using return examples of ___________
semicolon
reserve words
?
<<
3. Identifier or expression that is part of the calculation to be performed
operand value
assignment statement
setw
selection
4. Smallest individual unit of a programming language - special symbols or word symbols or identifiers
token
void
whitespace
prompt
5. Syntax for reading char type variables by extracting one nonwhitespace character extracted at a time
cin >> variable
named constant
cin
globals
6. The _____ causes the contents of another file to be inserted into a program.
#include directive
fixed
endl (same as 'n')
escape sequences
7. A memory location with a name and data type - its content may be changed during program execution
non-static
0
variable
Counter-controlled or definite
8. The elements of an array are related by the fact that they have the same name and ___________.
*
syntax
type
Sentinel
9. C++ programs are normally typed into a computer using a(n) ________ program.
polymorphism
sorting
type coercion
editor
10. The escape sequence n represents the _________ character which causes the cursor to position to the beginning of the next line on the screen.
.cpp
token
showpoint
new line
11. Compares two strings and returns 0 if they are equal.
variables
prompt
base
strcmp()
12. Returns the length of a string excluding the null terminator.
strcpy()
allocating memory
identifiers
strlen()
13. Lists and tables of values can be stored in arrays or __________.
base
vectors
endl (same as 'n')
operand value
14. Names of things that are used in a program - can apply to variables & constants and functions
identifiers
initialized
static
continue
15. Syntax for named constant declaration
information hiding
strcpy()
#include directive
const datatype identifier = value
16. A file must be ________ before data can be written to or read from it.
opened
getline
integer operands
base
17. Used for dynamically allocated variables
inheritance
semicolon
two-dimensional
heap
18. Whole numbers - no decimals and no commas included
int values
information hiding
opened
like-type expression
19. tab
arithmetic expression
Preprocessor
t
comments
20. These are data items whose values do not change while the program is running
Literals
break
cin >> variable
heap
21. Symbol that denotes an action to be performed
new line
inline functions
register
operator
22. The process of placing the elements of an array in order is called ________ the array.
sorting
globals
Counter-controlled or definite
two-dimensional
23. __________ can be used to assign an object of a class to another object of the same class.
function parameters
Default memberwise assignment
variable
unary scope resolution operator (::)
24. This manipulator causes the field to be left-justified with padding spaces printed to the right.
left
strcmp()
derived class
classes
25. A function ________ enables a single function to be defined to perform a task on many different data types.
template
n
arithmetic expression
binary operator
26. Sets floating-point values to a fixed decimal format
loader
fixed
endl (same as 'n')
rand
27. Header file that contains commonly performed mathematical functions
address
cmath
operator
friend
28. The ________ statement in a called function passes the value of an expression back to the calling function.
static
return
member
ofstream
29. The process of analyzing and designing a system from an object-oriented point of view is called ________.
return
object-oriented analysis and design (OOAD)
dot (.)
#include directive
30. The new operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.
pointer
function prototype
static_cast<char>(65)
special symbols
31. Two slash marks ( // ) indicate __________ of a comment
polymorphism
beginning
const datatype identifier = value
function prototype
32. If a member initializer is not provided for a member object of a class the object's __________ is called.
beginning
polymorphism
constant variable
default constructor
33. Naming convention for C++ programs
data type
ofstream
.cpp
variable
34. A variable that holds the address of another variable.
&
escape sequences
unary operator
pointer
35. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.
Arithmetic Operators
return
semantics
inline functions
36. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.
% modulus
stack
register
Counter-controlled or definite
37. 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.
continue
Stack overflow
named constant
register
38. Message displayed to the screen asking user for input; generated with an output statement
function parameters
{ }
prompt
opened
39. This is used to mark the end of a complete C++ programming statement.
template
Semicolon
syntax
preprocessor
40. The ________ qualifier is used to declare read-only variables.
virtual functions
?
global
const
41. Operator with two operands
allocating memory
scope resolution operator
delete
binary operator
42. Associate an identifier with a memory location
allocating memory
Unified Modeling Language(UML)
virtual functions
mixed expression
43. A variable declared outside any block or function is a ________ variable.
this
reserve words
global
static_cast<char>(65)
44. The ________ of an identifier is the portion of the program in which the identifier can be used.
scope
semicolon
function prototype
named constant
45. Allows the programmer to store a value in a variable
unary scope resolution operator (::)
t
assignment statement
assignment
46. A function that can be used to read character data including whitespace
syntax
cin.get(ch)
arithmetic expression
Literals
47. directive A statement that starts with a # is called a ____________.
Preprocessor
Counter-controlled or definite
::
like-type expression
48. The size & shape & color and weight of an object are considered
default constructor
Stack overflow
strcmp()
attributes
49. Default name of executable file
a.out
pointer
register
Closing brace
50. The address-of operator. it is used to assign pointers and to print the address of variables.
default constructor
fstream
&
{ }
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