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. A constant object must be __________; it cannot be modified after it is created.
assignment
rand
initialized
n
2. Forces the computer to display decimal point and trailing zeroes
static
cin
main
showpoint
3. 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
4. The keyword __________ specifies that an object or variable is not modifiable after it is initialized.
inheritance
special symbols
const
?
5. 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.
searching
::
/n
setw
6. The ________ statement in a called function passes the value of an expression back to the calling function.
return
searching
loader
cout
7. An expression that has operands with different data types
subscript (or index)
mixed expression
template
function overloading
8. Default name of executable file
sorting
switch
inheritance
a.out
9. A member function should be declared static if it does not access __________ class members.
before
<<
semantics
non-static
10. The six possible scopes of an identifier are ________ - file scope - block scope - function-prototype scope - class scope - namespace scope .
member
function scope
a.out
cmath
11. The _____ causes the contents of another file to be inserted into a program.
friend
allocating memory
#include directive
attributes
12. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')
.cpp
non-static
char
register
13. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.
function prototype
strlen()
constant variable
void
14. Function _________ from the <string> library reads characters until a newline character is encountered - then copies those characters into the specified string.
vectors
base class
getline
<<
15. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.
derived class
named constant
Unified Modeling Language(UML)
searching
16. * / % + -
t
fixed
type casting (conversion)
Arithmetic Operators
17. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.
classes
local variable
static_cast<char>(65)
break
18. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.
overloading
//
case sensitive
non-static
19. The idea that you can call the same function and the output will depend on the type of object you're using.
const
polymorphism
special symbols
scope resolution operator
20. An operator that can only be used with int values. result will always be an int.
local variable
void
% modulus
return
21. The stream extraction operator
>>
void
like-type expression
base class
22. Identifier or expression that is part of the calculation to be performed
cmath
static_cast<char>(65)
operand value
variable
23. The ________ qualifier is used to declare read-only variables.
searching
syntax
const
Arithmetic Operators
24. The stream insertion operator
loader
base
semantics
<<
25. The __________ operator reclaims memory previously allocated by new.
delete
scope
polymorphism
Default memberwise assignment
26. Symbol that denotes an action to be performed
operator
>>
non-static
static_cast<char>(65)
27. tab
information hiding
operator overloading
t
void
28. 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.
break
non-static
continue
return
29. Header file that contains commonly performed mathematical functions
cmath
Preprocessor
void
ofstream
30. Used for dynamically allocated variables
member
classes
attributes
heap
31. Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise.
getline
auto
selection
Preprocessor
32. The number used to refer to a particular element of an array is called its ________.
subscript (or index)
Literals
identifiers
return
33. A __________ should be used to declare the size of an array because it makes the program more scalable.
object-oriented analysis and design (OOAD)
?
scope
constant variable
34. Function ________ is used to produce random numbers.
Default memberwise assignment
rand
>>
endl (same as 'n')
35. The source-code file and any other files that use a class can include the class's header file via an _________ preprocessor directive.
n
#include
object file
virtual functions
36. The _________ begins the body of every function and the _________ ends the body of every function.
setw
{ }
like-type expression
base
37. A pointer is a variable that contains as its value the____________ of another variable.
address
<<
assignment statement
constant variable
38. You can declare default values for a function in the ____________________.
//
vectors
function parameters
allocating memory
39. Syntax for reading char type variables by extracting one nonwhitespace character extracted at a time
#include
variables
cin >> variable
globals
40. A function that can be used to read character data including whitespace
cin.get(ch)
derived class
a.out
dot (.)
41. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.
vectors
#include <headerfilename>
strlen()
Stack overflow
42. 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.
token
overloading
inheritance
a.out
43. The elements of an array are related by the fact that they have the same name and ___________.
type
left
cmath
if...else
44. Program components in C++ are called functions and ________.
linker
classes
two-dimensional
case sensitive
45. A memory location with a name and data type - its content may be changed during program execution
n
variable
default constructor
auto
46. Syntax for named constant declaration
const datatype identifier = value
showpoint
strlen()
syntax
47. newline
Stack overflow
n
Closing brace
continue
48. 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.
Sentinel
*
&
initialized
49. = & | are examples of ____________.
return
preprocessor
strcpy()
special symbols
50. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.
globals
cin
access specifier
if
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