Functional Programming Quiz

Quiz
•
Computers
•
12th Grade
•
Medium
Ralph Ellis
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main characteristic of the functional programming paradigm?
Functions are used as a way to construct algorithms
Variables can be reassigned freely
Programs are structured around objects and their methods
It requires strict sequencing of instructions
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of a declarative programming language?
Haskell
SQL
Python
Assembly
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In functional programming, what is meant by "no side effects"?
A function always returns multiple values
Functions can modify variables outside their scope
Functions always produce the same output for the same input
Functions depend on external states to compute results
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the definition of a first-class object in functional programming?
An object that is declared at the start of a program
An object that can be passed as an argument or returned from a function
An object that can only store numeric values
An object that is immutable
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is an example of a higher-order function?
A function that calculates the factorial of a number
A function that takes another function as an argument
A function that multiplies two numbers
A function that reverses a string
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the map function do in functional programming?
Filters elements of a list based on a condition
Applies a function to each element of a list and returns a new list
Combines all elements of a list into a single value
Splits a list into smaller sublists
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the filter function?
To apply a function to every element in a list
To create a subset of elements that meet a specific condition
To find the length of a list
To map elements from one list to another
Create a free account and access millions of resources
Similar Resources on Wayground
18 questions
Computer Science

Quiz
•
9th - 12th Grade
20 questions
Unit 5 Quiz - Loops & Lists (code.org)

Quiz
•
10th - 12th Grade
20 questions
AP CSP Unit 6

Quiz
•
10th - 12th Grade
15 questions
list in python

Quiz
•
10th - 12th Grade
20 questions
Advanced Excel

Quiz
•
KG - University
16 questions
Machine Learning

Quiz
•
5th Grade - Professio...
15 questions
Introduction to Programming

Quiz
•
12th Grade
20 questions
Exploring Software and Networks

Quiz
•
8th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade