Programming Languages Flashcards
(31 cards)
What programming paradigm does Swift support?
Multiparadigm, Swift supports Object-oriented, functional, procedural, and protocol-oriented styles.
What is a key feature of Swift’s programming style?
Swift encourages code reuse without inheritance.
What functional tools does Swift provide?
Swift includes closures, first-class functions, map, and reduce.
Who designed Swift and for what purpose?
Swift was designed by Apple to run on their systems.
What paradigms does Scala support?
Scala is both object-oriented and functional.
What type of typing does Scala use?
Scala uses strong static typing.
What are common applications of Scala?
Scala is used for data processing, backend work, and machine learning.
What does the name Scala imply?
Scala is easily scalable, hence the name.
What does Scala compile to?
Scala compiles to bytecode for the JVM.
Is Scala compatible with Java?
Scala is not upwards compatible with Java (can run on Java given imports)
When are variable types known in Scala?
Variable types are known at compile time in Scala.
Why was Go created?
To improve software development compared to C++.
What programming paradigms does Go support?
Go is imperative and also supports object-oriented programming.
What does Go compile into?
Go compiles directly into machine code.
What is the syntax of Go similar to?
Go’s syntax is similar to JavaScript.
What is the purpose of Eiffel?
Eiffel is designed for building reliable and reusable software.
What programming concept does Eiffel utilize?
Eiffel uses design by contract.
What are the key components of design by contract in Eiffel?
Eiffel includes preconditions, postconditions, and invariants.
What is a fundamental principle of Eiffel?
In Eiffel, EVERYTHING is an object.
What type of typing does Eiffel use?
Eiffel uses static typing and compile-time error detection.
What is a key feature of Julia related to execution speed?
Fast execution via Just-In-Time compiling
What type of typing does Julia use?
Dynamic typing
Which programming languages does Julia’s syntax resemble?
Syntax similar to MATLAB/Python
What capabilities does Julia have for data science?
Mathematical capabilities and extensive data science libraries