Passer au contenu

Selection and iteration

Introduit
Fiche de cours
Leçon vidéo pour ce sujet Ouvrir la page vidéo
23:18

Principes de base de la programmation

Un programme doit demander un mot de passe, et continuer à demander jusqu'à ce qu'il soit bon. Simple — mais quelle boucle utilisez-vous ? Les programmes prennent des décisions et répètent des travaux, et choisir…

Narration en anglais · sous-titres en anglais et en 中文 au choix

Dans cette leçon

Leçon vidéo
Vocabulaire
English Sens
security updateA change to software that fixes weaknesses attackers could use.
code/kəʊd/Instructions written in a programming language for a computer to follow.
certificate/səˈtɪfɪkət/A digital document that helps prove the identity of a website.
attackerA person who tries to harm or gain unauthorised access to systems or data.
selection/sɪˈlekʃn/sélection
Iteration/ˌɪtəˈreɪʃn/Repeating a sequence of instructions or calculations.
constructsBasic ways to organise steps in an algorithm, including order, choice and repetition.
trace table/treɪs ˈteɪbl/table de traçage
condition/kənˈdɪʃn/A requirement or circumstance that affects what happens or whether something is true.
Boolean expression/ˈbuːlɪən ekˈspreʃn/An expression whose value is true or false.
comparison/kəmˈpærɪsn/An operation that compares two values and gives a true or false result.
branch/bræntʃ/A path of instructions chosen according to a condition or value.
nested/ˈnestɪd/imbriqué
logic error/ˈlɒdʒɪk ˈerə/erreur logique
boundary valueA value at the edge between two possible outcomes of a condition.
guard/ɡɑːd/A value, list or range that determines when a CASE branch runs.
assignment/əˈsaɪnmənt/Storing a value in a variable or other named location.
loop/luːp/A structure that repeats a sequence of instructions.
block/blɒk/A group of instructions treated as a unit in a program.
count-controlled loop/kaʊnt kənˈtrəʊld luːp/count-controlled loop : boucle comptée
element/ˈelɪmənt/A substance made of atoms with the same proton number.
array/əˈreɪ/tableau
pre-condition loop/priː kənˈdɪʃn luːp/pre-condition loop : boucle à précondition
post-condition loop/pəʊst kənˈdɪʃn luːp/post-condition loop : boucle à postcondition
loop bodyThe instructions inside a loop that are repeated when the loop runs.
counter/ˈkaʊntə/A device or variable that records how many events or items have occurred.
dry run/draɪ rʌn/exécution à sec
algorithm/ˈælɡərɪθəm/A finite sequence of precise steps for solving a problem or carrying out a task.
keyword/ˈkiːwɜːd/A word with a fixed meaning in a programming language or pseudocode.

Fiche de cours

Se connecter ou créer un compte

IGCSE, A-Level & AP