Scala Flashcards

1
Q

Scala was designed to connect two programming paradigms, which were ANSWER.

A

object-oriented and functional

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

Another design goal for Scala was to have its programs easily interoperate with those written in ANSWER.

A

Java

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

Scala is ANSWER typed.

A

statically

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

Scala uses few type declarations because its compiler does ANSWER.

A

type inferencing

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

The main concurrency method used in Scala is ANSWER.

A

actors

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

In Scala, to indicate that a variable is immutable, you introduce it with the ANSWER keyword.

A

val

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

In Scala, to indicate that a variable is mutable, you introduce it with the ANSWER keyword.

A

var

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

In Scala, if I want to redefine a method that is defined in my parent class, I indicate this by using the keyword ANSWER.

A

override

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

The Scala feature closest to a Ruby mixin is the ANSWER.

A

trait

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

In Scala, the type that every type is a subtype of is called ANSWER.

A

Any

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

In Scala, the type that is a subtype of every type is called ANSWER.

A

Nothing

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

Many programming languages represent internal constants for types like strings, floats, and integers. Scala has the unusual distinction of having an internal constant representation for the type ANSWER, which is normally viewed as a format external to a program.

A

XML

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

The ! in Scala is used to ANSWER.

A

Send a message to an actor

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

In the chapter on Scala, we get the following interesting quote: ANSWER is the most important thing you can do to improve code design for concurrency.

A

Immutability

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