Intro to Clojure (L15) Flashcards
Clojure is designed as a modern dialect of what other language?
LISP
Clojure is implemented on top of what virtual machine?
The Java Virtual Machine.
Does Clojure have direct support for concurrency?
Yes.
Clojure expressions are written in parenthesis, and are also called?
Forms.
In Clojure, basic math operations use infix notation.
False, they use prefix notation (as all Clojure functions do).
Clojure forms may be void, in that they return nothing.
False, Clojure expressions always return something.
What is the name of Clojure’s command line interface, and what does it stand for?
REPL stands for READ-EVAL-PRINT-LOOP.
What character is used to comment in Clojure?
The semi colon (;).
What value is returned by Clojure’s print & println forms?
nil
What are Clojure’s 5 primitive types?
Integer, float, string, boolean, and nil.
Types are explicitly defined in Clojure.
False.
Are Clojure’s boolean literals written in capitalized form, or all lowercase?
All lowercase.
Are strings enclosed by single or double quotes in Clojure?
Double.
Labels associated to values using the “def” function can be reassigned later.
They can be, but aren’t meant to be changed.
Does the label, or the value come first following a call to “def”?
Label, then value.