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. Most calculations are normally performed by ______ statements.
cin >> variable
0
?
assignment
2. Compares two strings and returns 0 if they are equal.
strlen()
fixed
strcmp()
a.out
3. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.
::
selection
char
searching
4. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.
//
opened
member
global
5. The address-of operator. it is used to assign pointers and to print the address of variables.
*
&
whitespace
cin
6. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.
classes
public
break
auto
7. If a member initializer is not provided for a member object of a class the object's __________ is called.
base
variables
derived class
default constructor
8. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.
//
reserved words
void
main
9. Use 2 characters to represent one
void
function scope
type casting (conversion)
escape sequences
10. The process of placing the elements of an array in order is called ________ the array.
default constructor
friend
sorting
srand
11. A function that can be used to read character data including whitespace
#include directive
loader
scope resolution operator
cin.get(ch)
12. int namespace include using return examples of ___________
variables
srand
reserve words
base class
13. Naming convention for C++ programs
register
comments
Sentinel
.cpp
14. 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.
.cpp
?
void pointer
srand
15. The keyword __________ specifies that an object or variable is not modifiable after it is initialized.
strcpy()
reserve words
const
searching
16. An expression in which all operands have the same data type - result will have the same data type as operands
scope resolution operator
like-type expression
recursive
selection
17. A human readable file that contains C++ program
getline
reserve words
associations
source file
18. Default name of executable file
continue
a.out
break
switch
19. = & | are examples of ____________.
special symbols
.cpp
dot (.)
assignment statement
20. The three ways to return control from a called function to a caller are ________ - return expression and encounter.
Counter-controlled or definite
return
static_cast<char>(65)
object-oriented analysis and design (OOAD)
21. A memory location with a name and data type - its content may be changed during program execution
operand value
integer operands
semicolon
variable
22. A filestream variable that represents the default output device
inline functions
cout
escape sequences
left
23. It is possible to have various functions with the same name that operate on different types or numbers of arguments. This is called function ________.
subscript (or index)
overloading
cin >> variable
preprocessor
24. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.
address
Counter-controlled or definite
Stack overflow
% modulus
25. Associate an identifier with a memory location
int values
semicolon
void pointer
allocating memory
26. The new operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.
identifiers
pointer
Closing brace
Preprocessor
27. Preprocessor directive syntax
#include <headerfilename>
sorting
variable
const datatype identifier = value
28. Class members specified as _________ are accessible anywhere an object of the class is in scope.
srand
continue
public
integer operands
29. C++ programs are normally typed into a computer using a(n) ________ program.
editor
case sensitive
Closing brace
semantics
30. The process of determining if an array contains a particular key value is called _________ the array.
before
token
type coercion
searching
31. 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
32. A memory location with a name and data type and a value - its content (value) cannot be changed during program execution
named constant
assignment statement
*
{ }
33. The number used to refer to a particular element of an array is called its ________.
source file
subscript (or index)
?
t
34. A filestream variable that represents the default input source
const
register
cin
initialized
35. 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.
public
like-type expression
Stack overflow
Sentinel
36. Sets floating-point values to a fixed decimal format
static
fixed
object-oriented analysis and design (OOAD)
prompt
37. The _________ begins the body of every function and the _________ ends the body of every function.
{ }
arithmetic expression
globals
assignment
38. The process of analyzing and designing a system from an object-oriented point of view is called ________.
<<
object-oriented analysis and design (OOAD)
address
variable
39. In inheritance the ____________ is the class the receives the inherited members.
cmath
stack
Preprocessor
derived class
40. A constant object must be __________; it cannot be modified after it is created.
<<
initialized
address
private
41. Function _________ from the <string> library reads characters until a newline character is encountered - then copies those characters into the specified string.
getline
semantics
this
special symbols
42. newline
integer operands
n
beginning
0
43. Can be used as a compound "if" statement. it includes a number of different possibilities and directions rather than a single test.
switch
preprocessor
/n
inline functions
44. This manipulator is used to establish a field width for the value immediately following it.
setw
before
fstream
template
45. The sign you use for pointers
associations
*
integer operands
vectors
46. directive A statement that starts with a # is called a ____________.
#include directive
prompt
subscript (or index)
Preprocessor
47. Program components in C++ are called functions and ________.
switch
//
function call
classes
48. A type of pointer that can point at objects of any data type.
void pointer
cmath
semantics
#include directive
49. Class members specified as _________ are accessible only to member functions of the class and friends of the class.
mixed expression
private
type
prompt
50. A __________ should be used to declare the size of an array because it makes the program more scalable.
constant variable
#include
data type
integer operands
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