Functional Programming Quiz 2

Quiz
•
Computers
•
12th Grade
•
Medium
W Deng
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Year 9 Programming Constructs

Quiz
•
1st - 12th Grade
15 questions
Databases

Quiz
•
9th - 12th Grade
10 questions
Quiz Tipe Data

Quiz
•
9th - 12th Grade
10 questions
Recursion in Java (AP Computer Science A)

Quiz
•
9th - 12th Grade
15 questions
Computer Science - Python

Quiz
•
9th - 12th Grade
10 questions
Python Input/Output

Quiz
•
9th - 12th Grade
10 questions
Pseudocode WHILE Loops

Quiz
•
10th - 12th Grade
15 questions
coding

Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Afterschool Activities & Sports

Quiz
•
6th - 8th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
15 questions
Cool Tool:Chromebook

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
20 questions
Bullying

Quiz
•
7th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade