NEW
Font size
WorksheetsKotlin
Total questions: 11
Worksheet time: 6mins
One of the operating systems that can not be used for Andriod application development is?
Windows
Mac
Linux
Contiki
In Andriod Studio, the virtual console type tab that is used as a command-line interface is called?
Memory
CPU
Logcat
ADB logs
On implementing the method of onStartCommand(), the service must be stopped after the task is completed using?
stopSelf()
stopService()
stopSelf() or stopService()
endService()
The space between the edge of a widget content can be customized using?
Margins
Height
Padding
Weight
In Andriod Studio the tab in which error is shown is called?
Logcat
ADB logs
CPU
Memory
What does this code do?
foo()()
Calls a function which is returned by the call foo
Calls "foo" asynchronously
Fails compilation
Creates a two-dimensional array
What is "to" in the example below?
A kotlin keyword to create a Pair(33,42)
An infix extension function creating a Pair(33,42)
A syntax error
A kotlin keyword to create a range from 33 to 42
Which is true for the following simple class declaration?
It has a private property "name"
It is package-private
It can be extended by other classes
It is public
What does the following code print?
[1,2,3,4]
Nothing, there is a compile error
True
Unit
What is the difference between A and B?
"a" is volatile as in Java
"b" is final and cannot be changed
"b" can never become null
"a" is final and cannot be changed
What is the output of the following code?
[1,2,3,4]
It does not compile, as "listof" is not known
It does not compile as "list" has no "add" method
[5,6,7]
