Get user input in an app

  1. Which of the following is true about class inheritance?
  2. Which of the following are true about abstract classes?

    Choose as many answers as you see fit.

  3. Fill-in-the-blanks

    Enter one or more words to complete the sentence.

    The ___ is called when you create an instance of a class.

  4. How do you mark a property to be used only inside its current class?
  5. Select all answers that are true for this XML layout when displayed on the screen. (You can sketch this out on a piece of paper first, if that helps.)
    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <TextView
            android:id="@+id/textViewA"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="A"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent" />
        <TextView
            android:id="@+id/textViewB"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="B"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toTopOf="parent" />
    </androidx.constraintlayout.widget.ConstraintLayout>
    

    Choose as many answers as you see fit.

  6. Which line(s) of XML code will produce an error?
    1    <TextView
    2        android:layout_width="wrap_content"
    3        android:layout_height"wrap_content"
    4        android:padding="8dp"
    5        android:text="@string/title"
    6        android:textSize=18sp />
    

    Choose as many answers as you see fit.

  7. Which of the following is true about Gradle?

    Choose as many answers as you see fit.

  8. Which of the following statements about app icons are true?

    Choose as many answers as you see fit.

  9. Which of the below steps are part of changing the color of your app theme?

    Choose as many answers as you see fit.

  10. Why use the Material Components for Android library?

    Choose as many answers as you see fit.