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. The idea that you can call the same function and the output will depend on the type of object you're using.
polymorphism
default constructor
{ }
break
2. Compares two strings and returns 0 if they are equal.
information hiding
base
if
strcmp()
3. Function ________ is used to produce random numbers.
like-type expression
beginning
delete
rand
4. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.
strcpy()
#include directive
integer operands
Unified Modeling Language(UML)
5. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.
function overloading
object file
base
case sensitive
6. 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.
information hiding
/n
prompt
type
7. 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
address
Stack overflow
overloading
8. The ________ enables access to a global variable with the same name as a variable in the current scope.
t
unary scope resolution operator (::)
0
two-dimensional
9. The six possible scopes of an identifier are ________ - file scope - block scope - function-prototype scope - class scope - namespace scope .
private
return
sorting
function scope
10. This manipulator causes the field to be left-justified with padding spaces printed to the right.
Literals
fixed
left
attributes
11. The three values that can be used to initialize a pointer are 0 - __________ and an address.
NULL
selection
cmath
loader
12. Meaning of the instructions in the language; compiler cannot find these errors - often called logic errors
ofstream
#include directive
semantics
private
13. Nonexecutable statements that are included in a program to provide information about what the program does etc.
continue
global
comments
two-dimensional
14. newline
recursive function
n
prompt
vectors
15. The stream insertion operator
void
operator overloading
<<
.cpp
16. A file must be ________ before data can be written to or read from it.
selection
opened
friend
left
17. int namespace include using return examples of ___________
reserve words
function prototype
floating-point
overloading
18. A________ allows the compiler to check the number & types and order of the arguments passed to a function.
function call
function prototype
::
if...else
19. Grammar rules of the language; compiler will try to identify and locate syntax errors
syntax
globals
stack
::
20. The elements of an array are related by the fact that they have the same name and ___________.
Counter-controlled or definite
.cpp
<<
type
21. Associate an identifier with a memory location
Sentinel
allocating memory
&
cout
22. Syntax for named constant declaration
const datatype identifier = value
inline functions
editor
function scope
23. Type casting syntax
void
static_cast<char>(65)
access specifier
variables
24. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.
#include directive
register
return
scope resolution operator
25. The three ways to return control from a called function to a caller are ________ - return expression and encounter.
return
semicolon
polymorphism
opened
26. The process of placing the elements of an array in order is called ________ the array.
object-oriented analysis and design (OOAD)
sorting
beginning
syntax
27. A program that finds and attaches to your program the indicated libraries for compilation
subscript (or index)
preprocessor
strlen()
cmath
28. Used for dynamically allocated variables
static
heap
endl (same as 'n')
scope
29. Classes can have relationships with other classes. These relationships are called ________.
escape sequences
associations
Stack overflow
assignment
30. A memory location with a name and data type - its content may be changed during program execution
variable
allocating memory
n
public
31. Words that are used for special purposes in a program
if...else
private
classes
reserved words
32. An expression in which all operands have the same data type - result will have the same data type as operands
source file
like-type expression
preprocessor
polymorphism
33. A function ________ enables a single function to be defined to perform a task on many different data types.
public
template
preprocessor
rand
34. The ________ of an identifier is the portion of the program in which the identifier can be used.
scope
opened
definition
static_cast<char>(65)
35. A function that can be used to read character data including whitespace
type
cin.get(ch)
if...else
template
36. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')
data type
char
public
derived class
37. A sequence of operands and operators that describe a calculation to be performed
base class
arithmetic expression
base
token
38. Returns the length of a string excluding the null terminator.
.cpp
template
dot (.)
strlen()
39. A variable that holds the address of another variable.
register
recursive
pointer
Preprocessor
40. You must have a ___________ for every variable you intend to use in a program
global
stack
type coercion
definition
41. A type of pointer that can point at objects of any data type.
overloading
void pointer
a.out
whitespace
42. Initializers __________ must be used to initialize constant members of a class.
#include <headerfilename>
member
public
case sensitive
43. directive A statement that starts with a # is called a ____________.
cmath
named constant
Preprocessor
semantics
44. Used for function calls and local variables
object-oriented analysis and design (OOAD)
stack
whitespace
named constant
45. An expression that has operands with different data types
named constant
before
type coercion
mixed expression
46. Used to qualify hidden names so that they can be used.
recursive function
semicolon
scope resolution operator
mixed expression
47. In inheritance the ____________ is the class that supplies the inherited members.
showpoint
base class
recursive
type
48. All ______ must be declared before they are used.
int values
local variable
variables
::
49. To allow file access in a program you must #include this header file.
function parameters
operator overloading
fstream
cin >> variable
50. Most calculations are normally performed by ______ statements.
assignment
two-dimensional
selection
floating-point
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