Quiz reinforcement

Quiz reinforcement

Assessment

Quiz

Information Technology (IT)

Professional Development

Medium

Created by

mehdi khalil

Used 2+ times

FREE Resource

Student preview

quiz-placeholder

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

  1. Que retourne la ligne suivante ?

[...'hello']

"hello"

['hello']

['h', 'e', 'l', 'l', 'o']

undefined

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

  1. Que fait l’opérateur rest dans :

function sum(...nums) { return nums.length; }

Il clone le tableau

Il regroupe tous les arguments dans un tableau

Il fusionne deux objets

Il renvoie la somme

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Quelle est la différence entre var et let ?

var a un scope de bloc

let a un scope global

Elles sont identiques

var a un scope fonction, let un scope bloc

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

  1. Que donne :

const {a, b=2} = {a: 5};

a=5, b=undefined

a=undefined, b=2

a=5, b=2

a=2, b=5

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Comment fusionner deux tableaux arr1 et arr2 avec spread ?

arr1.merge(arr2)

[arr1, arr2]

arr1.push(...arr2)

[...arr1, ...arr2]

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Quelle est la valeur de this dans une arrow function ?

L’objet appelant

Elle hérite du this de son contexte parent

L’objet global

Toujours undefined

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

  1. Quelle est la sortie ?

[1,2,3].map(n => n*2);

[2,4,6]

[1,4,9]

[2,3,4]

[4,8,12]

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?