Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Big Java Binder Early Objects
Quiz 7: Arrays and Array Lists
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 61
Multiple Choice
Which one of the following code snippets accepts the integer input in an array list named num1 and stores the even integers of num1 in another array list named evennum?
Question 62
Multiple Choice
Consider the following code snippet: public static void check(ArrayList<Integer> chknum1) { Int cnt = 0; For(int i = 0; i < chknum1.size() ; i++) { If(chknum1.get(i) == 0) { Cnt++; } } System.out.println("The total 0 values in the list are: " + cnt) ; } Which one of the following is true about the check method in the given code snippet?
Question 63
Multiple Choice
Consider the following code snippet: ArrayList<Integer> arrList = new ArrayList<Integer>() ; For (int i = 0; i < arrList.size() ; i++) { ArrList.add(i + 3) ; } What value is stored in the element of the array list at index 0?
Question 64
Multiple Choice
Which one of the following statements about declaring an array list as a method parameter is true?
Question 65
Multiple Choice
What is the result of the following definition of an array list? ArrayList<Double> points;
Question 66
Multiple Choice
Your program needs to store an integer sequence of unknown length. Which of the following is most suitable to use?
Question 67
Multiple Choice
Which one of the following is a correct declaration for a method named passAList that has as arguments an array list myList of size 10 and an integer array intArr of size 20, and that modifies the contents of myList and intArr?