Programming Languages Flashcards

(31 cards)

1
Q

What programming paradigm does Swift support?

A

Multiparadigm, Swift supports Object-oriented, functional, procedural, and protocol-oriented styles.

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

What is a key feature of Swift’s programming style?

A

Swift encourages code reuse without inheritance.

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

What functional tools does Swift provide?

A

Swift includes closures, first-class functions, map, and reduce.

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

Who designed Swift and for what purpose?

A

Swift was designed by Apple to run on their systems.

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

What paradigms does Scala support?

A

Scala is both object-oriented and functional.

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

What type of typing does Scala use?

A

Scala uses strong static typing.

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

What are common applications of Scala?

A

Scala is used for data processing, backend work, and machine learning.

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

What does the name Scala imply?

A

Scala is easily scalable, hence the name.

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

What does Scala compile to?

A

Scala compiles to bytecode for the JVM.

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

Is Scala compatible with Java?

A

Scala is not upwards compatible with Java (can run on Java given imports)

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

When are variable types known in Scala?

A

Variable types are known at compile time in Scala.

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

Why was Go created?

A

To improve software development compared to C++.

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

What programming paradigms does Go support?

A

Go is imperative and also supports object-oriented programming.

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

What does Go compile into?

A

Go compiles directly into machine code.

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

What is the syntax of Go similar to?

A

Go’s syntax is similar to JavaScript.

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

What is the purpose of Eiffel?

A

Eiffel is designed for building reliable and reusable software.

17
Q

What programming concept does Eiffel utilize?

A

Eiffel uses design by contract.

18
Q

What are the key components of design by contract in Eiffel?

A

Eiffel includes preconditions, postconditions, and invariants.

19
Q

What is a fundamental principle of Eiffel?

A

In Eiffel, EVERYTHING is an object.

20
Q

What type of typing does Eiffel use?

A

Eiffel uses static typing and compile-time error detection.

21
Q

What is a key feature of Julia related to execution speed?

A

Fast execution via Just-In-Time compiling

22
Q

What type of typing does Julia use?

A

Dynamic typing

23
Q

Which programming languages does Julia’s syntax resemble?

A

Syntax similar to MATLAB/Python

24
Q

What capabilities does Julia have for data science?

A

Mathematical capabilities and extensive data science libraries

25
What programming feature does Julia support?
Supports multiple dispatch
26
What is Rust primarily designed for?
Designed for embedded systems
27
How does Rust ensure memory safety?
Memory safety without garbage collection
28
What concepts are central to Rust's memory management?
Ownership, Borrowing, Lifetimes
29
What concurrency feature does Rust provide?
Concurrency and parallelism without the risk of data races
30
What was the design goal for Rust?
Designed for high performance
31
How can Rust interact with other programming languages?
Can interface directly with C code