Complete the code to define a function named 'square' that takes one argument.
(defun [1] (x) (* x x))The defun keyword defines a function. Here, the function name should be square to match the task.
Complete the code to prompt the user for a number and store it in variable 'num'.
(setq num ([1] "Enter a number: "))
print which only displays text.setq inside itself incorrectly.The getint function prompts the user to enter an integer number.
Fix the error in the code to correctly calculate the area of a circle with radius 'r'.
(setq area (* 3.14159 [1] [2]))
The radius variable is named r. It must be used twice to calculate area = π * r * r.
Fill both blanks to create a list of points with x and y coordinates.
(setq points (list (list [1] [2]) (list 3 4)))
The first point has coordinates (1, 2). So the blanks should be filled with 1 and 2.
Fill all three blanks to define a function that returns the sum of two numbers a and b.
(defun [1] ([2] [3]) (+ a b))
The function name is add. The parameters are a and b to match the sum expression.
