What Is A Program
What Is A Program
30.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
>
01) Int
02) scrollable
03) sorted
04) mutable
01) Tripoli
02) Abu Dhabi
03) Jeddah
04) Bengaluru
44. If you open an app, and then leave the app using
the back button, in which order were the following
activity lifecycle methods called?
01) onStart(), onCreate(), onDestroy(), onStop()
02) onDestroy(), onStart(), onCreate(), onStop()
03) onCreate(), onStart(), onStop(), onDestroy()
04) onStart(), onCreate(), onStop(), onDestroy()
PREPARED BY
ENGINEER MOHAMED ELBEHAIRY
AND
ENGINEER SALMA HESHAM