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. Executable version of program
stack
Literals
ofstream
object file
2. Function ________ is used to set the random number seed to randomize a program.
#include directive
srand
showpoint
getline
3. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.
global
void
preprocessor
scope
4. A type of pointer that can point at objects of any data type.
global
void pointer
member
preprocessor
5. The ________ program combines the output of the compiler with various library functions to produce an executable image.
linker
semicolon
access specifier
#include <headerfilename>
6. A________ allows the compiler to check the number & types and order of the arguments passed to a function.
scope
binary operator
associations
function prototype
7. Compares two strings and returns 0 if they are equal.
function call
address
left
strcmp()
8. A function that calls itself either directly or indirectly - through another function) - is a ________ function.
overloading
{ }
recursive
type casting (conversion)
9. A __________ should be used to declare the size of an array because it makes the program more scalable.
>>
constant variable
const
pointer
10. Class members specified as _________ are accessible anywhere an object of the class is in scope.
public
getline
derived class
friend
11. Symbol that denotes an action to be performed
template
operator
const datatype identifier = value
main
12. When you create a ___________________in the base class and then call it using an object the function will know to look in the inherited class for the specifics of that function.
reserve words
::
editor
virtual functions
13. A file must be ________ before data can be written to or read from it.
subscript (or index)
Closing brace
void
opened
14. The ________ of an identifier is the portion of the program in which the identifier can be used.
function scope
scope resolution operator
scope
stack
15. Can be used as a compound "if" statement. it includes a number of different possibilities and directions rather than a single test.
continue
Preprocessor
syntax
switch
16. Lists and tables of values can be stored in arrays or __________.
vectors
function scope
mixed expression
cin.get(ch)
17. Allows the programmer to store a value in a variable
static
assignment statement
*
left
18. An expression in which all operands have the same data type - result will have the same data type as operands
register
member
preprocessor
like-type expression
19. 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.
function call
continue
subscript (or index)
constant variable
20. The address-of operator. it is used to assign pointers and to print the address of variables.
&
cin >> variable
cmath
char
21. Header file that contains commonly performed mathematical functions
cmath
classes
function prototype
object-oriented analysis and design (OOAD)
22. 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.
//
assignment statement
like-type expression
static
23. Every C++ statement ends with a(n) _________.
semicolon
linker
member
initialized
24. An expression that has operands with different data types
like-type expression
mixed expression
allocating memory
getline
25. Nonexecutable statements that are included in a program to provide information about what the program does etc.
comments
global
{ }
scope
26. Characters used to separate symbols or reserved words or identifiers and statements
scope resolution operator
before
whitespace
fstream
27. tab
object file
like-type expression
recursive
t
28. The sign you use for references
#include
&
{ }
0
29. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.
#include <headerfilename>
private
break
recursive function
30. The stream extraction operator
*
virtual functions
access specifier
>>
31. A memory location with a name and data type - its content may be changed during program execution
token
unary operator
variable
derived class
32. data types that refer to numbers with decimals
floating-point
loader
main
Stack overflow
33. Member objects are constructed __________ their enclosing class object.
pointer
left
/n
before
34. __________ can be used to assign an object of a class to another object of the same class.
access specifier
n
template
Default memberwise assignment
35. The number used to refer to a particular element of an array is called its ________.
Sentinel
&
static
subscript (or index)
36. Syntax for reading char type variables by extracting one nonwhitespace character extracted at a time
global
associations
definition
cin >> variable
37. The process of analyzing and designing a system from an object-oriented point of view is called ________.
type
non-static
object-oriented analysis and design (OOAD)
{ }
38. The size & shape & color and weight of an object are considered
strlen()
opened
attributes
/n
39. Smallest individual unit of a programming language - special symbols or word symbols or identifiers
Closing brace
token
n
&
40. Every C++ program begins execution at the function _________.
assignment statement
allocating memory
main
void pointer
41. 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
42. The three ways to return control from a called function to a caller are ________ - return expression and encounter.
return
void
constant variable
special symbols
43. A variable declared outside any block or function is a ________ variable.
endl (same as 'n')
global
void pointer
const
44. A function that can be used to read character data including whitespace
static_cast<char>(65)
cin.get(ch)
object file
before
45. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.
Counter-controlled or definite
function overloading
pointer
unary scope resolution operator (::)
46. The modulus operator (%) can be used only with __________.
Stack overflow
integer operands
attributes
template
47. This manipulator causes the field to be left-justified with padding spaces printed to the right.
left
reserved words
fixed
&
48. A variable that is known only within the function in which it is defined is called a ________.
dot (.)
scope
main
local variable
49. The symbol for the binary scope resolution operator
auto
::
identifiers
srand
50. A member function should be declared static if it does not access __________ class members.
non-static
&
pointer
syntax