1/105
Flashcards covering key topics, questions, and answers from the CC107 Mobile Programming mock midterm exam transcript.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Who were the founders of Android Inc. in 2003?
Andy Rubin, Rich Miner, Nick Sears, and Chris White.
For what type of device was Android originally intended?
Digital cameras.
Which company acquired Android Inc. in 2005?
Google.
What was the first commercially available Android device?
HTC Dream.
When was Android 1.0 commercially released?
September 23, 2008.
Which Android version introduced the on-screen keyboard and widget support?
Android 1.5 Cupcake.
Which Android version introduced Wi-Fi hotspot functionality?
Android 2.2 Froyo.
Which Android version was developed specifically for tablet screens?
Android 3.0 Honeycomb.
Which Android version unified the smartphone and tablet experience?
Android 4.0 Ice Cream Sandwich.
Which Android version introduced Google's Material Design language?
Android 5.0 Lollipop.
Which Android version introduced notification channels, autofill, and picture-in-picture?
Android 8.0 Oreo.
How is the Android software stack best described?
Open-source and Linux-based.
Which Android architecture layer provides security, memory management, process management, and device drivers?
Linux kernel.
What is the main role of Android Runtime (ART)?
Execute applications, manage memory, and optimize performance.
What is Android Studio?
Android's official integrated development environment.
Which build system handles dependencies, compiles code, and packages Android applications?
Gradle.
What does SDK stand for?
Software Development Kit.
Which Android Studio tool runs a virtual Android device on a computer?
Android Emulator.
What does AVD stand for?
Android Virtual Device.
Which component represents a single screen with a user interface?
Activity.
Which Android component performs long-running tasks in the background without requiring a user interface?
Service.
Which component responds to system-wide announcements, such as low battery or Wi-Fi connection events?
Broadcast Receiver.
Which Android component manages and shares structured data between applications?
Content Provider.
Which mandatory file declares application components, permissions, and hardware requirements?
AndroidManifest.xml.
Which permission type is automatically granted after being declared in the manifest because it presents little privacy risk?
Normal permission.
Which permissions provide access to private user data such as the camera, location, and contacts?
Dangerous permissions.
What defines the structure and arrangement of UI elements on an Android screen?
Layout.
What is the basic building block of the Android user interface?
View.
What is a ViewGroup?
An invisible container that holds and organizes Views or other ViewGroups.
In which directory are Android XML layout files normally stored?
res/layout.
Which layout aligns its child views in one horizontal or vertical direction?
LinearLayout.
Which layout positions child views relative to the parent or to other views?
RelativeLayout.
Which layout organizes views into rows and columns?
TableLayout.
Which layout allows developers to specify the exact position of child views?
AbsoluteLayout.
Which layout is commonly used as a placeholder for a single view or to stack views?
FrameLayout.
Which ViewGroup displays items in a two-dimensional scrollable grid?
GridView.
Which modern layout uses constraints for flexible positioning and reduces deeply nested layouts?
ConstraintLayout.
What does the attribute android:id do?
Uniquely identifies a View.
What does the plus sign mean in @+id/btnSubmit?
Create a new resource ID.
What does match_parent mean?
The View should fill the available space provided by its parent.
What does wrap_content mean?
The View becomes only as large as its content requires.
What unit should generally be used for layout sizes, margins, and padding?
dp (Density-independent pixel).
What unit should generally be used for text size?
sp.
What is the main purpose of strings.xml?
Store text values used by the application.
What is the main purpose of colors.xml?
Define reusable color values.
Which directory stores images, icons, shapes, and other drawable resources?
res/drawable.
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.
What does R.layout.activity_main refer to?
The activity_main.xml layout resource.
Which method connects an Activity to its XML layout?
setContentView().
Which method locates a View using its resource ID?
findViewById().
Which Activity lifecycle method is called when the Activity is first created?
onCreate().
Which lifecycle method is called when the Activity becomes visible?
onStart().
Which lifecycle method is called when the Activity enters the foreground and becomes interactive?
onResume().
Which lifecycle method is called when an Activity loses focus but may remain partially visible?
onPause().
Which lifecycle method is called when an Activity is no longer visible?
onStop().
Which lifecycle method is called when a stopped Activity is about to start again?
onRestart().
Which lifecycle method is called before an Activity is destroyed?
onDestroy().
Why is proper Activity lifecycle management important?
It helps prevent memory leaks, battery drain, lost progress, and crashes.
What does android:orientation="vertical" do in a LinearLayout?
Stacks child Views from top to bottom.
What does android:orientation="horizontal" do in a LinearLayout?
Aligns child Views from left to right.
What is the purpose of android:layout_weight?
Control how remaining space is distributed among child Views.
What does android:padding="16dp" add?
Space inside the View's boundaries.
What is the difference between margin and padding?
Margin is outside a View, while padding is inside.
Which view is commonly used to display the result of a calculation?
TextView.
What is an Intent?
A messaging object used to request an action from another component.
What type of Intent specifies the exact Activity class to open?
Explicit Intent.
When is an Explicit Intent commonly used?
When opening a specific screen within the same application.
Which code correctly creates an Explicit Intent from MainActivity to SecondActivity?
new Intent(MainActivity.this, SecondActivity.class).
Which method launches the Activity identified by an Intent?
startActivity().
In new Intent(MainActivity.this, SecondActivity.class), what does MainActivity.this represent?
The current Context.
In an Explicit Intent, what does SecondActivity.class identify?
The exact destination Activity.
Which method attaches key-value data to an Intent?
putExtra().
What structure maps String keys to values for passing data between Activities?
Bundle.
Which method retrieves the Intent that started the current Activity?
getIntent().
Which method can retrieve a String value attached to an Intent?
getStringExtra().
Which interfaces allow complex objects to be passed between Activities?
Serializable and Parcelable.
Which type of Intent describes a general action and lets Android select an application capable of performing it?
Implicit Intent.
Which Intent action is commonly used to open or view a website?
Intent.ACTION_VIEW.
Which class converts a website address into a URI that can be used by an Intent?
Uri.
What is the purpose of Intent.createChooser()?
Let the user choose which capable application will handle the Intent.
What should a developer verify before launching an Implicit Intent?
Whether an application is available to handle the request.
Which UI element allows users to perform an action when tapped?
Button.
Which button displays an image instead of text?
ImageButton.
Which button switches between two states such as ON and OFF?
ToggleButton.
Which control is normally used in a group when the user must select only one option?
RadioButton.
Which circular button floats above the interface and is commonly used for a primary action?
FloatingActionButton.
Which XML attribute specifies the image displayed by an ImageButton?
android:src.
Which ImageButton attribute provides a description for screen readers?
android:contentDescription.
What does android:scaleType="fitCenter" do?
Controls how an image is resized within its View.
Which listener is commonly used to respond when a Button is tapped?
OnClickListener.
Which control allows users to enter text?
EditText.
Which control allows users to select multiple independent options?
CheckBox.
Which control provides a dropdown list of choices?
Spinner.
What is the role of an ArrayAdapter in a Spinner?
It acts as a bridge between the data source and Spinner UI.
Which method attaches an adapter to a Spinner?
setAdapter().
Which control is appropriate for enabling or disabling a setting?
Switch.
Which menu appears in the app bar or overflow area and contains global actions such as Settings or Help?
Options Menu.
Which menu is normally activated by long-pressing a View?
Context Menu.
Which menu is anchored to a particular View and appears as a floating list?
Popup Menu.
In what directory are menu XML resources normally stored?
res/menu.