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. Function ________ is used to set the random number seed to randomize a program.
srand
//
cin.get(ch)
source file
2. A program that finds and attaches to your program the indicated libraries for compilation
cmath
preprocessor
n
friend
3. The process of determining if an array contains a particular key value is called _________ the array.
special symbols
derived class
% modulus
searching
4. 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.
like-type expression
unary scope resolution operator (::)
/n
syntax
5. The _________ begins the body of every function and the _________ ends the body of every function.
this
preprocessor
{ }
fstream
6. Class members specified as _________ are accessible anywhere an object of the class is in scope.
switch
mixed expression
public
preprocessor
7. A pointer is a variable that contains as its value the____________ of another variable.
assignment statement
#include <headerfilename>
loader
address
8. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.
object file
t
% modulus
selection
9. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.
Arithmetic Operators
globals
identifiers
cin
10. A type of pointer that can point at objects of any data type.
before
non-static
void pointer
#include
11. Header file that contains commonly performed mathematical functions
function scope
like-type expression
Closing brace
cmath
12. Allows the programmer to store a value in a variable
recursive function
associations
scope
assignment statement
13. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.
editor
allocating memory
Stack overflow
sorting
14. If a member initializer is not provided for a member object of a class the object's __________ is called.
sorting
default constructor
#include <headerfilename>
variable
15. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.
register
identifiers
information hiding
local variable
16. Words that are used for special purposes in a program
type coercion
reserved words
fixed
NULL
17. 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
function parameters
register
inline functions
18. A C++ statement that makes a decision is ______.
default constructor
vectors
Default memberwise assignment
if
19. = & | are examples of ____________.
special symbols
register
const
void
20. Symbol that denotes an action to be performed
ofstream
operator
editor
{ }
21. The elements of an array are related by the fact that they have the same name and ___________.
pointer
scope
type
0
22. A ________ program executes before the compiler's translation phase begins.
preprocessor
syntax
rand
endl (same as 'n')
23. A function that can be used to read character data including whitespace
editor
data type
non-static
cin.get(ch)
24. Compares two strings and returns 0 if they are equal.
friend
type coercion
delete
strcmp()
25. C++ programs are normally typed into a computer using a(n) ________ program.
new line
assignment
editor
arithmetic expression
26. Operator with two operands
stack
virtual functions
case sensitive
binary operator
27. Smallest individual unit of a programming language - special symbols or word symbols or identifiers
token
floating-point
/n
main
28. The conditional operator. it evaluates a line of code and returns one thing if the condition is true and a different thing if the condition is false.
auto
Closing brace
function call
?
29. newline
binary operator
this
case sensitive
n
30. The sign you use for pointers
definition
*
Preprocessor
escape sequences
31. In inheritance the ____________ is the class that supplies the inherited members.
function parameters
if
base class
public
32. int namespace include using return examples of ___________
Arithmetic Operators
public
reserve words
recursive
33. 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
34. 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.
function prototype
inheritance
getline
searching
35. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.
unary operator
function overloading
friend
cin >> variable
36. Associate an identifier with a memory location
Counter-controlled or definite
Literals
allocating memory
sorting
37. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.
friend
virtual functions
showpoint
const
38. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.
whitespace
% modulus
break
linker
39. Preprocessor directive syntax
function call
#include <headerfilename>
object-oriented analysis and design (OOAD)
int values
40. A recursive function typically has two components: One that provides a means for the recursion to terminate by testing for a(n) ________ case and one that expresses the problem as a recursive call for a slightly simpler problem than the original call
const datatype identifier = value
access specifier
base
definition
41. directive A statement that starts with a # is called a ____________.
Preprocessor
unary operator
data type
cin.get(ch)
42. The ________ program combines the output of the compiler with various library functions to produce an executable image.
associations
assignment
preprocessor
linker
43. The only integer that can be assigned directly to a pointer is_____________.
setw
0
cout
friend
44. All ______ must be declared before they are used.
variables
const datatype identifier = value
information hiding
if...else
45. The three values that can be used to initialize a pointer are 0 - __________ and an address.
NULL
semantics
endl (same as 'n')
Default memberwise assignment
46. * / % + -
scope
local variable
Arithmetic Operators
function prototype
47. All C++ Variables are_________.
n
Sentinel
/n
case sensitive
48. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.
preprocessor
//
Counter-controlled or definite
n
49. Program components in C++ are called functions and ________.
heap
operand value
Semicolon
classes
50. Identifier or expression that is part of the calculation to be performed
operand value
searching
variable
object-oriented analysis and design (OOAD)
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