Exam 9: Arrays
Exam 1: An Overview of Computers and Programming Languages50 Questions
Exam 2: Basic Elements of Java50 Questions
Exam 3: Introduction to Objects and Input/output50 Questions
Exam 4: Control Structures I: Selection50 Questions
Exam 5: Control Structures II: Repetition50 Questions
Exam 6: Graphical User Interface GUI and Object-Oriented Design OOD50 Questions
Exam 7: User-Defined Methods50 Questions
Exam 8: User-Defined Classes50 Questions
Exam 9: Arrays46 Questions
Exam 10: Inheritance and Polymorphism50 Questions
Exam 11: Handling Exceptions and Events50 Questions
Exam 12: Advanced Guis and Graphics48 Questions
Exam 13: Recursion50 Questions
Exam 14: Applications of Arrays Searching and Sorting and Strings50 Questions
Select questions type
Which method would you most likely use to add an element to an end of a vector?
(Multiple Choice)
4.9/5
(30)
If a method has both a variable length formal parameter and other types of formal parameters, then the variable length formal parameter must be the first formal parameter of the formal parameter list.
(True/False)
4.9/5
(44)
The statement dataType[][][] arrayName; would declare a two-dimensional array.
(True/False)
4.8/5
(28)
In column processing, a two-dimensional array is processed one column at a time.
(True/False)
4.8/5
(39)
Suppose list is a one-dimensional array, wherein each component is of the type int. The following for loop correctly finds the sum of the elements of list.int sum = 0; for (int num : list)
sum = sum + num;
(True/False)
4.9/5
(45)
int[] numList = new int[50];for (int i = 0; i < 50; i++)
NumList[i]= 2 * i;
Num[10] = -20;
Num[30] = 8;
What is the index number of the last component in the array numList seen in the accompanying figure?
(Multiple Choice)
4.9/5
(32)
Showing 41 - 46 of 46
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)