Récursivité

Récursivité

University

13 Qs

quiz-placeholder

Similar activities

C - Java class

C - Java class

University

10 Qs

@tbinh1768/TIN ĐS HK1

@tbinh1768/TIN ĐS HK1

11th Grade - University

11 Qs

Ujian Tengah Semester Struktur Data

Ujian Tengah Semester Struktur Data

University

10 Qs

IPC144 SLG -- Week2

IPC144 SLG -- Week2

University

9 Qs

Servlets & JSP

Servlets & JSP

University

10 Qs

C-Extended

C-Extended

University

16 Qs

Skill Development - Debugging Practice1

Skill Development - Debugging Practice1

10th Grade - Professional Development

10 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

Récursivité

Récursivité

Assessment

Quiz

Computers

University

Medium

Created by

pierre wulles

Used 11+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Donner le profil de la fonction f

int -> int -> int

float -> float -> float

int -> int -> float

float -> float -> int

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Donner le profil de la fonction f

'a -> 'a -> string -> string

float -> float -> string -> string

int -> int -> string -> string

'a -> 'a-> char -> char

int -> int -> char -> char

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

Donner le profil de la fonction f

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

En TD nous avons défini les entiers de Peano. Rappeler une définition du type natP en OCaml.

type natP = int

type natP = Z | int

type natP = Z|S of natP

type natP = Z of int | S of natP

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Comment représente t-on l'entier 4 avec le type natP ?

S (S (S (S Z)))

Z

4

S(S (S (S (S Z))))

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

let f = ...

let rec f = ...

let f rec = ...

rec let f =

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

On a implémenté une fonction addP, quel est le résultat de addP (S Z) (S (S (S Z))) ?

3

4

S(S(S(S Z)))

S(S(S Z))

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?