Récursivité

Récursivité

University

13 Qs

quiz-placeholder

Similar activities

Milking Minds 2 17-01-24

Milking Minds 2 17-01-24

University

15 Qs

AppsLab_Q2

AppsLab_Q2

10th Grade - Professional Development

10 Qs

FOP - RECAP CHAP 3

FOP - RECAP CHAP 3

University

15 Qs

pemvis

pemvis

University

9 Qs

C programming

C programming

University

15 Qs

C Programming Quiz-1

C Programming Quiz-1

University

10 Qs

Java Programming

Java Programming

University

15 Qs

Recursion

Recursion

University

8 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?