
Functional Programming Quiz 2
Authored by W Deng
Computers
12th Grade
Used 2+ 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
Which of the following languages specifically use a functional programming paradigm?
Python
Haskell
Java 8
Delphi
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a type within the typeclass Num?
Char
Bool
Double
String
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the following is the function declaration for SumOfSq? The colour codes represent the arguments.
SqOfDiff : : Integer -> Integer -> Integer
SqOfDiff : : Integer -> Integer -> Integer
SqOfDiff : : Integer -> Integer -> Integer
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This question is based on function isEqual, that finds whether two numbers are equal or not. What is the function declaration?
isEqual : : Bool ->Int -> Int
isEqual : : Int -> Bool
isEqual : : Int -> Int -> Bool
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This question is based on function isEqual, that finds whether two numbers are equal or not. What is the function code?
isEqual a b = a == b
isEqual a b == a = b
isEqual a b = a = b
isEqual a ==b = a b
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
This question is based on functions f(x) = x-1 and g(x) = x^2-1.
What is g o f?
x^2
x^2 - 2x
x^2-x
x^2+2x
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
This question is based on functions f(x) = x-1 and g(x) = x2-1.
What is g o f (3)?
1
3
5
9
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
15 questions
Problem Solving : Design Solution
Quiz
•
12th Grade
17 questions
Security and Ethics
Quiz
•
9th - 12th Grade
10 questions
IT Quiz
Quiz
•
11th - 12th Grade
16 questions
OCR Sys Arch J277
Quiz
•
10th - 12th Grade
13 questions
INTERNET CONNECTION
Quiz
•
12th Grade
11 questions
Email of request
Quiz
•
12th Grade - Professi...
11 questions
Unit 2, 1.3 Types of information access and storage devices
Quiz
•
12th Grade
13 questions
ICT and Retail Industry
Quiz
•
8th - 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