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. Associate an identifier with a memory location
return
getline
allocating memory
cin
2. Whole numbers - no decimals and no commas included
scope resolution operator
assignment
int values
Preprocessor
3. These are data items whose values do not change while the program is running
Literals
return
Default memberwise assignment
allocating memory
4. The address-of operator. it is used to assign pointers and to print the address of variables.
&
dot (.)
binary operator
continue
5. Forces the computer to display decimal point and trailing zeroes
cin >> variable
identifiers
local variable
showpoint
6. __________ can be used to assign an object of a class to another object of the same class.
rand
derived class
switch
Default memberwise assignment
7. The source-code file and any other files that use a class can include the class's header file via an _________ preprocessor directive.
#include
data type
cmath
classes
8. A function is invoked with a ________.
globals
pointer
whitespace
function call
9. 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
0
Sentinel
assignment
10. A constant object must be __________; it cannot be modified after it is created.
Literals
overloading
initialized
n
11. Syntax for reading char type variables by extracting one nonwhitespace character extracted at a time
type coercion
getline
cin >> variable
auto
12. The three values that can be used to initialize a pointer are 0 - __________ and an address.
function overloading
NULL
classes
inline functions
13. Returns the length of a string excluding the null terminator.
strlen()
?
#include <headerfilename>
*
14. A type of pointer that can point at objects of any data type.
function prototype
void pointer
operand value
local variable
15. Program components in C++ are called functions and ________.
access specifier
polymorphism
classes
variables
16. The __________ operator reclaims memory previously allocated by new.
delete
Preprocessor
new line
void
17. = & | are examples of ____________.
cout
Counter-controlled or definite
special symbols
associations
18. C++ programs are normally typed into a computer using a(n) ________ program.
whitespace
comments
unary operator
editor
19. The sign you use for references
semantics
static
function call
&
20. 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.
const
inheritance
special symbols
attributes
21. Use 2 characters to represent one
escape sequences
showpoint
stack
break
22. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.
derived class
strlen()
register
loader
23. A________ allows the compiler to check the number & types and order of the arguments passed to a function.
function prototype
default constructor
object-oriented analysis and design (OOAD)
scope resolution operator
24. An operator that can only be used with int values. result will always be an int.
arithmetic expression
% modulus
operator overloading
#include <headerfilename>
25. A set of values together with a set of operations
cin >> variable
special symbols
data type
subscript (or index)
26. Initializers __________ must be used to initialize constant members of a class.
?
floating-point
member
overloading
27. tab
break
t
whitespace
if
28. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.
function overloading
syntax
register
//
29. A member function should be declared static if it does not access __________ class members.
&
char
const
non-static
30. 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
function parameters
% modulus
overloading
31. A memory location with a name and data type and a value - its content (value) cannot be changed during program execution
base class
named constant
new line
function parameters
32. Grammar rules of the language; compiler will try to identify and locate syntax errors
.cpp
syntax
function scope
local variable
33. Meaning of the instructions in the language; compiler cannot find these errors - often called logic errors
semantics
function prototype
reserve words
named constant
34. The idea that you can call the same function and the output will depend on the type of object you're using.
polymorphism
virtual functions
Stack overflow
function scope
35. All C++ Variables are_________.
static
strlen()
case sensitive
recursive function
36. In inheritance the ____________ is the class that supplies the inherited members.
globals
srand
base class
void
37. The modulus operator (%) can be used only with __________.
Unified Modeling Language(UML)
token
source file
integer operands
38. The ________ program transfers the executable image of a C++ program from disk to memory.
virtual functions
loader
return
srand
39. Allows the programmer to store a value in a variable
assignment statement
type
global
escape sequences
40. This manipulator causes the field to be left-justified with padding spaces printed to the right.
a.out
left
type coercion
recursive function
41. int namespace include using return examples of ___________
new line
reserve words
left
ofstream
42. Used for function calls and local variables
void pointer
stack
srand
Counter-controlled or definite
43. Most calculations are normally performed by ______ statements.
function parameters
assignment
reserve words
token
44. The keyword ________ is used in a function header to indicate that a function does not return a value or to indicate that a function contains no parameters.
void
const
syntax
strlen()
45. All ______ must be declared before they are used.
variables
const
operand value
reserve words
46. Executable version of program
prompt
object file
arithmetic expression
function scope
47. Can be used as a compound "if" statement. it includes a number of different possibilities and directions rather than a single test.
% modulus
function overloading
semantics
switch
48. The symbol for the binary scope resolution operator
::
switch
% modulus
case sensitive
49. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.
loader
selection
base class
Literals
50. 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
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