Trabalho de LP 3º Período
Quiz yourself by thinking what should be in
each of the black spaces below before clicking
on it to display the answer.
Help!
|
|
|
||||||
---|---|---|---|---|---|---|---|---|
Permite Inferência de Tipos | Quando informado dois tipos dois ou mais tipos diferentes scala opta pelo tipo mais abrangente. | var list = list (1,2,3,4,5.0)
🗑
|
||||||
Linguagem Orientada a Objeto | Scala é uma linguagem puramente orientada a objeto, ou seja todo valor é um objeto. | object OlaMundo extends Application {
println("Olá, Mundo!")
}
object OlaMundo extends Application {
println("Olá, Mundo!")
}
🗑
|
||||||
Paradigma Funcional | Scala também suposta o paradigma funcional no sentido de cada função ser um valor. | def whileLoop(condition: => Boolean)(command: => Unit) {
if (condition) {
command; whileLoop(condition)(command)
} else ()
}
🗑
|
||||||
Loop em Scala | Método de Loop para a Resolução das Funções. | def gcdLoop(x: Long, y: Long): Long = {
var a = x
var b = y
while (a != 0) {
val temp = a
a = b % a
b = temp
}
b
}
🗑
|
||||||
Estaticamente Tipada | Uma vez definido o objeto ele transforma-se imutável. | int num = 1
🗑
|
Review the information in the table. When you are ready to quiz yourself you can hide individual columns or the entire table. Then you can click on the empty cells to reveal the answer. Try to recall what will be displayed before clicking the empty cell.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.
Normal Size Small Size show me how
Normal Size Small Size show me how
Created by:
Aline_Italo_karem_Diogo
Popular Computers sets