1/184
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
The Dalvik VM enables every Android application to run in its own process, with its own instance of the Dalvik virtual
machine.
True
False
True
One of the major update on Android Pie is ______________.
PIP Mode
Material Design
Adaptive Brightness
Fingerprint Authentication
Adaptive Brightness
Android 4.4 is also know as _______________.
Marshmallow
Nougat
Pie
Kitkat
Kitkat
Android is a proprietary and only Google is allowed to use it.
True
False
False
Android is a mobile operating system based on Windows.
True
False
False
Multi-window support was introduce in Android ________________.
Nougat
Pie
Kitkat
Marshmallow
Nougat
In Android architecture, Activity Manager falls under ________________.
Application Framework
Applications
Linux Kernel
Android Runtime
Application Framework
The top layer of the android architecture is _______________. The native and third-party applications like contacts, email, music, gallery, clock, games, etc. whatever we will build those will be installed on this layer only.
Android Runtime
Platform Libraries
Application Framework
Applications
Applications
Google purchased Android in what year?
2005
1999
2012
2001
2005
The first release of Android with a dessert codename is ___________.
Android 1.5
Android 1.8
Android 1.0
Android 1.2
Android 1.5
In Kotlin, it is possible to inherit class properties and functions from one class to another.
True
False
True
What is the correct way to create an object called myObj of the class MyClass?
myObj : MyClass()
MyClass.new myObj
myObj = new MyClass()
val myObj = MyClass()
val myObj = MyClass()
What is the fname known as in the following code: fun myFunction(fname: String)
range
inherit
parameter
override
parameter
What is the output of the following code: println(5 > 3 && 5 < 10)
true
null
false
undefined
true
In Kotlin, how can you create a variable with the numeric value 5
num =. 5
val num = 5
int num = 5
num = 5 int
val num = 5
How can you create a variable with the floating number 2.8?
double num = 2.8
float num = 2.8
val num = 2.8
num = 2.8 float
val num = 2.8
Array indexes start with:
nil
-1
0
1
0
In Kotlin, code statements must end with a semicolon (;)
True
False
False
Which of the following is used to declare an array in Kotlin?
arrayOf()
[]
new array()
array()
arrayOf()
How do you insert COMMENTS in Kotlin code?
-- this is my comment
% this is my comment
# this is my comment
// this is my comment
// this is my comment
What is a correct syntax to output "Hello World" in Kotlin?
Console.WriteLine("Hello Gwapo");
cout<
println("Hello Gwapo")
_______________ are additional files and static content that your code uses, such as bitmaps, layout definitions, etc.
Receivers
Activities
Resources
Services
Resources
If you want to access an image from your res folder to your Java code, what command you should use?
R.id.image
R.drawable.image
R.res.image
res/drawable/image
R.drawable.image
UI elements that are drawn on-screen including buttons, lists forms etc.
Layouts
Views
Intents
Fragments
Views
All application components in an Android application can be observed in the MainActivity.java file.
True
False
False
_________ class contains resource IDs for all the resources available in your directory.
ID
R
xml
res
R
An Android ______ is one screen of the app's user interface.
Activity
An activity is similar to ______ in a desktop application.
Windows
An Android app starts by showing the main ______.
Activity
An Android activity goes through a certain life ______ during its existence.
Cycle
All activities are subclasses of android.app.______
Activity
The Activity class contains methods that correspond to the life cycle ______.
States
The first callback called when the activity is created is ______.
onCreate()
The callback called when the activity becomes visible is ______.
onStart()
The callback called when the user starts interacting with the app is ______.
onResume()
The callback called when the activity is being paused is ______.
onPause()
A paused activity does not receive user ______ and cannot execute code.
Input
The callback called when the activity is no longer visible is ______.
onStop()
The callback called before the activity is destroyed is ______.
onDestroy()
The callback called when the activity restarts after stopping is ______.
onRestart()
All activities must be declared in the ______ file.
Manifest
In the manifest an activity is declared inside the ______ element.
UI components are loaded from XML files stored in the ______ folder.
res/layout
The method used to set the activity's layout is ______.
setContentView()
In a Kotlin Android project the main logic file is ______
MainActivity.kt
In a Kotlin Android project the main layout file is ______
activity_main.xml
Step 1 of creating a Kotlin project: Select the ______ for your application.
Layout
Step 2 of creating a Kotlin project: Write the application name and select the language ______.
Kotlin
Step 3 of creating a Kotlin project gives you two files: MainActivity.kt and ______.
activity_main.xml
Application components are the essential building blocks of an Android _______
application
The configuration file that describes each component and how they interact is called _______
AndroidManifest.xml
An _______ represents a single screen with a user interface
Activity
An activity is implemented as a subclass of the _______ class
Activity
A _______ runs in the background to perform long-running operations
Service
A service is implemented as a subclass of the _______ class
Service
_______ simply respond to broadcast messages from the system or other applications
Broadcast Receivers
A broadcast receiver is implemented as a subclass of the _______ class
BroadcastReceiver
A _______ supplies data from one application to others on request
Content Provider
A content provider is implemented as a subclass of the _______ class
ContentProvider
A portion of a user interface in an Activity is called a _______
Fragment
UI elements that are drawn on screen including buttons, lists, and forms are called _______
Views
View hierarchies that control screen format and appearance are called _______
Layouts
Messages wiring components together in Android are called _______
Intents
External elements such as strings, constants, and drawable pictures are called _______
Resources
The configuration file for the application is called the _______
Manifest
Resources in Android are maintained in the _______ directory
res/
XML files that define Property animations are stored in _______
animator/
XML files that define Tween animations are stored in _______
anim/
XML files that define a state list of colors are stored in _______
color/
Image files like .png, .jpg, .gif or XML drawable files are stored in _______
drawable/
XML files that define a user interface layout are stored in _______
layout/
XML files that define application menus are stored in _______
menu/
Arbitrary files saved in their raw form are stored in _______
raw/
Simple values such as strings, integers, and colors are defined in _______
values/
Arbitrary XML files for runtime use such as configuration are stored in _______
xml/
Font files such as .ttf, .otf, or XML font-family definitions are stored in _______
font/
To set an image resource in code from drawable, you use _______
setImageResource(R.drawable.myimage)
String resources are defined in the file _______
res/values/strings.xml
To set the layout of an activity in code you use _______
setContentView(R.layout.activity_main)
In XML, to reference a color resource you use _______
@color/resource_name
In XML, to reference a string resource you use _______
@string/resource_name
Kotlin was released in ____ by JetBrains.
2016
Kotlin is fully interoperable with _____.
Java
Kotlin is cross-platform and works on _____.
Windows, macOS, Linux, Raspberry Pi
Kotlin is concise, safe, and _____.
expressive
Kotlin is easy to learn if you already know _____.
Java
Kotlin is free and _____.
open-source
In Kotlin, the keyword used to define a function is _____.
fun
In Kotlin, the entry point of a program is the _____ function.
main()
In Kotlin, semicolons (;) are _____.
optional
The symbol for a single-line comment in Kotlin is _____.
//
The symbol for a multi-line comment in Kotlin is _____.
/* ... */
In Kotlin, the keyword for an immutable variable is _____.
val
In Kotlin, the keyword for a mutable variable is _____.
var
Kotlin supports _____.
type inference
The operator that allows null values in Kotlin is _____.
?
The keyword used for late initialization in Kotlin is _____.
lateinit
The expression used as a switch equivalent in Kotlin is _____.
when
The Kotlin loop that iterates from 1 to 5 is written as _____.
for (i in 1..5)
The Kotlin loop that executes while a condition is true is _____.
while