Functional Programming Quiz 2

Functional Programming Quiz 2

12th Grade

13 Qs

quiz-placeholder

Similar activities

Hi am i you are you me

Hi am i you are you me

KG - 12th Grade

15 Qs

MS-Excel - STRING  Functions

MS-Excel - STRING Functions

7th - 12th Grade

15 Qs

Python Syntax

Python Syntax

9th - 12th Grade

15 Qs

Session 1:  Check for Understanding

Session 1: Check for Understanding

8th Grade - Professional Development

10 Qs

Ôn chữ l, p, h, k

Ôn chữ l, p, h, k

KG - Professional Development

15 Qs

Computer BTEC U1 quiz terms

Computer BTEC U1 quiz terms

12th Grade

14 Qs

Interesting Bird Facts

Interesting Bird Facts

KG - Professional Development

11 Qs

Technical Terms - Internet (A-Z) - IRC

Technical Terms - Internet (A-Z) - IRC

12th Grade

10 Qs

Functional Programming Quiz 2

Functional Programming Quiz 2

Assessment

Quiz

Computers

12th Grade

Medium

Created by

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

Media Image

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?