FUNCTIONAL PROGRAMMING WITH SCHEME

FUNCTIONAL PROGRAMMING WITH SCHEME

University

10 Qs

quiz-placeholder

Similar activities

Node.js

Node.js

University

10 Qs

WEB DEVELOPMENT QUIZ 1

WEB DEVELOPMENT QUIZ 1

University

10 Qs

DESAINGRAFIS 4

DESAINGRAFIS 4

12th Grade - University

15 Qs

01 - Introdução Programação Estruturada Quiz

01 - Introdução Programação Estruturada Quiz

University

15 Qs

Habilidades digitales

Habilidades digitales

University

15 Qs

UIT Talk 2

UIT Talk 2

University

10 Qs

Information System and Modern Organization part 1

Information System and Modern Organization part 1

University

14 Qs

TIC´S Para Docentes

TIC´S Para Docentes

University

10 Qs

FUNCTIONAL PROGRAMMING WITH SCHEME

FUNCTIONAL PROGRAMMING WITH SCHEME

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

'Aisyah Sa'dan

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers