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 variable declared outside any block or function is a ________ variable.
.cpp
global
Counter-controlled or definite
rand
2. Operator with two operands
operator
linker
binary operator
private
3. A __________ should be used to declare the size of an array because it makes the program more scalable.
% modulus
selection
constant variable
static
4. The idea that you can call the same function and the output will depend on the type of object you're using.
register
.cpp
polymorphism
/n
5. C++ programs are normally typed into a computer using a(n) ________ program.
source file
editor
polymorphism
reserve words
6. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.
opened
function scope
this
function prototype
7. A memory location with a name and data type and a value - its content (value) cannot be changed during program execution
base
dot (.)
function parameters
named constant
8. Operator with only one operand
prompt
unary operator
cin.get(ch)
function overloading
9. An array that uses two subscripts is referred to as a(n) _________ array.
syntax
void pointer
two-dimensional
classes
10. data types that refer to numbers with decimals
floating-point
operator overloading
template
pointer
11. A set of values together with a set of operations
% modulus
data type
Stack overflow
named constant
12. A C++ statement that makes a decision is ______.
definition
if
public
private
13. Use 2 characters to represent one
cmath
endl (same as 'n')
escape sequences
auto
14. A variable that holds the address of another variable.
attributes
pointer
if
floating-point
15. Smallest individual unit of a programming language - special symbols or word symbols or identifiers
unary scope resolution operator (::)
token
return
dot (.)
16. For a local variable in a function to retain its value between calls to the function it must be declared with the ________ storage-class specifier.
static
getline
t
loader
17. You must have a ___________ for every variable you intend to use in a program
address
friend
semicolon
definition
18. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.
assignment statement
continue
Unified Modeling Language(UML)
friend
19. The process of placing the elements of an array in order is called ________ the array.
identifiers
object-oriented analysis and design (OOAD)
special symbols
sorting
20. The ________ qualifier is used to declare read-only variables.
object file
const
opened
friend
21. 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.
inheritance
selection
endl (same as 'n')
showpoint
22. This manipulator is used to establish a field width for the value immediately following it.
identifiers
setw
template
if
23. Associate an identifier with a memory location
0
allocating memory
two-dimensional
left
24. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.
pointer
derived class
case sensitive
void
25. Used for function calls and local variables
stack
const datatype identifier = value
definition
default constructor
26. Executable version of program
type
object file
derived class
data type
27. A function that calls itself either directly or indirectly - through another function) - is a ________ function.
fixed
editor
subscript (or index)
recursive
28. A filestream variable that represents the default output device
<<
cout
n
classes
29. 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.
recursive function
identifiers
continue
?
30. Grammar rules of the language; compiler will try to identify and locate syntax errors
syntax
strlen()
break
char
31. The three values that can be used to initialize a pointer are 0 - __________ and an address.
NULL
operator overloading
void
return
32. The process of analyzing and designing a system from an object-oriented point of view is called ________.
base class
recursive function
NULL
object-oriented analysis and design (OOAD)
33. The ________ of an identifier is the portion of the program in which the identifier can be used.
//
main
definition
scope
34. For every opening brace in a C++ program there must be a ______________.
editor
Closing brace
function call
int values
35. The_________selection statement is used to execute one action when a condition is TRue or a different action when that condition is false.
if...else
variable
case sensitive
cin.get(ch)
36. The size & shape & color and weight of an object are considered
attributes
setw
classes
operand value
37. __________ can be used to assign an object of a class to another object of the same class.
Default memberwise assignment
&
function parameters
floating-point
38. Syntax for reading char type variables by extracting one nonwhitespace character extracted at a time
function overloading
unary scope resolution operator (::)
cin >> variable
variables
39. The only integer that can be assigned directly to a pointer is_____________.
friend
switch
0
special symbols
40. The escape sequence n represents the _________ character which causes the cursor to position to the beginning of the next line on the screen.
address
auto
binary operator
new line
41. A human readable file that contains C++ program
source file
int values
strcmp()
>>
42. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.
Semicolon
assignment
Arithmetic Operators
//
43. Creates a copy of a string.
cmath
strcpy()
reserved words
setw
44. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.
editor
const datatype identifier = value
default constructor
classes
45. Two slash marks ( // ) indicate __________ of a comment
beginning
local variable
floating-point
main
46. A program that finds and attaches to your program the indicated libraries for compilation
beginning
definition
::
preprocessor
47. Whole numbers - no decimals and no commas included
named constant
//
two-dimensional
int values
48. A function ________ enables a single function to be defined to perform a task on many different data types.
Arithmetic Operators
cout
type
template
49. A member function should be declared static if it does not access __________ class members.
non-static
variable
register
object file
50. Returns the length of a string excluding the null terminator.
strlen()
#include
classes
searching
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