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. An array that uses two subscripts is referred to as a(n) _________ array.
% modulus
getline
two-dimensional
virtual functions
2. A filestream variable that represents the default input source
cin
selection
arithmetic expression
Stack overflow
3. A set of values together with a set of operations
*
data type
const
mixed expression
4. The three ways to return control from a called function to a caller are ________ - return expression and encounter.
overloading
return
fstream
switch
5. All C++ Variables are_________.
const
selection
cout
case sensitive
6. Executable version of program
void
object file
Arithmetic Operators
static_cast<char>(65)
7. A human readable file that contains C++ program
Sentinel
definition
source file
data type
8. To allow file access in a program you must #include this header file.
fstream
scope resolution operator
comments
private
9. Lists and tables of values can be stored in arrays or __________.
new line
prompt
vectors
associations
10. Function ________ is used to set the random number seed to randomize a program.
srand
assignment statement
source file
>>
11. Function ________ is used to produce random numbers.
special symbols
rand
loader
Arithmetic Operators
12. A program that finds and attaches to your program the indicated libraries for compilation
object-oriented analysis and design (OOAD)
linker
preprocessor
type
13. = & | are examples of ____________.
syntax
cin >> variable
recursive
special symbols
14. Grammar rules of the language; compiler will try to identify and locate syntax errors
syntax
attributes
operand value
>>
15. Keyword public is a(n) _________
global
Unified Modeling Language(UML)
/n
access specifier
16. This is used to mark the end of a complete C++ programming statement.
char
return
Semicolon
classes
17. The elements of an array are related by the fact that they have the same name and ___________.
operator overloading
type
template
syntax
18. 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
19. The process of analyzing and designing a system from an object-oriented point of view is called ________.
reserve words
base class
Semicolon
object-oriented analysis and design (OOAD)
20. You must have a ___________ for every variable you intend to use in a program
Closing brace
definition
pointer
const
21. 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
base
auto
char
/n
22. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________
main
operator overloading
int values
t
23. __________ can be used to assign an object of a class to another object of the same class.
pointer
friend
Default memberwise assignment
whitespace
24. Compares two strings and returns 0 if they are equal.
strcmp()
base class
char
operator
25. All ______ must be declared before they are used.
variables
classes
local variable
base
26. The storage-class specifiers are mutable - auto - ________ - extern and static.
fixed
linker
t
register
27. Forces the computer to display decimal point and trailing zeroes
recursive
associations
allocating memory
showpoint
28. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.
srand
selection
Stack overflow
mixed expression
29. int namespace include using return examples of ___________
identifiers
reserve words
recursive function
delete
30. Sets floating-point values to a fixed decimal format
access specifier
fixed
opened
classes
31. 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.
information hiding
setw
continue
whitespace
32. Can be used as a compound "if" statement. it includes a number of different possibilities and directions rather than a single test.
*
switch
like-type expression
a.out
33. If a member initializer is not provided for a member object of a class the object's __________ is called.
default constructor
endl (same as 'n')
function scope
beginning
34. Nonexecutable statements that are included in a program to provide information about what the program does etc.
0
dot (.)
private
comments
35. Syntax for named constant declaration
endl (same as 'n')
::
const datatype identifier = value
*
36. An expression that has operands with different data types
strcpy()
mixed expression
subscript (or index)
<<
37. Classes can have relationships with other classes. These relationships are called ________.
token
opened
Sentinel
associations
38. Member objects are constructed __________ their enclosing class object.
type casting (conversion)
#include <headerfilename>
before
globals
39. A memory location with a name and data type - its content may be changed during program execution
variable
char
mixed expression
function prototype
40. Function _________ from the <string> library reads characters until a newline character is encountered - then copies those characters into the specified string.
special symbols
token
getline
cin
41. 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.
case sensitive
local variable
strcpy()
/n
42. Syntax for reading char type variables by extracting one nonwhitespace character extracted at a time
like-type expression
object file
<<
cin >> variable
43. Type casting syntax
NULL
break
static_cast<char>(65)
void pointer
44. The ________ qualifier is used to declare read-only variables.
whitespace
arithmetic expression
const
variables
45. Used for dynamically allocated variables
pointer
preprocessor
continue
heap
46. These are data items whose values do not change while the program is running
Literals
dot (.)
subscript (or index)
if...else
47. data types that refer to numbers with decimals
void
floating-point
operand value
>>
48. Characters used to separate symbols or reserved words or identifiers and statements
this
whitespace
sorting
::
49. Returns the length of a string excluding the null terminator.
virtual functions
two-dimensional
loader
strlen()
50. Most calculations are normally performed by ______ statements.
NULL
assignment
/n
#include