This document contains 10 multiple choice questions about Android development using Kotlin. It covers topics like which views to use for lists (ListView, GridView, RecyclerView), how to get touch events and callbacks, how to create inner classes and primary constructors in Kotlin, how to optimize lists using ViewHolders, how RecyclerView binds to data types like ArrayList, and how to configure RecyclerView with layout managers.
This document contains 10 multiple choice questions about Android development using Kotlin. It covers topics like which views to use for lists (ListView, GridView, RecyclerView), how to get touch events and callbacks, how to create inner classes and primary constructors in Kotlin, how to optimize lists using ViewHolders, how RecyclerView binds to data types like ArrayList, and how to configure RecyclerView with layout managers.
This document contains 10 multiple choice questions about Android development using Kotlin. It covers topics like which views to use for lists (ListView, GridView, RecyclerView), how to get touch events and callbacks, how to create inner classes and primary constructors in Kotlin, how to optimize lists using ViewHolders, how RecyclerView binds to data types like ArrayList, and how to configure RecyclerView with layout managers.
1. Which of the following we use to display list of cell
a. ListView b. GridView c. RecyclerView d. TableView 2. Which of the following is used to get events to configure cell a. Listener b. Adapter c. Callback d. Touch Events 3. How we create inner class in kotlin a. class followed by class name b. inner followed by class name c. inner class followed by class name d. None of the above 4. Which of the following helps to optimized the list a. Creating the Layout file b. Creating the recyclerview c. Creating the ViewHolder d. Creating the class 5. Recycleview will be bind with what data type a. String b. Image/Bitmap c. HashMap d. ArrayList 6. How to get the class name of the Kotlin Class a. By using class b. By using object c. By Using class::Java.class d. None of the above 7. How we get the touch events in Kotlin a. Setting OnclickListener b. Setting onLongListener c. Setting onTouchDelegate d. None of the above 8. How primary constructor gets created in Kotlin a. By using the same name as class name b. By using the init followed by {} c. By using the deinit followed by {} d. None of the above 9. How we get reference from the Layout into the Kotlin a. Using Layout b. Using findViewByView c. Using View class d. Using LayontInflator 10. How Recycler view is configured a. Using Manager b. Using LinearLayoutManager c. Using LinearLayout d. Using RelativeLaout