Récursivité

Récursivité

University

13 Qs

quiz-placeholder

Similar activities

ENT110 C Programming Quiz2

ENT110 C Programming Quiz2

University

10 Qs

2D Array and Strings in C

2D Array and Strings in C

University

16 Qs

Operators in C

Operators in C

University

12 Qs

BASIC C PROGRAMMING QUIZ

BASIC C PROGRAMMING QUIZ

University

15 Qs

Ordre supérieur et arbres

Ordre supérieur et arbres

University

11 Qs

ANALYSIS OF ALGORITHMS

ANALYSIS OF ALGORITHMS

University

15 Qs

Expression in C Programming

Expression in C Programming

University

10 Qs

JSP

JSP

University

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