CC107 Mobile Programming Midterm Exam Practice Flashcards

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/105

flashcard set

Earn XP

Description and Tags

Flashcards covering key topics, questions, and answers from the CC107 Mobile Programming mock midterm exam transcript.

Last updated 8:44 PM on 8/24/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

106 Terms

1
New cards

Who were the founders of Android Inc. in 2003?

Andy Rubin, Rich Miner, Nick Sears, and Chris White.

2
New cards

For what type of device was Android originally intended?

Digital cameras.

3
New cards

Which company acquired Android Inc. in 2005?

Google.

4
New cards

What was the first commercially available Android device?

HTC Dream.

5
New cards

When was Android 1.0 commercially released?

September 23, 2008.

6
New cards

Which Android version introduced the on-screen keyboard and widget support?

Android 1.5 Cupcake.

7
New cards

Which Android version introduced Wi-Fi hotspot functionality?

Android 2.2 Froyo.

8
New cards

Which Android version was developed specifically for tablet screens?

Android 3.0 Honeycomb.

9
New cards

Which Android version unified the smartphone and tablet experience?

Android 4.0 Ice Cream Sandwich.

10
New cards

Which Android version introduced Google's Material Design language?

Android 5.0 Lollipop.

11
New cards

Which Android version introduced notification channels, autofill, and picture-in-picture?

Android 8.0 Oreo.

12
New cards

How is the Android software stack best described?

Open-source and Linux-based.

13
New cards

Which Android architecture layer provides security, memory management, process management, and device drivers?

Linux kernel.

14
New cards

What is the main role of Android Runtime (ART)?

Execute applications, manage memory, and optimize performance.

15
New cards

What is Android Studio?

Android's official integrated development environment.

16
New cards

Which build system handles dependencies, compiles code, and packages Android applications?

Gradle.

17
New cards

What does SDK stand for?

Software Development Kit.

18
New cards

Which Android Studio tool runs a virtual Android device on a computer?

Android Emulator.

19
New cards

What does AVD stand for?

Android Virtual Device.

20
New cards

Which component represents a single screen with a user interface?

Activity.

21
New cards

Which Android component performs long-running tasks in the background without requiring a user interface?

Service.

22
New cards

Which component responds to system-wide announcements, such as low battery or Wi-Fi connection events?

Broadcast Receiver.

23
New cards

Which Android component manages and shares structured data between applications?

Content Provider.

24
New cards

Which mandatory file declares application components, permissions, and hardware requirements?

AndroidManifest.xml.

25
New cards

Which permission type is automatically granted after being declared in the manifest because it presents little privacy risk?

Normal permission.

26
New cards

Which permissions provide access to private user data such as the camera, location, and contacts?

Dangerous permissions.

27
New cards

What defines the structure and arrangement of UI elements on an Android screen?

Layout.

28
New cards

What is the basic building block of the Android user interface?

View.

29
New cards

What is a ViewGroup?

An invisible container that holds and organizes Views or other ViewGroups.

30
New cards

In which directory are Android XML layout files normally stored?

res/layout.

31
New cards

Which layout aligns its child views in one horizontal or vertical direction?

LinearLayout.

32
New cards

Which layout positions child views relative to the parent or to other views?

RelativeLayout.

33
New cards

Which layout organizes views into rows and columns?

TableLayout.

34
New cards

Which layout allows developers to specify the exact position of child views?

AbsoluteLayout.

35
New cards

Which layout is commonly used as a placeholder for a single view or to stack views?

FrameLayout.

36
New cards

Which ViewGroup displays items in a two-dimensional scrollable grid?

GridView.

37
New cards

Which modern layout uses constraints for flexible positioning and reduces deeply nested layouts?

ConstraintLayout.

38
New cards

What does the attribute android:id do?

Uniquely identifies a View.

39
New cards

What does the plus sign mean in @+id/btnSubmit?

Create a new resource ID.

40
New cards

What does match_parent mean?

The View should fill the available space provided by its parent.

41
New cards

What does wrap_content mean?

The View becomes only as large as its content requires.

42
New cards

What unit should generally be used for layout sizes, margins, and padding?

dp (Density-independent pixel).

43
New cards

What unit should generally be used for text size?

sp.

44
New cards

What is the main purpose of strings.xml?

Store text values used by the application.

45
New cards

What is the main purpose of colors.xml?

Define reusable color values.

46
New cards

Which directory stores images, icons, shapes, and other drawable resources?

res/drawable.

47
New cards

What is one major benefit of storing text and colors as resources instead of placing them directly in code?

It improves reusability, localization, and maintainability.

48
New cards

What does R.layout.activity_main refer to?

The activity_main.xml layout resource.

49
New cards

Which method connects an Activity to its XML layout?

setContentView().

50
New cards

Which method locates a View using its resource ID?

findViewById().

51
New cards

Which Activity lifecycle method is called when the Activity is first created?

onCreate().

52
New cards

Which lifecycle method is called when the Activity becomes visible?

onStart().

53
New cards

Which lifecycle method is called when the Activity enters the foreground and becomes interactive?

onResume().

54
New cards

Which lifecycle method is called when an Activity loses focus but may remain partially visible?

onPause().

55
New cards

Which lifecycle method is called when an Activity is no longer visible?

onStop().

56
New cards

Which lifecycle method is called when a stopped Activity is about to start again?

onRestart().

57
New cards

Which lifecycle method is called before an Activity is destroyed?

onDestroy().

58
New cards

Why is proper Activity lifecycle management important?

It helps prevent memory leaks, battery drain, lost progress, and crashes.

59
New cards

What does android:orientation="vertical" do in a LinearLayout?

Stacks child Views from top to bottom.

60
New cards

What does android:orientation="horizontal" do in a LinearLayout?

Aligns child Views from left to right.

61
New cards

What is the purpose of android:layout_weight?

Control how remaining space is distributed among child Views.

62
New cards

What does android:padding="16dp" add?

Space inside the View's boundaries.

63
New cards

What is the difference between margin and padding?

Margin is outside a View, while padding is inside.

64
New cards

Which view is commonly used to display the result of a calculation?

TextView.

65
New cards

What is an Intent?

A messaging object used to request an action from another component.

66
New cards

What type of Intent specifies the exact Activity class to open?

Explicit Intent.

67
New cards

When is an Explicit Intent commonly used?

When opening a specific screen within the same application.

68
New cards

Which code correctly creates an Explicit Intent from MainActivity to SecondActivity?

new Intent(MainActivity.this, SecondActivity.class).

69
New cards

Which method launches the Activity identified by an Intent?

startActivity().

70
New cards

In new Intent(MainActivity.this, SecondActivity.class), what does MainActivity.this represent?

The current Context.

71
New cards

In an Explicit Intent, what does SecondActivity.class identify?

The exact destination Activity.

72
New cards

Which method attaches key-value data to an Intent?

putExtra().

73
New cards

What structure maps String keys to values for passing data between Activities?

Bundle.

74
New cards

Which method retrieves the Intent that started the current Activity?

getIntent().

75
New cards

Which method can retrieve a String value attached to an Intent?

getStringExtra().

76
New cards

Which interfaces allow complex objects to be passed between Activities?

Serializable and Parcelable.

77
New cards

Which type of Intent describes a general action and lets Android select an application capable of performing it?

Implicit Intent.

78
New cards

Which Intent action is commonly used to open or view a website?

Intent.ACTION_VIEW.

79
New cards

Which class converts a website address into a URI that can be used by an Intent?

Uri.

80
New cards

What is the purpose of Intent.createChooser()?

Let the user choose which capable application will handle the Intent.

81
New cards

What should a developer verify before launching an Implicit Intent?

Whether an application is available to handle the request.

82
New cards

Which UI element allows users to perform an action when tapped?

Button.

83
New cards

Which button displays an image instead of text?

ImageButton.

84
New cards

Which button switches between two states such as ON and OFF?

ToggleButton.

85
New cards

Which control is normally used in a group when the user must select only one option?

RadioButton.

86
New cards

Which circular button floats above the interface and is commonly used for a primary action?

FloatingActionButton.

87
New cards

Which XML attribute specifies the image displayed by an ImageButton?

android:src.

88
New cards

Which ImageButton attribute provides a description for screen readers?

android:contentDescription.

89
New cards

What does android:scaleType="fitCenter" do?

Controls how an image is resized within its View.

90
New cards

Which listener is commonly used to respond when a Button is tapped?

OnClickListener.

91
New cards

Which control allows users to enter text?

EditText.

92
New cards

Which control allows users to select multiple independent options?

CheckBox.

93
New cards

Which control provides a dropdown list of choices?

Spinner.

94
New cards

What is the role of an ArrayAdapter in a Spinner?

It acts as a bridge between the data source and Spinner UI.

95
New cards

Which method attaches an adapter to a Spinner?

setAdapter().

96
New cards

Which control is appropriate for enabling or disabling a setting?

Switch.

97
New cards

Which menu appears in the app bar or overflow area and contains global actions such as Settings or Help?

Options Menu.

98
New cards

Which menu is normally activated by long-pressing a View?

Context Menu.

99
New cards

Which menu is anchored to a particular View and appears as a floating list?

Popup Menu.

100
New cards

In what directory are menu XML resources normally stored?

res/menu.