LinkedIn Android Skill Quiz Answers 2024


Exam Name: LinkedIn Android Skill Quiz

Exam URL:

  1. Which approach is not recommended for providing a useful offline state in your app?
  2. You need to provide your users with certain features of your app on-demand or as instant experiences through Google Play. Which type of module should you create?
  3. What is the current recommended way to handle long-running background tasks?
  4. Which layout hierarchy is likely to be drawn the most quickly?
  5. To shrink your code in release builds, what tool does Android Studio use?
  6. Which attribute of the element is used to specify the minimum API Level required for the application to run?
  7. What is the use of AndroidManifest.xml file?
  8. You have created an AboutActivity class that displays details about your app. Which code snippet allows you to launch your activity?
  9. What should you use to display a large, scrolling list of elements?
  10. Which component is not an entry point through which the system or a user can enter your app?
  11. To add features, components, and permissions to your Android app, which file needs to be edited?
  12. Which XML attribute should be used to make an Image View accessible?
  13. You launch your app, and when you navigate to a new screen it crashes, Which action will NOT help you diagnose the issue?
  14. Why might push notifications stop working?
  15. What is the correct set of component classes needed to implement a RecyclerView of items that displays a list of widgets vertically?
  16. The Android system kills process when it needs to free up memory. The likelihood of the system killing a given process depends on the state of the process and the activity at the time. With combination of process and activity state is most likely to be killed?
  17. You have created a NextActivity class that relies on a string containing some data that pass inside the intent Which code snippet allows you to launch your activity?
  18. You want to include about and setting modules in your project. Which files accurately reflects their inclusion?
  19. What is the benifit of using @VisibleForTesting annotation?
  20. How would you specify in your build.gradle file that your app required at least API level 21 to run, but that it can be tested on API level 28?
  21. When will an activity’s onActivityResult()be called?
  22. You need to remove an Event based on it;s id from your API, Which code snippet defines that request in Retrofit?
  23. When would you use a product flavour in your build setup?
  24. Given the fragment below, how would you get access to a TextView with an ID of text_home contained in the layout file of a Fragment class?
  25. Why do you use the AndroidJUnitRunner when running UI tests?
  26. What allows you to properly restore a user’s state when an activity is restarted?
  27. Given the definition below. how would you get access a TextView with an ID of text_home contained in thr layout file of a Fragment class?
  28. IF the main thread is blocked for too long, the system displays the _ dialog?
  29. How would you retrieve the value of a user’s email from SharedPreferences while ensuring that the returned value is not null?
  30. Why is it problematic to define sizes using pixels on Android?
  31. You need to get a list of devices that are attached to your computer with USB debugging enable. Which command would execute using the Android Debug Bridge?
  32. To persist a small collection of key-value data, what should you use?
  33. You need to retrieve a list of photos from an API. Which code snippet defines an HTML GET request in Retrofit?
  34. Given the test class below, which code snippet would be a correct assertion?
  35. What tag should you use to add a reusable view component to a layout file?
  36. You want to provide a different drawable for devices that are in landscape mode and whose language is set to French. which directory is named correctly?
  37. Why might you need to include the following permission to your app?
  38. Which image best corresponds to the following LinearLayout?
  39. You want to open the default Dialer app on a device. What is wrong with this code?
  40. When should you store files in the /assets directory?
  41. You want to allow users to take pictures in your app. Which is not an advantage of creating an appropriate intent, instead of requesting the camera permission directly?
  42. When would you use the ActivityCompat.shouldShowRequestPermissionRationale() function?
  43. You would like to enable analytics tracking only in release builds. How can you create a new field in the generated BuildConfig class to store that value?
  44. To optimize your APK size, what image codec should you use?
  45. You have built code to make a network call and tested that it works in your development environment. However, when you publish it to the Play console, the networking call fails to work. What will not help you troubleshoot this issue?
  46. Which code snippet would achieve the layout displayed below?
  47. Which source set is _not_ available to you by default when Android Studio creates a new project?
  48. Which definition will prevent other apps from accessing your Activity class via an intent?
  49. To preserve on-device memory, how might you determine that the user’s device has limited storage capabilities?
  50. What is _not_ a good way to reuse Android code?
  51. Which layout is best for large, complex hierarchies?
  52. You need to upgrade to the latest version of the Android Gradle plugin. Which file should you modify?
  53. Why do developers often put app initialization code in the Application class?
  54. What folder should you use for your app’s launcher icons?
  55. Which drawable definition allows you to achieve the shape below?
  56. Given the ConstraintLayout below, which statement is true?
  57. Given this code snippey from a build.gradle file, which choice is not a possible build variant?
  58. When should you use the androidTest directory to store your test classes?
  59. What is the benifit of using the @VisibleForTesting annotation?
  60. Given an APK named app-internal-debug.apk produced from the build process, which statement is likely to be true?
  61. When attempting to build your project, what might the following error indicate?
  62. Which statement, in build.gradle file, correctly denotes that the corresponding module is an Android library module?
  63. Given the following dimens.xml file, how would you define an ImageView with medium spacing at the bottom?
  64. what is not a benefit of externalizing app resources such as image and string from a code?
  65. What is the chief purpose of line five in this code snippet?

Leave a Comment