Programming in Android (Kotlin) (1)

A vibrant and modern graphic representing Android development, showcasing code snippets, the Kotlin logo, and UI elements like buttons and text fields against a tech-inspired background.

Test Your Kotlin Knowledge in Android

Welcome to the "Programming in Android (Kotlin)" quiz! This engaging quiz challenges your understanding of string manipulation and UI elements in Kotlin for Android development. Whether you are a newbie trying to grasp the basics or a seasoned developer refreshing your knowledge, this quiz is made for you!

What to expect:

  • 15 well-crafted questions
  • Answers based on practical scenarios
  • Immediate feedback on your performance
17 Questions4 MinutesCreated by CodingNinja47
Which of these is a string?
R.id.str
""
'3.14'
"6.28"
"str"
"str
Where can I find design related code (frontend)?
Any .xml under /res/layout folder
MainActivity.kt
SecondActivity.kt
Activity_main.xml
Which of the following is a right way to initialize a string variable?
Var mojText:String
Vae mojText = "mojString!"
Var mojText = "mojString!"
Var str = ""
Which of the following is a right way to declare and initialize a constant string variable?
Val mojText = "mojString!"
Var mojText = "mojString!"
Val mojText = mojString!
Var mojText = mojString!
How do we call an element on which can I click and invoke some action?
Button
Buton
TextView
EditView
Which function retrieves an element with based on its ID?
FindViewByIdentification()
FindViewById()
FindViewByI()
FindElementByI()
How can we log a variable named myStr?
Log.d("myString", myStr)
Log.d("myStr", "myStr")
Log.d("myStr", myStr)
Log.log("myStr", "myStr")
With which function can we print out a value of a string to standard output?
Println()
Printline()
Print()
Print
How do we call an element which can display a string?
Button
TextViews
TextView
ViewText
Which of the following is a right way to declare and initialize a non-constant string variable?
Var mojText = "mojString!"
Val mojText = "mojString!"
Val mojText = "mojText!"
Var mojText + "mojString!"
How can I set a text (display text) to an element?
Element.setText(myText!)
Element.setText("myText!")
Element.setTxt("myText!")
Element.setText("")
With which function can I convert a number to a string?
ToStr()
ToString()
ToInt()
ToInteger()
Which of the following is a right way to declare a string variable?
Var mojText
Vae mojText = "mojString!"
Val mojText:String
Var mojText::Str
Where can I find base of a code of an application (backend)?
Basically any .kt file
MainActivity.kt
Only .xml files
Activity_main.xml
How can I generate a random number from an interval <20, 200> and convert it to a string?
(20..200).random().toString()
(20..200).random()
(10..200).random().toStr
(10..200).random().toString()
{"name":"Programming in Android (Kotlin) (1)", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Welcome to the \"Programming in Android (Kotlin)\" quiz! This engaging quiz challenges your understanding of string manipulation and UI elements in Kotlin for Android development. Whether you are a newbie trying to grasp the basics or a seasoned developer refreshing your knowledge, this quiz is made for you! What to expect: 15 well-crafted questions Answers based on practical scenarios Immediate feedback on your performance","img":"https://cdn.poll-maker.com/104-5106346/img-vxygqnr6j6qxy6sh4ie1h850.jpg"}
Powered by: Quiz Maker