DA2 - CS0011 || CANVAS

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/11

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:03 PM on 10/16/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

12 Terms

1
New cards

How do you start a new Activity using an Intent?

startService(intent)

startContent(intent)

startBroadcast(intent)

startActivity(intent)

startActivity(intent)

2
New cards

We can not instantiate UI elements during runtime.

True

False

False

3
New cards

View is something that the user can see and interact with.

True

False

True

4
New cards

What are the main types of Intents?

Internal and External

Direct and Indirect

Static and Dynamic

Correct answer:

Explicit and Implicit

Explicit and Implicit

5
New cards

An app is running in the foreground when a phone call arrives, displaying a small dialog-themed incoming call window over the top of the app. The user can still see the app's UI partially blurred or obscured in the background. Which lifecycle method is called on the main activity when this dialog appears?

onDestroy()

onStop()

onSaveInstanceState()

onPause()

onPause()

6
New cards

Activity class takes care of creating a window for you in which you can place your UI with setContentView(View)

True

False

True

7
New cards

Activity is one of the most important component for any android app. Activities are the User Interface (UI) screens which user see.

True

False

True

8
New cards

We can use the Intent.getExtras() in the target activity/class to get the attached bundle and extract the data stored in it.

True

False

True

9
New cards

Linear layout is an example of ______________.

Layout Attributes

ViewGroup

Controls

View

ViewGroup

10
New cards

The onClickListener is an event handler.

True

False

False

11
New cards

Intent can be use to launch an activity.

True

False

True

12
New cards

When you switch from one activity to another, the first activity will no longer be visible on your screen, in this case, the callback method ___________ is called.

onPause()

onResume()

onDestroy()

onStop()

onStop()