15 MCQ (TCO 7) Arguments and parameters must match in

1 . (TCO 7) Arguments and parameters must match in _____. (Points : 4)

data type
numbers of parameters
the order of parameters
All of the above
2. (TCO 8) Which function prototype indicates that the parameter is passed by reference? (Points : 4)

int myFunction( double &)
int myFunction(double)
int myFunction(double *)
int myFunction(&)
3. (TCO 8) The process of passing a variable’s value to a function is called _____. (Points : 4)

passing by reference
passing by value
localization
globalization
4. (TCO 9) What type of menu first displays the main menu and then, based on the user’s selection, displays a submenu? (Points : 4)

Single-level menu
Multiple-level menu
Step-level menu
Sublevel menu
5. (TCO 9) What is not part of the menu valued selections process? (Points : 4)

Input validation loop
Including the default clause in the case structure
State
Use of an else clause
6. (TCO 9) A(n) _____ represents an entity in the real world that can be distinctly identified. (Points : 4)

class
function
object
method
7. (TCO 10) Bug errors are _____ errors. (Points : 4)

logic
syntax
binary
asp.net
8. (TCO 11) What is the value of the subscript for the first element of an array? (Points : 4)

Undefined
1
0
Determined by the declaration of the array

9. (TCO 11) Which of the following techniques can be used to process the elements of a single-dimensional array? (Points : 4)

Selection structure
Looping structure
Sequence structure
None of the above
10. (TCO 11) A three-row, four-column array has a total of how many elements? (Points : 4)

Seven
12
16
One

11. (TCO 12) Given the following array:

int profit [5] = {10, 20, 31, 55, 66};

The following statement would replace which value?
profit [4] = profit[1] + 3; (Points : 4)

55 with 13
66 with 13
66 with 23
55 with 23
12. (TCO 12) In the variable initialization: char course [20] = Devry University, the character at course [2] will be _____. (Points : 4)

D
e
v
r
a space
13. (TCO 13) Files to which data is written are known as _____. (Points : 4)

output files
input files
active files
sequential files
14. (TCO 13) Sometimes, a project will need to save data inputted by the user so it can be used again. This data stored will later be accessed from a _____. (Points : 4)

program file
project file
data file
user file
15. (TCO 13) When reading data from a sequential file, the data will be read _____. (Points : 4)

in alphabetical order
sorted from smallest to largest
in key field order
in the order in which it was written

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

×
New Download