1/147
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
Which class contains resource IDs for resources in the res/ directory? A. R B. res C. xml D. ID
A. R
Given
A. @string/myapp
Which function creates an array in Kotlin? A. new array() B. [] C. arrayOf() D. array()
C. arrayOf()
What does println(5 > 3 && 5 < 10) print? A. undefined B. false C. true D. null
C. true
How do you create an instance of MyClass named myObj in Kotlin? A. myObj = new MyClass() B. MyClass.new myObj C. val myObj = MyClass() D. myObj : MyClass()
C. val myObj = MyClass()
In fun myFunction(fname: String), what is fname? A. parameter B. override C. range D. inherit
A. parameter
Kotlin statements must end with a semicolon. A. True B. False
B. False
Which starts a single-line comment in Kotlin? A. % B. // C. # D. --
B. //
Which prints Hello Gwapo in Kotlin? A. cout<
D. println("Hello Gwapo")
Can a Kotlin class inherit properties and functions from another class if inheritance is enabled? A. True B. False
A. True
What is Android? A. A Linux-based mobile OS B. A word processor C. A database D. A hardware processor
A. A Linux-based mobile OS
Who originally developed Android before Google acquired it? A. JetBrains B. Android Inc. C. Apple D. Oracle
B. Android Inc.
When did Google acquire Android Inc.? A. 2005 B. 2008 C. 2011 D. 2016
A. 2005
Which phone carried the first commercial Android release? A. Nexus S B. HTC Dream C. Pixel 1 D. Galaxy S
B. HTC Dream
Which early Android versions had no dessert codenames? A. 1.0 and 1.1 B. 1.5 and 1.6 C. 2.0 and 2.1 D. 4.0 and 4.1
A. 1.0 and 1.1
Which version first received an official dessert codename? A. 1.0 B. 1.1 C. 1.5 Cupcake D. 1.6 Donut
C. 1.5 Cupcake
Which version brought support for larger screen sizes in the slides? A. Donut B. Froyo C. Pie D. Oreo
A. Donut
Which version introduced live wallpaper in the slides? A. Eclair B. Honeycomb C. Lollipop D. Android 11
A. Eclair
Which version is associated with Wi-Fi hotspot support? A. Froyo B. Cupcake C. Pie D. Android 14
A. Froyo
Which release is associated with the Nexus S and improved copy and paste? A. Gingerbread B. Donut C. Oreo D. Android 13
A. Gingerbread
Which Android version family focused on tablets and a revised 3D UI? A. Honeycomb B. Eclair C. Marshmallow D. Android 10
A. Honeycomb
Face Unlock and Wi-Fi Direct are associated in the slides with which version? A. Ice Cream Sandwich B. Froyo C. Donut D. Android 11
A. Ice Cream Sandwich
Which version family introduced Google Now in the slides? A. Jelly Bean B. Cupcake C. Nougat D. Oreo
A. Jelly Bean
Which release is associated with the voice trigger OK Google? A. KitKat B. Eclair C. Gingerbread D. Android 12
A. KitKat
Material Design and ART runtime support are associated with which release? A. Lollipop B. Honeycomb C. Pie D. Android 10
A. Lollipop
Which release introduced the runtime permission model and fingerprint authentication in the slides? A. Marshmallow B. Cupcake C. Froyo D. Android 16
A. Marshmallow
Split-screen and Data Saver are associated with which version? A. Nougat B. Oreo C. Pie D. Android 12
A. Nougat
Picture-in-picture and adaptive icons are associated with which release? A. Oreo B. Eclair C. Jelly Bean D. Android 10
A. Oreo
Adaptive Battery and Adaptive Brightness are associated with which version? A. Pie B. KitKat C. Froyo D. Android 11
A. Pie
Which release introduced a system-wide dark theme in the slides? A. Android 10 B. Android 8 C. Android 6 D. Android 4
A. Android 10
Native screen recording and automatic permission revocation appear under which release? A. Android 11 B. Android 9 C. Android 7 D. Android 5
A. Android 11
Scrolling screenshots and one-handed mode appear under which release? A. Android 12 B. Android 10 C. Android 8 D. Android 6
A. Android 12
Expanded Material You themes and a QR scanner appear under which release? A. Android 13 B. Android 11 C. Android 9 D. Android 7
A. Android 13
Predictive back gestures and notification flashes appear under which release? A. Android 14 B. Android 12 C. Android 10 D. Android 8
A. Android 14
Partial screen sharing and sensitive notifications appear under which release? A. Android 15 B. Android 13 C. Android 11 D. Android 9
A. Android 15
What internal codename does the slide give Android 16? A. Baklava B. Tiramisu C. Snow Cone D. Upside Down Cake
A. Baklava
Which architecture layer forms the foundation of Android? A. Linux kernel B. Applications C. UI layout D. Manifest
A. Linux kernel
Which layer exposes system services to app developers? A. Application framework B. Linux kernel C. App icon D. XML values
A. Application framework
Which layer contains C/C++ platform functionality in the module stack? A. Platform libraries B. Applications C. Activities D. Menus
A. Platform libraries
Where are installed user-facing apps placed in the architecture stack? A. Applications layer B. Linux kernel C. Raw resources D. Runtime only
A. Applications layer
What are the five architecture layers shown, from top to bottom?
Applications → Android Framework → Android Runtime → Platform Libraries → Linux Kernel
What is the role of Android Runtime in the architecture? A. Execute app code B. Define icon colors only C. Store only photos D. Replace the Linux kernel
A. Execute app code
Which tools are listed as prerequisites in Module 2? A. JDK and Android Studio B. Excel and Git C. Only a web browser D. Python and Docker
A. JDK and Android Studio
Where do you start a project when another project is open? A. File > New > New Project B. Run > Restart C. Help > About D. View > Tool Windows
A. File > New > New Project
Which project template does the module choose? A. Empty Activity B. No Activity C. Wear OS D. Basic Service
A. Empty Activity
Which value identifies an app project by namespace in the configuration example? A. Package name B. Screen brightness C. Status bar D. Emulator size
A. Package name
What example app name appears in the project setup slides? A. My First App B. Hello Device C. My Browser D. Kotlin Studio
A. My First App
Which language choices are shown during project setup? A. Java and Kotlin B. C and PHP C. Swift and Ruby D. SQL and HTML
A. Java and Kotlin
Which Android Studio area is where you edit source files? A. Editor window B. Status bar C. Toolbar D. Device bezel
A. Editor window
Which area offers Run and Android tool actions? A. Toolbar B. Status bar C. Editor gutter D. Layout file
A. Toolbar
Which area gives a compact way to move through project files? A. Navigation bar B. Status bar C. Emulator D. Manifest
A. Navigation bar
Which interface element expands or collapses IDE tool windows? A. Tool window bar B. Keyboard layout C. App icon D. SDK level
A. Tool window bar
Where do project warnings and IDE status appear? A. Status bar B. Strings XML C. Manifest D. Device screen
A. Status bar
What can tool windows provide access to? A. Project management, search, and version control B. Only app colors C. Only device wallpaper D. Only Kotlin comments
A. Project management, search, and version control
Which two ways to run an Android app are covered? A. Physical device or emulator B. Browser or printer C. Spreadsheet or PDF D. Server or shell only
A. Physical device or emulator
Before running on a connected phone, what must be enabled? A. USB debugging via Developer options B. Airplane mode C. Screen recording D. Battery saver
A. USB debugging via Developer options
Where do you create an emulator device in the module? A. Device Manager B. Layout Editor C. Strings XML D. Manifest editor
A. Device Manager
When creating an emulator, which choices does the module identify? A. Device type/screen and Android SDK version B. Only the app icon C. Only the package name D. Only the JDK vendor
A. Device type/screen and Android SDK version
Who created Kotlin according to Module 3? A. JetBrains B. Apple C. Microsoft D. Android Inc.
A. JetBrains
Which is a listed use of Kotlin? A. Android and server-side applications B. Only image files C. Only hardware design D. Only PDF layout
A. Android and server-side applications
Why can Kotlin be used in an existing Java project? A. Java interoperability B. It deletes Java C. It requires a different OS D. It is a markup language
A. Java interoperability
Which function is the entry point of a simple Kotlin program? A. main() B. println() C. init() D. when()
A. main()
Which keyword declares a function? A. fun B. func C. def D. method
A. fun
Which keyword declares a read-only variable reference? A. val B. var C. let D. constvar
A. val
Which keyword allows reassignment of a variable? A. var B. val C. fun D. class
A. var
What is type inference? A. Inferring a variable type from its assigned value B. Making every value a string C. Removing all types D. Creating a class automatically
A. Inferring a variable type from its assigned value
Which syntax makes a block comment? A. /* comment */ B. // comment // C. # comment D.
A. /* comment */
What does println("Hi") do? A. Print Hi followed by a newline B. Read keyboard input C. Declare a function D. Create a file
A. Print Hi followed by a newline
What does && mean in a Boolean condition? A. Both conditions must be true B. At least one is true C. Reverse the result D. Assign a value
A. Both conditions must be true
What does || mean in a Boolean condition?
A. At least one condition is true
What does !true evaluate to? A. false B. true C. null D. 1
A. false
What is the output of println(4 4)? A. true B. false C. 4 D. null
A. true
What does an if/else expression select? A. A result based on a condition B. A superclass C. A resource folder D. An SDK version
A. A result based on a condition
Which Kotlin construct selects among several branches? A. when B. import C. init D. override
A. when
Which loop tests its condition before executing its body? A. while B. do-while C. init D. class
A. while
Which loop runs its body at least once? A. do-while B. while C. for over empty array D. none
A. do-while
What does for (i in 1..3) iterate over? A. 1, 2, 3 B. 1, 2 C. 0, 1, 2 D. 3 only
A. 1, 2, 3
How do you loop through an array called items? A. for (item in items) B. foreach item of items C. for item(items) D. loop items:
A. for (item in items)
What is a class in OOP? A. A blueprint for objects B. A PDF page C. A resource ID D. An emulator
A. A blueprint for objects
Which keyword declares a Kotlin class? A. class B. objectnew C. structclass D. typeclass
A. class
What is an object? A. An instance of a class B. An IDE status message C. A compiler version D. A package name
A. An instance of a class
Which Kotlin declaration has a primary constructor property? A. class Person(val name: String) B. new Person(name) C. class Person -> name D. Person.class(name)
A. class Person(val name: String)
When does an init block execute? A. During object initialization B. Only when a loop ends C. When the app is uninstalled D. Only after onDestroy
A. During object initialization
What does a default constructor argument allow? A. Omitting that argument when creating an object B. Disabling the class C. Changing val to var D. Skipping compilation
A. Omitting that argument when creating an object
Which keyword introduces a secondary constructor? A. constructor B. secondary C. create D. new
A. constructor
How does Kotlin mark a class inheritable by default? A. open class Base B. final class Base C. private class Base D. static class Base
A. open class Base
Which keyword marks a subclass method that replaces an open parent method? A. override B. replace C. extend D. superfun
A. override
What is Kotlin null safety intended to reduce? A. Unexpected null dereferences B. Emulator startup time C. Resource size D. Package length
A. Unexpected null dereferences
Which type can hold null? A. String? B. String C. Int only D. val
A. String?
Which operator accesses a nullable value only when it is non-null? A. ?. B. !! C. :: D. ..
A. ?.
What does the Elvis operator ?: usually provide? A. A fallback when the left side is null B. A new class C. An XML namespace D. A loop label
A. A fallback when the left side is null
What is a Kotlin extension function?
A function callable on a type without changing its class definition
What does $name do inside a Kotlin string template? A. Insert the value of name B. Create a variable named name C. Start a comment D. Access an XML resource
A. Insert the value of name
What are the two Java-to-Kotlin conversion workflows described?
Convert an entire Java file, or add a Kotlin file and paste Java code for conversion
Which command converts a whole Java file in the module? A. Convert Java File to Kotlin File B. Create Device C. Rebuild Project D. Extract Resource
A. Convert Java File to Kotlin File
Which extension does a converted Kotlin source file use? A. .kt B. .java C. .xml D. .kotlinapp
A. .kt
Can Java and Kotlin files coexist in an Android Studio project? A. Yes B. No
A. Yes
What project configuration files can change when Kotlin support is configured in the module? A. build.gradle files B. drawable PNG files C. device logs D. font files
A. build.gradle files
Which file declares Android application components? A. AndroidManifest.xml B. colors.xml C. activity_main.xml D. arrays.xml
A. AndroidManifest.xml
What are the four primary Android app components?
Activities, services, broadcast receivers, and content providers