Kotlin Program - Study Mode
[#111] Which of the following constraint types expands a view only as much as needed to fit its contents?
Correct Answer
(A) Wrap content
[#112] Which of the following is not a reason for minimizing calls to findViewById()?
Correct Answer
(D) Your app is less likely to crash.
[#113] How do you enable your project to use navigation components?
Correct Answer
(D) Add dependencies for navigation-fragment-ktx and navigation-ui-ktx in the build.gradle (module) file.
[#114] Where are the possible navigation routes through your app defined?
Correct Answer
(C) In a file (often called navigation.xml) in the res > navigation folder.
[#115] Where do you set the ID of a fragment to be used in navigation?
Correct Answer
(B) In the project navigation file, either by setting the ID attribute in the navigation graph or in the navigation.xml file in the res > navigation folder.