KOTLIN QUIZ DESCRIPTION

Which operating system is well used for kotlin? 

  • Windows 
     

  •  Apple 
     

  •  Linux 
     

  •  Oracle 

Which keyword used to create a mutable variable? 
 

  • var 
     

  •  val 
     

  • const 
     

  •  mutable 

What language does a database use? 

  • QSL
     

  • SPL 
     

  • LSL 
     

  •  SQL

What does AI mean? 

  • Artificial Intelligence 
     

  •  Artificial Interrogation 

Method overloading is used ... 

  • to inherit a function or method in a class 
     

  •  to change the logic of functions that are inherited 
     

  • to provide standard values for function parameters 
     

  • to make the same function name but with different parameters. 

Elvis operator keyword? 

  • ?:
     

  • ??
     

  •  :?
     

  •  ?.

Does Kotlin allow macros? 

  • Yes

  • No

A program. 
 

  • An Icon 
     

  • A set of instructions for your computer 
     

  •  A handbook 
     

  •  A blueprint

According to code convention, what format used for the function name? 
 

  • camelCase 
     

  • PascalCase 
     

  • snake_case 
     

  • kebab-case 

What is the default visibility modifier? 

  • public 
     

  •  internal 
     

  • private 
     

  •  protected 

Which is the right declaration to make a variable with the Character data 
type? 
 

  • val char = 'ABC' 
     

  • val char = "A" 
     

  •  val char = 'A' 
     

  •  val char = A 

From the following values, which is appropriate to make the property of 
the animal class ? 
 

  • eat 
     

  •  jump 
     

  • weight 
     

  •  sleep 

What is the most important benefits of using Kotlin? 

  • Kotlin language is easy to learn as its syntax is similar to Java. 
     

  •  It is an expressive language which makes code readable and understandable. 
     

  •  It is is a functional language and based on JVM. 
     

  • All are Correct 

What value is 10 until 12 
 

  • 10 11 12 
     

  • 10 11 
     

  •  11 12 
     

  •  All is wrong! 

what kinds of programming types does Kotlin support? 

  • OOPS 
     

  •  Procedural Programming 
     

  •  Both A & B 
     

  •  None of the Above 

In order the values or members of a class can be inherited from other 
classes, we need to provide a keyword….
 

  • public 
     

  •  extends 
     

  •  open 
     

  •  final 

What stores data and its info? 
 

  • databank 
     

  •  database 
     

  •  datastore 
     

  •  datakeeper 

Survey Insight Stack Overflow 2020: Kotlin best language developer. 
 

  • yes

  • No

  • Or

  • Both A and B

Which of the following is Use for reading contents of file to ByteArray? 

  • bufferedReader() 
     

  • readText() 
     

  •  readBytes() 
     

  •  readLines() 

Does Kotlin allow macros? 

  • Yes

  • No

What is the meaning of HTML? 
 

  • Hypertext Making Language 
     

  •  Hightext Markup Language 
     

  •  Hypertext Markup Language 
     

  • All of above 

Who is the creator of Kotlin? 
 

  • JetBrains 
     

  •  Google 
     

  •  Microsoft 
     

  •  None of the Above 

What platform are used as Android developer? 

  • Java 
     

  • Kotlin 
     

  •  PHP 
     

  •  Both A & B 

What is the use of data class in Kotlin? 

  • extract the basic data types 
     

  • delete the basic data types 
     

  • present the basic data types 
     

  • holds the basic data types 

What stores data and its info? 

  •  databank 
     

  •  database 
     

  • datastore 
     

  • datakeeper 

How many constructors are available in Kotlin? 

  • 2

  • 4

  • 6

  • 8

Kotlin was developed by? 

  •  IBM 
     

  • NetBeans 
     

  •  JetBrains 
     

  • Oracle 

Which function does not use a lambda receiver (this)? 
 

  • let 
     

  • run 
     

  •  with 
     

  • apply 

Does programming pay you good money? 

  • Yes, programming pays good money. 
     

  • No, people make more money by making burgers. 

Which is the correct data class? 

  • class DataUser(name : String, address : String) 
     

  •  data class DataUser(name : String, address : String) 
     

  • data class DataUser(val name : String, val address : String) 
     

  • open data class DataUser(val name : String, val address : String)