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. An operator that can only be used with int values. result will always be an int.
% modulus
operator
selection
global
2. The modulus operator (%) can be used only with __________.
getline
integer operands
default constructor
arithmetic expression
3. Used for dynamically allocated variables
cmath
.cpp
this
heap
4. A set of values together with a set of operations
Sentinel
virtual functions
data type
fstream
5. Function ________ is used to set the random number seed to randomize a program.
variables
function overloading
srand
n
6. The process of placing the elements of an array in order is called ________ the array.
0
unary scope resolution operator (::)
function scope
sorting
7. Used to qualify hidden names so that they can be used.
named constant
return
scope resolution operator
Stack overflow
8. A variable that is known only within the function in which it is defined is called a ________.
heap
local variable
sorting
escape sequences
9. The keyword __________ specifies that an object or variable is not modifiable after it is initialized.
default constructor
static
recursive
const
10. This is used to mark the end of a complete C++ programming statement.
cin.get(ch)
reserve words
Semicolon
main
11. A human readable file that contains C++ program
arithmetic expression
source file
before
default constructor
12. The sign you use for references
strlen()
&
identifiers
object file
13. When it is not known in advance how many times a set of statements will be repeated a _________value can be used to terminate the repetition.
beginning
polymorphism
linker
Sentinel
14. A C++ statement that makes a decision is ______.
function call
static
if
polymorphism
15. int namespace include using return examples of ___________
attributes
overloading
reserve words
char
16. The three values that can be used to initialize a pointer are 0 - __________ and an address.
named constant
NULL
scope resolution operator
auto
17. Member objects are constructed __________ their enclosing class object.
base class
this
escape sequences
before
18. A memory location with a name and data type - its content may be changed during program execution
dot (.)
variable
function prototype
syntax
19. An array that uses two subscripts is referred to as a(n) _________ array.
two-dimensional
Preprocessor
auto
void
20. The address-of operator. it is used to assign pointers and to print the address of variables.
&
continue
cmath
delete
21. Every C++ statement ends with a(n) _________.
member
semicolon
data type
Unified Modeling Language(UML)
22. Class members specified as _________ are accessible only to member functions of the class and friends of the class.
linker
private
register
identifiers
23. directive A statement that starts with a # is called a ____________.
Preprocessor
opened
void
fstream
24. Use 2 characters to represent one
NULL
Semicolon
setw
escape sequences
25. The ________ program combines the output of the compiler with various library functions to produce an executable image.
<<
linker
strcpy()
address
26. A sequence of operands and operators that describe a calculation to be performed
vectors
arithmetic expression
object-oriented analysis and design (OOAD)
classes
27. 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.
cmath
continue
int values
Arithmetic Operators
28. Compares two strings and returns 0 if they are equal.
ofstream
0
strcmp()
preprocessor
29. Creates a copy of a string.
void
showpoint
strcpy()
Preprocessor
30. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.
globals
static_cast<char>(65)
{ }
&
31. The stream insertion operator
<<
type
delete
address
32. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.
member
mixed expression
left
break
33. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.
Stack overflow
n
preprocessor
switch
34. The ________ of an identifier is the portion of the program in which the identifier can be used.
?
scope
vectors
t
35. A________ allows the compiler to check the number & types and order of the arguments passed to a function.
function prototype
integer operands
stack
data type
36. Header file that contains commonly performed mathematical functions
special symbols
<<
.cpp
cmath
37. The process of analyzing and designing a system from an object-oriented point of view is called ________.
sorting
cmath
definition
object-oriented analysis and design (OOAD)
38. Words that are used for special purposes in a program
inheritance
reserved words
local variable
strcpy()
39. A function that can be used to read character data including whitespace
getline
opened
semantics
cin.get(ch)
40. newline
virtual functions
operator overloading
source file
n
41. The process of determining if an array contains a particular key value is called _________ the array.
static
special symbols
searching
&
42. A variable that holds the address of another variable.
pointer
template
showpoint
this
43. Function _________ from the <string> library reads characters until a newline character is encountered - then copies those characters into the specified string.
type coercion
member
getline
cin
44. The symbol for the binary scope resolution operator
showpoint
allocating memory
register
::
45. Grammar rules of the language; compiler will try to identify and locate syntax errors
syntax
0
cin
const datatype identifier = value
46. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.
return
/n
&
register
47. Allows the programmer to store a value in a variable
assignment statement
Sentinel
getline
object file
48. Identifier or expression that is part of the calculation to be performed
unary operator
*
operand value
loader
49. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.
pointer
globals
if
void
50. 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
ofstream
virtual functions
const datatype identifier = value
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