Learn: Android & Kotlin Modules 1-5 Exam Questions

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/147

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 10:44 AM on 10/9/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

148 Terms

1
New cards

Which class contains resource IDs for resources in the res/ directory? A. R B. res C. xml D. ID

A. R

2
New cards

Given MyApp, which reference accesses it in XML? A. @string/myapp B. @+id/myapp C. R.id.myapp D. R.string.myapp

A. @string/myapp

3
New cards

Which function creates an array in Kotlin? A. new array() B. [] C. arrayOf() D. array()

C. arrayOf()

4
New cards

What does println(5 > 3 && 5 < 10) print? A. undefined B. false C. true D. null

C. true

5
New cards

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()

6
New cards

In fun myFunction(fname: String), what is fname? A. parameter B. override C. range D. inherit

A. parameter

7
New cards

Kotlin statements must end with a semicolon. A. True B. False

B. False

8
New cards

Which starts a single-line comment in Kotlin? A. % B. // C. # D. --

B. //

9
New cards

Which prints Hello Gwapo in Kotlin? A. cout<

D. println("Hello Gwapo")

10
New cards

Can a Kotlin class inherit properties and functions from another class if inheritance is enabled? A. True B. False

A. True

11
New cards

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

12
New cards

Who originally developed Android before Google acquired it? A. JetBrains B. Android Inc. C. Apple D. Oracle

B. Android Inc.

13
New cards

When did Google acquire Android Inc.? A. 2005 B. 2008 C. 2011 D. 2016

A. 2005

14
New cards

Which phone carried the first commercial Android release? A. Nexus S B. HTC Dream C. Pixel 1 D. Galaxy S

B. HTC Dream

15
New cards

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

16
New cards

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

17
New cards

Which version brought support for larger screen sizes in the slides? A. Donut B. Froyo C. Pie D. Oreo

A. Donut

18
New cards

Which version introduced live wallpaper in the slides? A. Eclair B. Honeycomb C. Lollipop D. Android 11

A. Eclair

19
New cards

Which version is associated with Wi-Fi hotspot support? A. Froyo B. Cupcake C. Pie D. Android 14

A. Froyo

20
New cards

Which release is associated with the Nexus S and improved copy and paste? A. Gingerbread B. Donut C. Oreo D. Android 13

A. Gingerbread

21
New cards

Which Android version family focused on tablets and a revised 3D UI? A. Honeycomb B. Eclair C. Marshmallow D. Android 10

A. Honeycomb

22
New cards

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

23
New cards

Which version family introduced Google Now in the slides? A. Jelly Bean B. Cupcake C. Nougat D. Oreo

A. Jelly Bean

24
New cards

Which release is associated with the voice trigger OK Google? A. KitKat B. Eclair C. Gingerbread D. Android 12

A. KitKat

25
New cards

Material Design and ART runtime support are associated with which release? A. Lollipop B. Honeycomb C. Pie D. Android 10

A. Lollipop

26
New cards

Which release introduced the runtime permission model and fingerprint authentication in the slides? A. Marshmallow B. Cupcake C. Froyo D. Android 16

A. Marshmallow

27
New cards

Split-screen and Data Saver are associated with which version? A. Nougat B. Oreo C. Pie D. Android 12

A. Nougat

28
New cards

Picture-in-picture and adaptive icons are associated with which release? A. Oreo B. Eclair C. Jelly Bean D. Android 10

A. Oreo

29
New cards

Adaptive Battery and Adaptive Brightness are associated with which version? A. Pie B. KitKat C. Froyo D. Android 11

A. Pie

30
New cards

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

31
New cards

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

32
New cards

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

33
New cards

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

34
New cards

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

35
New cards

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

36
New cards

What internal codename does the slide give Android 16? A. Baklava B. Tiramisu C. Snow Cone D. Upside Down Cake

A. Baklava

37
New cards

Which architecture layer forms the foundation of Android? A. Linux kernel B. Applications C. UI layout D. Manifest

A. Linux kernel

38
New cards

Which layer exposes system services to app developers? A. Application framework B. Linux kernel C. App icon D. XML values

A. Application framework

39
New cards

Which layer contains C/C++ platform functionality in the module stack? A. Platform libraries B. Applications C. Activities D. Menus

A. Platform libraries

40
New cards

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

41
New cards

What are the five architecture layers shown, from top to bottom?

Applications → Android Framework → Android Runtime → Platform Libraries → Linux Kernel

42
New cards

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

43
New cards

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

44
New cards

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

45
New cards

Which project template does the module choose? A. Empty Activity B. No Activity C. Wear OS D. Basic Service

A. Empty Activity

46
New cards

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

47
New cards

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

48
New cards

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

49
New cards

Which Android Studio area is where you edit source files? A. Editor window B. Status bar C. Toolbar D. Device bezel

A. Editor window

50
New cards

Which area offers Run and Android tool actions? A. Toolbar B. Status bar C. Editor gutter D. Layout file

A. Toolbar

51
New cards

Which area gives a compact way to move through project files? A. Navigation bar B. Status bar C. Emulator D. Manifest

A. Navigation bar

52
New cards

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

53
New cards

Where do project warnings and IDE status appear? A. Status bar B. Strings XML C. Manifest D. Device screen

A. Status bar

54
New cards

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

55
New cards

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

56
New cards

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

57
New cards

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

58
New cards

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

59
New cards

Who created Kotlin according to Module 3? A. JetBrains B. Apple C. Microsoft D. Android Inc.

A. JetBrains

60
New cards

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

61
New cards

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

62
New cards

Which function is the entry point of a simple Kotlin program? A. main() B. println() C. init() D. when()

A. main()

63
New cards

Which keyword declares a function? A. fun B. func C. def D. method

A. fun

64
New cards

Which keyword declares a read-only variable reference? A. val B. var C. let D. constvar

A. val

65
New cards

Which keyword allows reassignment of a variable? A. var B. val C. fun D. class

A. var

66
New cards

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

67
New cards

Which syntax makes a block comment? A. /* comment */ B. // comment // C. # comment D.

A. /* comment */

68
New cards

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

69
New cards

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

70
New cards

What does || mean in a Boolean condition?

A. At least one condition is true

71
New cards

What does !true evaluate to? A. false B. true C. null D. 1

A. false

72
New cards

What is the output of println(4 4)? A. true B. false C. 4 D. null

A. true

73
New cards

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

74
New cards

Which Kotlin construct selects among several branches? A. when B. import C. init D. override

A. when

75
New cards

Which loop tests its condition before executing its body? A. while B. do-while C. init D. class

A. while

76
New cards

Which loop runs its body at least once? A. do-while B. while C. for over empty array D. none

A. do-while

77
New cards

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

78
New cards

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)

79
New cards

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

80
New cards

Which keyword declares a Kotlin class? A. class B. objectnew C. structclass D. typeclass

A. class

81
New cards

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

82
New cards

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)

83
New cards

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

84
New cards

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

85
New cards

Which keyword introduces a secondary constructor? A. constructor B. secondary C. create D. new

A. constructor

86
New cards

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

87
New cards

Which keyword marks a subclass method that replaces an open parent method? A. override B. replace C. extend D. superfun

A. override

88
New cards

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

89
New cards

Which type can hold null? A. String? B. String C. Int only D. val

A. String?

90
New cards

Which operator accesses a nullable value only when it is non-null? A. ?. B. !! C. :: D. ..

A. ?.

91
New cards

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

92
New cards

What is a Kotlin extension function?

A function callable on a type without changing its class definition

93
New cards

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

94
New cards

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

95
New cards

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

96
New cards

Which extension does a converted Kotlin source file use? A. .kt B. .java C. .xml D. .kotlinapp

A. .kt

97
New cards

Can Java and Kotlin files coexist in an Android Studio project? A. Yes B. No

A. Yes

98
New cards

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

99
New cards

Which file declares Android application components? A. AndroidManifest.xml B. colors.xml C. activity_main.xml D. arrays.xml

A. AndroidManifest.xml

100
New cards

What are the four primary Android app components?

Activities, services, broadcast receivers, and content providers