• 20 heures
  • Moyenne

Ce cours est visible gratuitement en ligne.

course.header.alt.is_video

course.header.alt.is_certifying

J'ai tout compris !

Mis à jour le 27/04/2023

Utilize collections and optionals

Compétences évaluées

  • Utilize collections and optionals
  • Question 1

    To declare an empty array, one can write:

    Attention, plusieurs réponses sont possibles.
    • []

       

    • [Int]

       

    • [Int: String] ()

    • [Double]()

  • Question 2

    When is the order of elements important?

    • In an array because a key is used to retrieve the values

    • In an array because an index is used to retrieve the values

    • In a dictionary because a key is used to retrieve the values

    • In a dictionary because an index is used to retrieve the values

  • Question 3

    To browse/walk an array, we use:

    • a while loop

       

       

    • a for-in loop

       

    • an if/else statement

    • a dictionary

Et si vous obteniez un diplôme OpenClassrooms ?
  • Formations jusqu’à 100 % financées
  • Date de début flexible
  • Projets professionnalisants
  • Mentorat individuel
Trouvez la formation et le financement faits pour vous