Modern Android App Development with Java Educative Quiz Answers

Get Modern Android App Development with Java Educative Quiz Answers

So, you want to learn to build your own Android apps? You’ve come to the right place.

In this course, you’ll take a hands-on, project-based approach to developing Android applications. You’ll work with the most common tools that Android developers use every day including Java, Groovy, and XML. As you learn, you’ll build a fully functional Travel Blog Application that will be a great addition to your portfolio.

By the end of this course, you’ll have built a fully functional Android application and be ready to build even more complex projects.

Enroll on Educative

Quiz 1: Hello World

Q1. To how many modules is the Android project limited?

  • One
  • Two
  • There is no limit

Q2. In which file do we declare all of the main components used in the Android application?

  • AndroidManifest.xml
  • AndroidApplication.xml
  • MainApplication.xml

Q3. What class represents one screen of the user interface?

  • View
  • ViewGroup
  • Activity

Q4. What is the difference between widget and layout?

  • Widget is an interactable component, layout represents an invisible container.
  • The layout can have children, widget can’t have children.

Q5. Which method must be used to bind view from XML to Java object?

  • findView()
  • findViewById()
  • bindViewById()

Quiz 2: Launch Second Screen

Q1. Which object must be used to launch another screen?

  • Intent
  • Activity
  • Bundle

Q2. To close Activity, we can use following method:

  • close()
  • exit()
  • finish()

Quiz 3: Travel Blog – Login Screen

Q1. Which view/layout we can use to show the input field?

  • EditText
  • InputView
  • TextInputEditText

Q2. To make content scrollable, we can use …

  • ScrollLayout
  • ScrollView
  • ScrollViewGroup

Q3. Which view you can use to show loading?

  • LoadingView
  • ProgressBar
  • ProgressIndicator

Q4. To close Activity, we can use the following method:

  • close()
  • exit()
  • finish()

Q5. Which method must be used to launch another Activitiy?

  • openActivity
  • startActivity
  • launchActivity

Q6. Which object must be used to launch another screen?

  • Intent
  • Activity
  • Bundle

Q7. To store a simple key-value data you can use:

  • KeyValueStore
  • Settings
  • SharedPreferences

Quiz 4: Travel Blog – Details Screen

Q1. Do we need to declare Activity in the AndroidManifest.xml file?

  • Yes
  • No
  • It’s optional

Q2. Do we need to ask the user for internet permission?

  • Yes
  • No, but it must be declared in the AndroidManifest.xml file

Q3. How we can switch to “main” thread?

  • Using switchToUiThread() method
  • Using executeOnUiThread() method
  • Using runOnUiThread() method

Q4. Can we execute network calls on the “main” thread?

  • Yes
  • No
  • If network call is relatively small

Q5. If we need to render HTML tags, which method can be used?

  • Html.fromHtml() method
  • Html.toHtml() method
  • Html.asHtml() method

Quiz 5: Travel Blog – List Screen

Q1. What layout can be used to render a list of items?

  • RecyclerView
  • ListLayout
  • TableView

Q2. Can RecyclerView render grid?

  • Yes
  • No

Q3. What is the purpose of DiffUtil.ItemCallback for ListAdapter?

  • This callback is used by the adapter to figure out how many new items need to appear.
  • This callback is used by the adapter to figure out if the items are the same and if the item content is the same for further difference calculation to re-render only items that have changed.
  • This callback is used by the adapter to figure out which item was clicked.

Q4. Which methods of the model class do we need to overwrite in order for DiffUtil.ItemCallback to work correctly?

  • compareTo() and clone()
  • hashCode() and equals()
  • toString() and notify()

Q5. Which layout can be used to implement a pull-to-refresh functionality?

  • PullToRefreshView
  • PullToRefreshLayout
  • SwipeRefreshLayout

Q6. How can we pass data from one activity to another?

  • Using activity constructor
  • Using Intent.putExtra method
  • Using Activity.setData method

Q7. Which interface do we need to implement to serialize an object into Bundle and deserialize it back?

  • Parcelable
  • Serializable
  • Persistable
Conclusion:

I hope this Modern Android App Development with Java Educative Quiz Answers would be useful for you to learn something new from this problem. If it helped you then don’t forget to bookmark our site for more Coding Solutions.

This Problem is intended for audiences of all experiences who are interested in learning about Data Science in a business context; there are no prerequisites.

Keep Learning!

More Coding Solutions >>

LeetCode Solutions

Hacker Rank Solutions

CodeChef Solutions

Leave a Reply

Your email address will not be published.