FUNCTIONAL PROGRAMMING WITH SCHEME

FUNCTIONAL PROGRAMMING WITH SCHEME

University

10 Qs

quiz-placeholder

Similar activities

HW5 Chapter 5 - PLC

HW5 Chapter 5 - PLC

University

10 Qs

Advanced Topics in Software Engineering (Part 1)

Advanced Topics in Software Engineering (Part 1)

University

13 Qs

ProgrammingParadigm&Translator

ProgrammingParadigm&Translator

University

10 Qs

Skill Test Class VI

Skill Test Class VI

6th Grade - University

10 Qs

Lisp & Scheme

Lisp & Scheme

University

11 Qs

CS8494-SE-IAT1-PART-B_8-3-2021

CS8494-SE-IAT1-PART-B_8-3-2021

University

15 Qs

Pretest Common Criteria

Pretest Common Criteria

University - Professional Development

9 Qs

Java Quiz 4

Java Quiz 4

University

15 Qs

FUNCTIONAL PROGRAMMING WITH SCHEME

FUNCTIONAL PROGRAMMING WITH SCHEME

Assessment

Quiz

Computers

University

Hard

Created by

'Aisyah Sa'dan

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is CORRECT?

(eq? 'x 'xx) return #T

(cdr (car'((T E A M) A ) ) ) returns E A M A

(null? '()) returns #T

(list (> 23 22) ( < 11 11)) returns (#error)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statement is FALSE about functional programming?

Mathematic calculus is functional programming basic

Function is defined to solve mathematical problem

Functional programming relies on recursion to perform loops or iterative operations

Selection control structures are available in functional programming

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the following Scheme expressions, which of the below statements is FALSE?

(car '((a b) c d e f)) returns (a b)

(cdr '(c d e)) returns (d e)

(cons '(a b c) '(d e f)) returns ((a b c) d e f)

(car (cdr '(a (b) c d e f))) returns b

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Functional programming applies __________________

normal-order evaluation.

eager evaluation.

lazy evaluation.

strict evaluation.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

_________ was designed as a programming language and all computation in it is accomplished by applying functions to arguments.

Prolog

Pascal

Scheme

ALGOL

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value returned by the following function call? (length '(w h (f g h) km (x y)))

8

5

4

3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the following Scheme function, what is the value returned by the following function call (func1 2 10)?

(define (func1 m n) (+(expt m 3)(* m n)))

12

21

18

28

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?