---
# System prepended metadata

title: KIT Batch 7 - SMART PHONE APP DEVELOPMENT Assignment on Control structures

---

# KIT Batch 7 - SMART PHONE APP DEVELOPMENT Assignment on Control structures

`Author: Motone Adachi`

> Mobile Application Assignment:

## 1. Write 5 points about procedure-oriented programming and mention any 3 Procedure Oriented Programming languages

### 5 points

1. Module
2. Function
3. As described above, the procedural programming language has a mechanism for reusing code.
4. Write one instruction at a time.
5. Procedural programming languages include pure procedural programming languages and procedural programming languages with object-oriented elements.

### Languages
1. C
2. BASIC
3. PL/I

## 2. Write 5 points about Object-oriented programming and mention any 3 Object-Oriented Programming languages

### 5 points

1. Class
2. Object
3. Instance
4. Inheritance
5. Abstraction

### Languages

1. Java
2. Object-C
3. Crystal

## 3. Write 5 points about Functional programming and mention any 3 Functional Programming languages

### 5 points

1. Easy to write test code.
2. Stable.
3. The standard element is Function.
4. Suitable for parallel processing. 🍛
5. Mathematical.

### Languages

1. Elixir
2. Lisp
3. Haskell

## 4. Compare and write any 5 differences between Object-Oriented Programming language

1. Java ( static type, JVM )
2. Ruby ( dynamic type, from Japan )
3. Scala ( including element of functional programming )
4. JavaScript ( can’t create private elements in class... )
5. TypeScript ( compiling is possible even if the code has some trouble... )

## 5. Write the syntax of the main() function in Kotlin.

```kotlin=
fun main(args: Array<String>) {
    println("Hello, world!")
}
```

## 6. Define variables and constants and write the syntax to create variables and constants in the Kotlin program.

```kotlin=
fun main(args: Array<String>) {
    var foo = "Hello"
    val bar = "World"
}
```

## 7. Define Arrays and write the syntax to create arrays in Kotlin.

```kotlin=
fun main(args: Array<String>) {
    var numList = arrayOf(1, 2, 3, 4, 5)
    var emptyNumArr: Array<Int?> = arrayOfNulls(5)
    var asc = Array(5, { i -> (i * i).toString() })
}
```

Research and write the abstract on the following topics (Write in points)

1. History of Kotlin
    + July 20, 2011 Kotlin was announced by JetBrains, Russia.
    + 14 February 2012 Kotlin was open sourced under the Apache license version 2.0 
3. What are the places Kotlin Programming language is used?
    + It is mainly used for developing Android applications, web systems, and desktop applications.
4. What is your opinion in the future of the Kotlin language?
    + Kotlin / Native has been released. I expect further success. 
5. How JVM function?
    + JVMs exist on various platforms. Bytecode is generated by the compiler from code such as Java or Kotlin. The JVM does this.
