Multiparadigm Programming Languages and Scala Flashcards

1
Q

what is polygot programming?

A

programming with different programming languages in a polygot environment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is the problem with polygot and how do we solve it?

A

different developers use different languages, making communication difficult.
we use a multiparadigm programming language to communicate in one language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Scala made up of?

A

imperative + functional + object oriented

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what are some of Scala’s properties?

A
  • parallelism
  • supports anonymous functions, high order functions, and pattern matching
  • statically typed
  • supports generic classes and polymorphic methods
  • extensible
  • compatible with Java
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

how does Scala implement Object Oriented Programming

A

every value is an object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are classes in Scala?

A

types and behaviours

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what are the benefits of Scala over Haskell?

A

> shorter code
fewer errors
more flexibility

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Describe the Scala object system

A
> class based
> single inheritance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Describe Scala functions

A

> 1st class
can be partially applied
can be higher order

How well did you know this?
1
Not at all
2
3
4
5
Perfectly