SA2-3 REVIEWER

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

1/55

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:46 PM on 8/29/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

56 Terms

1
New cards

True or False: All ViewGroup derivations accept nested View elements.

False

2
New cards

Some ViewGroups determine their children only from an ______ using the AdapterView class.

Adapter

3
New cards

An activity class loads all the UI component using the XML file during the ______ method.

onCreate()

4
New cards

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

False

5
New cards

This callback method is called when the user navigates back to the screen of your application after using another/different application.

onResume()

6
New cards

You implement an activity as a subclass of the Content Provider class.

False

7
New cards

The onCreate() and onDestroy() methods are called only once throughout the activity lifecycle.

True

8
New cards

An Android activity represents one screen of the Android application's user interface.

True

9
New cards

When another activity is called within the application, the current activity will call the ______ method.

onPause()

10
New cards

When you open an application, onResume() method is called after.

onStart()

11
New cards

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

True

12
New cards

The onResume() callback method is called whenever the activity becomes visible to the user.

False

13
New cards

An individual UI component generally referred to as a "widget".

View

14
New cards

What is a layout in Android?

A container that defines the structure of a user interface

15
New cards

TextView is an example of ______.

View

16
New cards

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

True

17
New cards

A unique resource name for the element, which you can use to obtain a reference to the View or ViewGroup from your application.

Resource ID

18
New cards

The onClickListener is an event handler.

True

19
New cards

The onClickListener is called when the user either clicks or touches or focuses upon any widget like button, text, image etc.

False

20
New cards

You can create your layout in Android using HTML.

False

21
New cards

Implicit intents do not name a specific component, but instead declare a general action to perform, which allows a component from another app to handle it.

True

22
New cards

How do you start a new Activity using an Intent?

startActivity(intent)

23
New cards

Give the method that is used to pass data to another Activity.

putExtra()

24
New cards

The target component which receives the intent can use the putExtras() method to get the extra data sent by the source component.

False

25
New cards

What are the main types of Intents?

Explicit and Implicit

26
New cards

Intent can be use to launch an activity.

True

27
New cards

Implicit intents are often used to activate components in other applications.

True

28
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

29
New cards

Explicit intents specify which application will satisfy the intent, by supplying either the target app's package name or a fully-qualified component class name.

True

30
New cards

How do you retrieve a value passed through an Intent?

getIntent().getExtras().getString("key")

31
New cards

You release version 1 of your app with a Notes table. In version 2, you want to add a new column description. Which method should you override to handle schema changes?

onUpgrade()

32
New cards

A standard toast notification appears near the ___ of the screen.

bottom

33
New cards

To get the value from a field in a JSON object, we can issue the getString method to retrieve the desired value from a field.

True

34
New cards

Which class is used to create notifications in Android?

NotificationCompat.Builder

35
New cards

Which SQLite method returns a Cursor for query results?

db.query()

36
New cards

The makeToast() method takes three parameters: the application Context, the text message, and the duration for the toast.

True

37
New cards

Beginning with Android 5.0, notifications can appear on the lock screen.

True

38
New cards

Since the cursor starts at position -1, calling moveToNext() places the "read position" on the first entry in the results.

True

39
New cards

To get an array from a field in a JSON object, we can issue the getJSONObject method to retrieve the desired value from a field.

False

40
New cards

Which line gets Jane's name using org.json? (JSON data is provided)

json.getJSONObject("company").getJSONArray("employees").getJSONObject(1).getString("name")

41
New cards

Which method inserts a new row into a database table?

insert()

42
New cards

The return value for the delete() method indicates the number of rows that were deleted from the database.

True

43
New cards

Can a JSON object contain another JSON object or array as a value?

True

44
New cards

You are creating a local SQLite database in your Android app to store user notes. You need a class that manages database creation and version management. Which class should you extend to create your database helper?

SQLiteOpenHelper

45
New cards

What is required to create a notification channel?

Channel ID, Name, and Importance

46
New cards

Which class is used to manage and send notifications?

NotificationManager

47
New cards

What is the purpose of a Notification Channel in Android (API 26+)?

To group notifications for easy management

48
New cards

In Android, notifications can include all EXCEPT:

JavaScript execution

49
New cards

Which method is called when the database is created for the first time?

onCreate()

50
New cards

What will this JSON represent? (JSON data is provided)

A JSON object with one array of student objects

51
New cards

How do you prevent SQL injection in Android SQLite?

Use parameterized queries or ContentValues

52
New cards

Given the JSON below, determine which of the following is correct.

iii only (The statement "iii. given name is an array" is correct)

53
New cards

What is the default priority for a notification if not explicitly set?

Default

54
New cards

We can insert data into the database by passing a ContentValues object to the insert() method.

True

55
New cards

SQLiteOpenHelper is a helper class to manage database creation and version management.

True

56
New cards

JSONStringer is a utility class to build a JSON Text quickly which confirms to JSON Syntax rules.

True