Docsity

ANDROID BOOT CAMP FOR DEVELOPERS USING JAVA ACTUAL TEST QUESTIONS AND SOLUTIONS COMPREHENS, Exams of Java Programming

Toggle sidebar
bg1
ANDROID BOOT CAMP FOR DEVELOPERS
USING JAVA ACTUAL TEST QUESTIONS
AND SOLUTIONS COMPREHENSIVE
REVIEW PACKAGE
●● Gradle
Answer: Dependency management program
●● Resources
Answer: are the additional files and static content an application needs,
such as animations, color schemes, layouts, menu layouts.
●● Root Element
Answer: Each layout file must contain one (and only one!)
______________.
●● Root Elements
Answer: Linear Layouts, Relative Layouts, and Frame Layouts (see
Root Views section below) may all be _________________________
●● Linear
Answer: _________________ Layout aligns its contents into a single
direction, whether vertical or horizontal.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16

Partial preview of the text

Download ANDROID BOOT CAMP FOR DEVELOPERS USING JAVA ACTUAL TEST QUESTIONS AND SOLUTIONS COMPREHENS and more Exams Java Programming in PDF only on Docsity!

ANDROID BOOT CAMP FOR DEVELOPERS

USING JAVA ACTUAL TEST QUESTIONS

AND SOLUTIONS COMPREHENSIVE

REVIEW PACKAGE

●● Gradle Answer: Dependency management program ●● Resources Answer: are the additional files and static content an application needs, such as animations, color schemes, layouts, menu layouts. ●● Root Element Answer: Each layout file must contain one (and only one!) ______________. ●● Root Elements Answer: Linear Layouts, Relative Layouts, and Frame Layouts (see Root Views section below) may all be _________________________ ●● Linear Answer: _________________ Layout aligns its contents into a single direction, whether vertical or horizontal.

●● Relative Answer: _________________ Layout displays its child content in positions relative to the parent. (ie: lining an element up to the top edge of a parent, centering it within a parent, etc.) ●● Frame Answer: __________________ Layout is a placeholder on a screen that can display only a single view. (For this reason, Frame Layouts should be used sparingly; usually as a placeholder for Fragments, which we will cover later.) ●● List View Answer: displays a list of scrollable items ●● Grid View Answer: displays items in a two-dimensional, scrollable grid ●● Table Layout Answer: groups views into rows and columns ●● Content Answer: android:layout_width=wrap_content: Sets the width of the view to whatever size is required by its ______________________

●● Toast Answer: A pop up message that automatically fades in and out when triggered ●● Context Answer: In Android, reference to the current activity ●● onCreate() Answer: * The ________________ method is called every time a user visits an activity ●● default behaviors Answer: super.onCreate(savedInstanceState); causes Android to run all of the ___________ _____________ for an activity. It's very rare that you would change this line. ●● setContentView Answer: _____________________ tells the activity which layout to use for the device screen ●● main_activity.xml Answer: R.layout.activity_main tells Android to use the ________________________ layout for this activity

●● res Answer: R.layout.activity_main: R - which is short for Resources - gives us a way to access all of our files in the _________ directory. ●● toast Answer: A ____________ takes three parameters; a context, a message, and a duration ●● Intent Answer: An instance of the Intent class; represents something our app "intends to do"; most often, an intent is used to start another activity or hand something over to another app. ●● EditText Answer: A specific type of text field. Allows the user to interact with text in your application; usually by typing text, but cutting, copying and pasting are also supported. Text fields can have different input types, such as number, date, password or email address. These types determine which characters are permitted inside of the field. ●● getText() Answer: * Called upon a text field, returns the current contents of a text field, as an editable data type.

●● Instrumentation Testing Answer: Tests that require an Android device or emulator to simulate a user ●● Robolectric Answer: A unit testing framework for Android applications ●● Shadows Answer: Classes that modify or extend behavior of a class in the Android SDK. Robolectric looks for Shadow classes that correspond with any Android classes that are run as part of a Robolectric test. ●● Instrumentation Testing Answer: Testing for user interfaces that requires an actual emulator or device to simulate user interaction with the application. ●● Espresso Answer: A framework designed to test user interfaces with instrumentation tests. ●● .ttf Answer: Fonts must be of the _____ file extension.

●● assets fonts Answer: Font files should reside in the __________ directory, in a sub- directory named _________. If you have not already, you will need to create these directories. ●● View object Answer: the setTypeface() method can be called upon a _________ ___________, and will apply the Typeface provided as an argument to that specific View's text. ●● Adapter Answer: Essentially a bridge between the components of your user interface, and the data that your user interface should display. ●● ArrayAdapter Answer: Responsible for taking an ArrayList of objects from our business logic and converting them into View objects to be displayed in our User Interface ●● Recycling Answer: The act of an adapter re-using the individual Views of a ListView as the user scrolls through a list. After the ListView has created enough individual list items to fit the full height of the screen, it simply re-uses existing list items to display the new list items instead of creating more.

●● Warning Answer: The w in Log.w() stands for _______________ ●● Information Answer: The i in Log.i() stands for ___________________ ●● Debug Answer: The d in Log.d() stands for _________________ ●● Verbose Answer: The v in Log.v() stands for ____________________ ●● What a terrible failure Answer: Log.wtf() wtf stands for __________________ ●● breakpoint Answer: _______________________ is a language-agnostic term meaning the location at which code is intentionally paused. ●● Android Manifest Answer: A required XML file in any Android application that defines the name of the Java package, what components are present and how they

may be launched, what permissions the app requires, and the minimum level Android API required. ●● App Bar Answer: A toolbar used for branding, navigation, search and actions; also known as the App toolbar or Action bar. ●● Hierarchical relationship Answer: A relationship between one screen and another that is navigated in "up" and "down" levels of parent and child. Example: the MainActivity is the hierarchical parent of the RestaurantsActivity. ●● Metadata Answer: Data about other data ●● Up Button Answer: Used to navigate within an app based on the hierarchical relationships between screens. A 'child' view will contain an up button back to its hierarchical parent ●● OkHttp Answer: An Android Networking library developed by Square. It handles making HTTP requests and receiving responses for us, with

Answer: The execution of instructions that can be managed independently. ●● Multi-Threading Answer: A program executing multiple threads at once. ●● Main Thread Answer: The default, primary thread created anytime an Android application is launched. Also known as a UI thread, it is in charge of handling all user interface and activities, unless otherwise specified. ●● Runnable Answer: ____________________ is an interface meant to handle sharing code between threads. It contains only one method: run(). This method generally contains the code we want to run on the thread specified. ●● RecyclerView Answer: A newer Android ViewGroup object meant to render any adapter-based View. It's similar to a ListView, but with many updated features, including the ability to implement both horizontal and vertical lists. ●● RecyclerView.Adapter

Answer: Similar to the built-in Android ArrayAdapter. It will populate the data into the RecyclerView. It also converts a Java object into an individual list item View to be inserted and displayed to the user. ●● ViewHolder Answer: An object that stores multiple Views inside the tag field of the Layout so they can be immediately loaded, and you don't have to find them by id repeatedly. A ViewHolder is required by the RecyclerView.Adapter. ●● Inner-class Answer: Also sometimes referred to as a nested class. A class that resides within another class. They have all functionality of a non-nested class, but with limited scope. They also have full access to the class in which they are nested. ●● Activity Stack Answer: Multiple activities in different states, being managed by Android. The top of the stack is always the currently-running activity. Paused activities are next, and stopped activities below that. The stack's order may change as users interact with different activities. ●● Active Answer: _____________ or Running: Activities are considered active or running if they are visible to the user. This also means they're at the top of the activity stack.

●● OnResume() Answer: * Called when the activity begins interacting with the user. ●● OnRestart() Answer: * Called when a stopped activity is being started again. ●● OnPause() Answer: * Called when the system is about to start resuming a previous activity. ●● OnStop() Answer: * Called when the activity is no longer visible to the user. ●● OnDestroy() Answer: * Called directly before the activity is destroyed. ●● Entire Lifetime Answer: The ___________ ____________ of an activity includes every method that takes place between the first call to onCreate() through the final call to onDestroy(). ●● Visible Lifetime

Answer: Referring to the time in which the activity is visible to the user, between a call to onStart() until a corresponding call to onStop() ●● Foreground Lifetime Answer: Referring to the time in which the activity is in front of all other activities, and interacting with the user. Between a call to onResume() until a corresponding call to onPause() ●● Fragments Answer: Small pieces of user interfaces that can be embedded in activities or displayed by adapters. ●● hdpi Answer: "dpi" stands for "dot per inch", and the "h" stands for "high". Essentially, higher-quality resolution. ●● Serialization Answer: The conversion of an object into bytes, so the object can be easily saved somewhere, or efficiently passed to another area of an application. ●● Parcelable

●● Shared Preferences Answer: An Android class that allows apps to store key-value pairs of primitive data types. Once saved, information in shared preferences will persist across sessions. ●● SharedPreference.Editor Answer: any modifications to shared preferences must go through a dedicated tool called __________________ ●● Firebase Answer: ______________ is a cloud services provider that offers realtime databases. ●● Cloud Services Answer: __________ ________ are simply any resource provided over the internet. ●● Realtime databases Answer: ______________ _______________ are databases that are constantly updating and syncing whenever our data changes. ●● Node

Answer: a general computing term referring to an individual piece of a larger data structure. ●● Child Node Answer: A node extending from another node. ●● Push ID Answer: A unique, randomly generated id associated with each entry by the node, and created by Firebase. ●● Listeners Answer: Watch for changes in a specified node. Whenever changes occur, listeners automatically provide the application updated data. ●● Snapshot Answer: Updated data from a node. Usually provided to the application by a listener, when changes to the node occur. ●● Plain Old Java Objects Answer: POJOs: Stands for ●● FirebaseUI-Android