GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

In Kotlin, the following function call is valid fun calculat…

In Kotlin, the following function call is valid fun calculateTax(price: Double, rate: Double, includeLocal: Boolean ): Double { … } calculateTax(9.99, includeLocal = true, rate = 0.08)

Read Details

Which item calls this function correctly? fun reserveHotel(c…

Which item calls this function correctly? fun reserveHotel(city: String, nights: Int, breakfast: Boolean ): String { … }  

Read Details

This is an example of a Kotlin for-loop. for (i: Int = 0; i…

This is an example of a Kotlin for-loop. for (i: Int = 0; i < 10; i++) { println(i) }

Read Details

Android does not have a main() function.

Android does not have a main() function.

Read Details

Which of the following correctly creates a Text composable w…

Which of the following correctly creates a Text composable with a font size of 24, a padding of 24, and the text “Hello”?

Read Details

A developer at Pinnacle Software, whose domain is pinnacleso…

A developer at Pinnacle Software, whose domain is pinnaclesoft.com, is creating an Android app called “BudgetWise”. Based on the reverse domain name convention, which of the following would be the most appropriate package name?

Read Details

Which item below contains the correct annotations for a func…

Which item below contains the correct annotations for a function that allows the app to be previewed in Android Studio design pane?

Read Details

A developer is testing their Android app and notices that wh…

A developer is testing their Android app and notices that when they click a button in the Android Studio design pane, nothing happens. What is the most likely explanation?

Read Details

In the code below, what is the purpose of onCreate()? class…

In the code below, what is the purpose of onCreate()? class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContent { … } } }  

Read Details

A developer has written the following function in their Andr…

A developer has written the following function in their Android app. What must be added so that the Compose compiler recognizes this function’s purpose is to render a text element as part of the app’s UI? fun WelcomeBanner(username: String) { Text(text = “Welcome back, $username!”) }  

Read Details

Posts pagination

Newer posts 1 … 11 12 13 14 15 … 87,926 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top