
Haskell 2
Authored by Олександра Радзієвська
Computers
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Як взяти 4 елемент списку xs?
xs[4]
xs !! 4
xs(4)
xs % 4
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
func (+) 0 [5,7,9,2] = [23,18,11,2,0]. яку функцію треба підставити замість func, щоб вираз був коректним?
foldl
map
scanr
scanl
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Хаскель "лінивий". Що це значить?
Він не здатний виконувати обчислення над великими числами
Вирази не обчислюються поки їхнє значення не стане дійсно потрібним
Хаскель - мова для лінивих розробників
Хаскель "ліниться" робити перетворення типів
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
"..... means to think big: work with an entire list, rather than a sequence of elements; develop a solution space, rather than an individual solution; imagine a graph, rather than a single path."
Вставте пропущене визначення
Declarative programming
Wholemeal programming
Computer programming
Functional programming
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Якої конструкції НЕ існує в Хаскелі?
if .. elif .. else
case ... of ...
let ... in ...
... where ...
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
func :: (a->b) -> [a] -> [b]
Яка з функцій має таку сигнатуру?
filter
foldl
map
scanr1
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Який стиль найменування функцій варто використовувати в Хаскелі?
someCoolFunction
some_cool_function
some_Cool_Function
some-cool-function
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?