ntro.ca

        • Contrats de classe
        • Liens utiles
        • Calendrier
        • Calendrier groupe 2
        • Calendrier groupes 1, 3
        • Structure du cours
        • Évaluations
        • Matériel à se procurer
        • Les profs
          • Marc-Olivier Tremblay
          • Mathieu Bergeron
        • Module 1.1: installation + trier des cartes
        • Module 1.2: rappels POO
        • Module 1.3: tableau d'objets
        • Examen 1
        • Module 2.1: données JSON
        • Module 2.2: données en Java
        • Module 2.3: récursivité
        • Examen 2
        • Module 3.1: structure générique
        • Module 3.2: efficacité (1)
        • Module 3.3: efficacité (2)
        • Examen 3
        • Module 4.1: liste naïve
        • Module 4.2: liste par tableau
        • Module 4.3: liste chaînée
        • Examen 4
        • Module 5.1: mappage naïf
        • Module 5.2: mappage par hachage
        • Module 5.3: mappage par arbre
        • Examen 5
        • Équipes
          • Horaire groupe 1
          • Horaire groupe 2
          • Horaire groupe 3
          • Groupe 1
          • Groupe 2
          • Groupe 3
        • Projets vedettes 2022
        • Projets vedettes 2023
        • Projets vedettes 2024
        • Survol
        • Structure
        • Calendrier
        • Calendrier des séances
        • Évaluations
        • Exemples de jeu
        • Exemples de pages
        • Réponses à vos questions
        • Module 1: créer le projet
        • Module 2: concevoir l'application
        • Module 3: vues NtroFx
        • Module 4: modèle et navigation
        • Module 5: ajouter le dorsal, modifier le modèle
        • Module 7: améliorer l'affichage
        • Module 8: jeu en 2d
        • Module 9: client/serveur
        • Module 10: plusieurs instances du même modèle
        • TP1
        • Examen 1
        • TP2
        • Examen 2
        • Projet de fin de session
      • Ajout Format JSON
        • Calendrier
        • Évaluations
        • Structure du cours
        • Contrat de classe
        • Le prof
        • 01: Windows et Word
          • Astuces et raccourcis
        • 02: Word
        • 03: Word
          • Exercice Word: insertion d'éléments spéciaux
          • Exercice Word: tableaux
        • 04: Word
          • Exercice Word: références
          • TP01: Word (15%)
        • 05: PowerPoint
          • TP02: PowerPoint (10%)
        • 06: Examen Word (20%)
        • 07: Excel
        • 08: Excel
        • 09: Excel
          • TP03: Excel (15%)
        • 10: Excel
        • 11: Examen Excel (20%)
        • 12: Access
        • 13: Access
        • 14: Access
        • 15: Examen Access
      • Sondage H2023 (dept. info)
      • Vision H2023 (dept. info)
      • P1) exercices interactifs de lecture
      • P2) transition Excel vers Python
        • Atelier 2: un exemple
      • Index
      • Point de vue sur l'IA
    Map Hashb

    test00

    Valeur avant opérationOpérationValeur après opération
    {}
    map.put("gge", 56);{"gge":56}

    test01

    Valeur avant opérationOpérationValeur après opération
    {"gge":56}
    map.put("lba", 95);{"gge":56, "lba":95}

    test02

    Valeur avant opérationOpérationValeur après opération
    {"gge":56, "lba":95}
    map.put("gge", 33);{"gge":33, "lba":95}

    test03

    Valeur avant opérationOpérationValeur après opération
    {"gge":33, "lba":95}
    map.put("b", 27);{"b":27, "gge":33, "lba":95}

    test04

    Valeur avant opérationOpérationValeur après opération
    {"b":27, "gge":33, "lba":95}
    map.put("r", 57);{"b":27, "r":57, "gge":33, "lba":95}

    test05

    Valeur avant opérationOpérationValeur après opération
    {"b":27, "r":57, "gge":33, "lba":95}
    map.put("nsy", 99);{"b":27, "r":57, "gge":33, "lba":95, "nsy":99}

    test06

    Valeur avant opérationOpérationValeur après opération
    {"b":27, "r":57, "gge":33, "lba":95, "nsy":99}
    map.put("tps", 12);{"b":27, "r":57, "gge":33, "lba":95, "nsy":99, "tps":12}

    test07

    Valeur avant opérationOpérationValeur après opération
    {"b":27, "r":57, "gge":33, "lba":95, "nsy":99, "tps":12}
    map.put("veq", 0);{"b":27, "r":57, "gge":33, "lba":95, "nsy":99, "tps":12, "veq":0}

    test08

    Valeur avant opérationOpérationValeur après opération
    {"b":27, "r":57, "gge":33, "lba":95, "nsy":99, "tps":12, "veq":0}
    map.put("gge", 13);{"b":27, "r":57, "gge":13, "lba":95, "nsy":99, "tps":12, "veq":0}

    test09

    Valeur avant opérationOpérationValeur après opération
    {"b":27, "r":57, "gge":13, "lba":95, "nsy":99, "tps":12, "veq":0}
    map.put("tps", 23);{"b":27, "r":57, "gge":13, "lba":95, "nsy":99, "tps":23, "veq":0}

    test10

    Valeur avant opérationOpérationValeur après opération
    {"b":27, "r":57, "gge":13, "lba":95, "nsy":99, "tps":23, "veq":0}
    map.put("r", 24);{"b":27, "r":24, "gge":13, "lba":95, "nsy":99, "tps":23, "veq":0}

    test11

    Valeur avant opérationOpérationValeur après opération
    {"b":27, "r":24, "gge":13, "lba":95, "nsy":99, "tps":23, "veq":0}
    map.put("r", 49);{"b":27, "r":49, "gge":13, "lba":95, "nsy":99, "tps":23, "veq":0}

    test12

    Valeur avant opérationOpérationValeur après opération
    {"b":27, "r":49, "gge":13, "lba":95, "nsy":99, "tps":23, "veq":0}
    map.put("tps", 89);{"b":27, "r":49, "gge":13, "lba":95, "nsy":99, "tps":89, "veq":0}

    test13

    Valeur avant opérationOpérationValeur après opération
    {"b":27, "r":49, "gge":13, "lba":95, "nsy":99, "tps":89, "veq":0}
    map.put("r", 84);{"b":27, "r":84, "gge":13, "lba":95, "nsy":99, "tps":89, "veq":0}

    test14

    Valeur avant opérationOpérationValeur après opération
    {"b":27, "r":84, "gge":13, "lba":95, "nsy":99, "tps":89, "veq":0}
    map.put("lba", 38);{"b":27, "r":84, "gge":13, "lba":38, "nsy":99, "tps":89, "veq":0}

    test15

    Valeur avant opérationOpérationValeur après opération
    {"b":27, "r":84, "gge":13, "lba":38, "nsy":99, "tps":89, "veq":0}
    map.put("y", 12);{"b":27, "r":84, "y":12, "gge":13, "lba":38, "nsy":99, "tps":89, "veq":0}

    test16

    Valeur avant opérationOpérationValeur après opération
    {"b":27, "r":84, "y":12, "gge":13, "lba":38, "nsy":99, "tps":89, "veq":0}
    map.put("b", 44);{"b":44, "r":84, "y":12, "gge":13, "lba":38, "nsy":99, "tps":89, "veq":0}

    test17

    Valeur avant opérationOpérationValeur après opération
    {"b":44, "r":84, "y":12, "gge":13, "lba":38, "nsy":99, "tps":89, "veq":0}
    map.put("nsy", 67);{"b":44, "r":84, "y":12, "gge":13, "lba":38, "nsy":67, "tps":89, "veq":0}

    test18

    Valeur avant opérationOpérationValeur après opération
    {"b":44, "r":84, "y":12, "gge":13, "lba":38, "nsy":67, "tps":89, "veq":0}
    map.put("nsy", 10);{"b":44, "r":84, "y":12, "gge":13, "lba":38, "nsy":10, "tps":89, "veq":0}

    test19

    Valeur avant opérationOpérationValeur après opération
    {"b":44, "r":84, "y":12, "gge":13, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.put("gge", 75);{"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}

    test20

    Valeur avant opérationOpérationValeur de retour
    {}
    map.get("idbn");null

    test21

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.get("ofzj");null

    test22

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.get("y");12

    test23

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.get("y");12

    test24

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.get("i");null

    test25

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.get("zzo");null

    test26

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.get("vbe");null

    test27

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.get("ejrg");null

    test28

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.get("n");null

    test29

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.get("lba");38

    test30

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.get("indi");null

    test31

    Valeur avant opérationOpérationValeur de retour
    {}
    map.size();0

    test32

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.size();8

    test33

    Valeur avant opérationOpérationValeur de retour
    {}
    map.isEmpty();true

    test34

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.isEmpty();false

    test35

    Valeur avant opérationOpérationValeur de retour
    {}
    map.containsKey("wegf");false

    test36

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.containsKey("et");false

    test37

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.containsKey("b");true

    test38

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.containsKey("d");false

    test39

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.containsKey("veq");true

    test40

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.containsKey("fdfp");false

    test41

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.containsKey("nsy");true

    test42

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.containsKey("r");true

    test43

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.containsKey("r");true

    test44

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.containsKey("gge");true

    test45

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.containsKey("dmot");false

    test46

    Valeur avant opérationOpérationValeur de retour
    {}
    map.containsValue("18");false

    test47

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.containsValue("34");false

    test48

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.containsValue("0");true

    test49

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.containsValue("35");false

    test50

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.containsValue("25");false

    test51

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.containsValue("61");false

    test52

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.containsValue("31");false

    test53

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.containsValue("50");false

    test54

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.containsValue("98");false

    test55

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.containsValue("84");true

    test56

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.containsValue("91");false

    test57

    Valeur avant opérationOpérationValeur de retour
    {}
    map.keys();[]

    test58

    Valeur avant opérationOpérationValeur de retour
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.keys();[b,r,y,gge,lba,nsy,tps,veq]

    test59

    Valeur avant opérationOpérationValeur après opération
    {}
    map.remove("dtf");{}

    test60

    Valeur avant opérationOpérationValeur après opération
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.remove("tqs");{"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}

    test61

    Valeur avant opérationOpérationValeur après opération
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.remove("bl");{"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}

    test62

    Valeur avant opérationOpérationValeur après opération
    {"b":44, "r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.remove("b");{"r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}

    test63

    Valeur avant opérationOpérationValeur après opération
    {"r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.remove("o");{"r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}

    test64

    Valeur avant opérationOpérationValeur après opération
    {"r":84, "y":12, "gge":75, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.remove("gge");{"r":84, "y":12, "lba":38, "nsy":10, "tps":89, "veq":0}

    test65

    Valeur avant opérationOpérationValeur après opération
    {"r":84, "y":12, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.remove("mh");{"r":84, "y":12, "lba":38, "nsy":10, "tps":89, "veq":0}

    test66

    Valeur avant opérationOpérationValeur après opération
    {}
    map.clear();{}

    test67

    Valeur avant opérationOpérationValeur après opération
    {"r":84, "y":12, "lba":38, "nsy":10, "tps":89, "veq":0}
    map.clear();{}
    Creative Commons License Creative Commons Attribution Creative Commons ShareAlike