Get user input in an app: Part 1

  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.