Clojure Basic Programming Test

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Cripstwick
C
Cripstwick
Community Contributor
Quizzes Created: 635 | Total Attempts: 840,637
| Attempts: 838 | Questions: 10
Please wait...
Question 1 / 10
0 %
0/100
Score 0/100
1. How can you declare a variable in Clojure? 

Explanation

In Clojure, a variable can be declared using the syntax (def var- name var- value). This statement defines a new variable with the specified name and assigns it the given value. The "def" keyword is used to declare a variable in Clojure. The variable name and value are enclosed in parentheses, with the name followed by the value.

Submit
Please wait...
About This Quiz
Clojure Basic Programming Test - Quiz

Emphasized on functional programming, Clojure is a programming language that treats code as data. If you're starting to develop an interest, beginning to learn, or just want to... see moreknow how it works, take this basic programming test. see less

2. Clojure is based on which programming language?

Explanation

Clojure is based on Lisp. Lisp is a programming language that was developed in the late 1950s and is known for its unique syntax and powerful macro system. Clojure, created by Rich Hickey in 2007, is a modern dialect of Lisp that runs on the Java Virtual Machine (JVM). It leverages the strengths of Lisp and provides seamless integration with Java, making it a popular choice for building scalable and concurrent applications.

Submit
3. Which of these is not a Clojure variable? 

Explanation

not-available-via-ai

Submit
4. Who designed Clojure? 

Explanation

Rich Hickey is the correct answer because he is the creator and designer of the programming language Clojure. He developed Clojure with the goal of combining the benefits of functional programming with the practicality and efficiency of a dynamic language. Rich Hickey's expertise and vision in programming languages led to the creation of Clojure, which has gained popularity for its simplicity, concurrency features, and seamless integration with existing Java code.

Submit
5. Which of these platforms is not used to run Clojure? 

Explanation

The correct answer is HyperText Markup Language. HTML is not a platform used to run Clojure. Clojure is primarily run on the Java Virtual Machine (JVM) and can also be run on the Common Language Runtime (CLR) and JavaScript platforms. HTML, on the other hand, is a markup language used for creating web pages and does not provide a runtime environment for running programming languages like Clojure.

Submit
6. What is the stable version of Clojure? 

Explanation

The stable version of Clojure is 1.8.

Submit
7. How many types of Clojure maps exist?

Explanation

Clojure maps have two types: hash maps and sorted maps. Hash maps are the most commonly used type and store key-value pairs in an unordered manner. Sorted maps, on the other hand, store key-value pairs in a sorted order based on the keys. Therefore, the correct answer is 2.

Submit
8. Which of the following does Clojure use?

Explanation

Clojure is a programming language that uses positive integers. This means that it supports the use of whole numbers that are greater than zero. Positive integers are commonly used in programming for various purposes such as counting, indexing, and performing mathematical operations. Clojure's use of positive integers allows developers to manipulate and work with numerical data in their programs.

Submit
9. Which of these is not a file extension for Clojure? 

Explanation



"ens" is not a recognized file extension for Clojure. Clojure commonly uses file extensions like ".clj" for Clojure source files, ".cljs" for ClojureScript source files, and ".edn" for Extensible Data Notation files. These extensions correspond to the respective types of code and data files used in Clojure development.
Submit
10. When was the first stable Clojure version released?

Explanation

The first stable Clojure version was released in 2009.

Submit
View My Results

Quiz Review Timeline (Updated): Feb 19, 2024 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Feb 19, 2024
    Quiz Edited by
    ProProfs Editorial Team
  • Mar 29, 2018
    Quiz Created by
    Cripstwick
Cancel
  • All
    All (10)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
How can you declare a variable in Clojure? 
Clojure is based on which programming language?
Which of these is not a Clojure variable? 
Who designed Clojure? 
Which of these platforms is not used to run Clojure? 
What is the stable version of Clojure? 
How many types of Clojure maps exist?
Which of the following does Clojure use?
Which of these is not a file extension for Clojure? 
When was the first stable Clojure version released?
Alert!

Advertisement