Uploaded by aliyugarbaabubakar84

quiz1

advertisement
[1] A Try Catch Block Should Not Be Followed By Either A Catch Block Or A Finally Block.
True
False
[2] The Values And Keys Must Be Of The Same Pair In Order To Be Efficiently Retrieved Using The Mutable Map.
True
False
[3] The Following Ways Are Used To Create A Variable In Kotlin Except?
Using the keyword dty
Using the keyword Var
Using the keyword Val
[4] Which Of The Following Statements Are Not True?
A data class is a data container to other classes
An abstract class is used to create objects
All class have the same properties and attributes
A sealed class restricts users from inheriting the class
[5] The ---------- Operator Allows You To Change Values On A Binary Level. Drag The Answer From The Word Bank To The Text Box.
Unary
Bitwise
Arithmetic
Relational
[6] Which Of The Following Is An Advantage Of A Function In A Program? Select The Correct Answer From The List Provided.
Check for some certain conditions in a program
Helps detect errors in a code
Evaluate a single block of a code
Helps organize the code better
[7] A ----------- Daatype Is Often Enclosed In A Double Quotation Mark. Drag The Answer From The Word Bank To The Text Box.
Array
Character
integer
String
[8] The Setup Procedures For Kotlin Are The Same For A Windows Machine, Mac, And Linux Operating System.
False
True
[9] Which Of The Following Statement About List Is True?
A list tracks conditions inside if expression
Extra actions can be added to a mutable list
A mutable list has a fixed size
An immutable list has a fixed size
[10] The While Loop Is A Part Of The Code That Keeps Running Forever As The Terminating Condition Is Never Met.
True
False
[11] Which Of The Following Statement Is True About Inheritance In Kotlin Programming?
It is a data container for other classes
It is by default static
It is a type of visibility modifiers
It allows the creation of a new class from an old one
[12] The ---------- Block Is Always Called Regardless Of Whether Or Not An Exception Is Called.
Multiple catch
Catch
Finally
Try catch
[13] Which Of These Is The Correct Command For Setting The MaxSpeed To 20? Select The Correct Answer From The List Provided.
Var maxSpeed: int = 20;
Val maxSpeed; int = 20:
Val current speed: Int = 20
Var maxSpeed: byte = 20
[14] A Space In Kotlin Programming Must Be Taken Into Consideration Because It Is As Relevant As Any Other Character.
True
False
[15] Which Of The Following Is A Nullable Variable?
Var epicvar: int?
Var epicvar: int+
Var epicvar: int=
Var epicvar: int
[16] A ----- Loop Can Be Used To Iterate A Particular Part Of A Program A Specific Number Of Times.
While
For
Do while
[17] How Many Types Of Visibility Modifiers Are There In Kotlin?
3
5
4
6
Download