스크롤 가능한 목록 표시 경로로 돌아가기 Before running the below code, simpleList should be initialized as a ___ list. println(simpleList) simpleList.add(-5) simpleList.remove(4) println(simpleList) Int scrollable sorted mutable Which of the following statements are valid? 적절한 답변을 모두 선택합니다. val list = listOf(1, 2, 5) val oddNumbers = mutableListOf("1", "9", "15") val listValues: MutableList<Boolean> val fruits = list("apple", "banana", "pear") val words: List<String> = listOf("jump", "run", "skip") Why does a RecyclerView need an Adapter? To adapt data to display on a specific device type To create a new ViewGroup To adapt data from a data source into JSON To create new ViewHolders and bind data to them Which of the following are advantages to using RecyclerView? 적절한 답변을 모두 선택합니다. RecyclerView comes with built-in layout managers. RecyclerView lets you use packages to organize your code. RecyclerView helps save processing time, which can help scrolling through a list smoother. RecyclerView is designed to be efficient for lists by reusing views that have scrolled off the screen. RecyclerView automatically incorporates Material Design components. Which of the following is true about packages? 적절한 답변을 모두 선택합니다. You can use packages to organize your code. In order to use a class from another package, you have to explicitly import it in your code. The package name is usually structured from specific to general. It is good practice to use packages to group classes by functionality. What should you do to ensure that the correct type of resource ID is passed in to a constructor? Use an Adapter to force the type. Only use a stringResourceId or imageResourceId. Use resource annotations. Use a naming convention to pass the ID in the form R.<type>. None of the above 빈 칸 채우기 단어를 하나 이상 입력하여 문장을 완성하세요. In the below code, ___ should be written in the for loop, so that the output returned is the list of numbers 1 through 3, with each number printed on a new line. val numbers = listOf(1, 2, 3) for (_______) { println(num) } 답변 제출 error_outline 퀴즈를 채점하는 중에 오류가 발생했습니다. 다시 시도해 주세요.