
Functional Programming 1
Authored by O Hawkridge
Computers
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a programming paradigm?
A pattern or model for how to program
A type of procedure or function
A programming language with immutable data structures
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In which programming paradigm are programs constructed by applying and composing functions?
Procedural
Object Oriented
Declarative
Functional
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the head of this list: myList = [2, 3, 67, 89, 4]
2
3, 67, 89, 4
2, 3, 67
67, 89, 4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Evaluate
myList = [2, 3, 67, 89, 4]
length myList
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What are two key features of functional programming? (PICK 2)
Executes line by line
Immutability
Lists
Statelessness
No ability to add comments
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these languages follows the functional paradigm most strongly?
Python
Haskell
Java
C++
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Evaluate
fruits = ["Apple", "Honeydew", "Watermelon", "Kiwi", "Pear"]
tail (tail (fruits))
["Kiki", "Pear"]
"Watermelon", "Kiwi", "Pear"
"Honeydew", "Watermelon", "Kiwi", "Pear"
["Watermelon", "Kiwi", "Pear"]
Answer explanation
The tail function always returns a list (square brackets).
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Tarkie Seminar for Disers
Quiz
•
9th - 12th Grade
10 questions
python-BTxâu
Quiz
•
9th - 12th Grade
15 questions
Herramientas de Google
Quiz
•
12th Grade - University
14 questions
TRENDS IN ICT
Quiz
•
12th Grade
10 questions
Baze de date-Design
Quiz
•
12th Grade
9 questions
Los periféricos del computador
Quiz
•
1st Grade - Professio...
10 questions
Word basics
Quiz
•
8th - 12th Grade
10 questions
Aspek Legal TIK
Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade