FUNCTIONAL PROGRAMMING WITH SCHEME

Quiz
•
Computers
•
University
•
Hard
'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
Similar Resources on Wayground
13 questions
Unit 12 - Functional Programming

Quiz
•
12th Grade - University
10 questions
Programming Paradigms

Quiz
•
University
10 questions
Introduction to Python

Quiz
•
University
10 questions
Selection Control Structure Quiz

Quiz
•
6th Grade - University
6 questions
PPS MCQ on 22.11.2024

Quiz
•
10th Grade - University
11 questions
C Language

Quiz
•
10th Grade - University
15 questions
Software Engineering-Requirements Analysis

Quiz
•
University
10 questions
CSI104_Pre2

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

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

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University