Exam 7: Arrays
Exam 1: Introduction to Computing and Programming75 Questions
Exam 2: Data Types and Expressions75 Questions
Exam 3: Methods and Behaviors75 Questions
Exam 4: Creating Your Own Classes75 Questions
Exam 5: Making Decisions75 Questions
Exam 6: Repeating Instructions75 Questions
Exam 7: Arrays75 Questions
Exam 8: Advanced Collections74 Questions
Exam 9: Introduction to Windows Programming75 Questions
Exam 10: Programming Based on Events75 Questions
Exam 11: Advanced Object-Oriented Programming Features75 Questions
Exam 12: Debugging and Handling Exceptions75 Questions
Exam 13: Working With Files75 Questions
Exam 14: Working With Databases75 Questions
Exam 15: Web-Based Applications73 Questions
Select questions type
When an array is sent to a method as an argument, if the method changes one or more of the elements, the changes are made to the actual data.
(True/False)
4.8/5
(91)
If you try to access the array using a negative index value, ____.
(Multiple Choice)
4.8/5
(84)
If an array named num is dimensioned to hold 10 values, what happens if you write num[100] = 50;?
(Multiple Choice)
4.8/5
(72)
____ creates a copy of the array and returns it as an object?
(Multiple Choice)
4.7/5
(65)
The ____________ loop structure can be used to iterate through an array. However, it can be used for read-only access to the elements.
(Short Answer)
4.8/5
(85)
One of the special properties in the Array class is ____________. It returns an int representing the total number of elements in an array.
(Short Answer)
4.7/5
(80)
Arrays can be used as fields or instance variables in classes; and, arrays of objects can be declared.
(True/False)
4.8/5
(71)
To declare and instantiate memory for 4 exam scores that range in value from 0 to 100, the following declaration could be made ____.
(Multiple Choice)
4.8/5
(86)
When two or more arrays have a relationship such that you are able to use the same subscript or index to refer to related elements in the arrays, you have ____ arrays.
(Multiple Choice)
4.8/5
(65)
What happens when you assign one array to another using the assignment operator?
(Multiple Choice)
4.9/5
(83)
Properties are added to a class to enable client applications to access public members.
(True/False)
4.9/5
(80)
You can instantiate arrays of user-defined array objects and send in arrays as arguments to methods, but you cannot return arrays from methods.
(True/False)
4.9/5
(95)
The length or size of the array is specified using a(n) ____________ value in the form of a constant literal, a variable, or an expression that produces an integer value.
(Short Answer)
4.9/5
(75)
If an array named num is dimensioned to hold 10 values, how would you store 50 in the 5th physical location?
(Multiple Choice)
4.9/5
(65)
Showing 61 - 75 of 75
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)