forked from Open-CT/openct-tasks
172 lines
8.4 KiB
HTML
172 lines
8.4 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Chercher remplacer</title>
|
|
<link class="module" rel="stylesheet" href="../../../_common/modules/pemFioi/taskStyles-0.1.css" id="http://www.france-ioi.org/modules/pemFioi/taskStyles-0.1.css">
|
|
<script class="module" src="../../../_common/modules/ext/jquery/1.7/jquery.min.js" id="http://code.jquery.com/jquery-1.7.1.min.js"></script>
|
|
<script class="module" type="text/javascript" src="../../../_common/modules/ext/json/json2.min.js" id="https://github.com/douglascrockford/JSON-js"></script>
|
|
<script class="remove" type="text/javascript" src="../../../_common/modules/integrationAPI.01/installationAPI.01/pemFioi/installation.js" id="http://www.france-ioi.org/modules/integrationAPI.01/installationAPI.01/pemFioi/installation.js"></script>
|
|
<script class="remove" type="text/javascript" src="../../../_common/modules/ext/jschannel/jschannel.js"></script>
|
|
<script class="proxy module" type="text/javascript" src="../../../_common/modules/integrationAPI.01/official/platform-pr.js" id="http://www.france-ioi.org/modules/integrationAPI.01/official/platform-pr.js"></script>
|
|
<script class="module" type="text/javascript" src="../../../_common/modules/pemFioi/beaver-task.js" id="http://www.france-ioi.org/modules/pemFioi/beaver-task.js"></script>
|
|
<script class="stdAnswerTypes module" type="text/javascript" src="../../../_common/modules/integrationAPI.01/installationAPI.01/pemFioi/answerTypes.js" id="http://www.france-ioi.org/modules/integrationAPI.01/installationAPI.01/pemFioi/answerTypes.js"></script>
|
|
<link class="stdAnswerTypes module" rel="stylesheet" type="text/css" href="../../../_common/modules/integrationAPI.01/installationAPI.01/pemFioi/answerTypes.css" id="http://www.france-ioi.org/modules/integrationAPI.01/installationAPI.01/pemFioi/stdAnsTypes.css" />
|
|
<script class="stdButtonsAndMessages module" type="text/javascript" src="../../../_common/modules/integrationAPI.01/installationAPI.01/pemFioi/buttonsAndMessages.js" id="http://www.france-ioi.org/modules/integrationAPI.01/installationAPI.01/pemFioi/buttonsAndMessages.js"></script>
|
|
<script class="remove" type="text/javascript" src="../../../_common/modules/integrationAPI.01/official/miniPlatform.js" id="http://www.france-ioi.org/modules/integrationAPI.01/official/miniPlatform.js"></script>
|
|
<script class="task" type="text/javascript">
|
|
stdAnsTypes.genTaskMultipleChoices(2, [
|
|
"<center> " +
|
|
" <table cellspacing=0 class='motif_2010_chercher_remplacer'><tr>" +
|
|
" <td>n</td>" +
|
|
" <td>a</td>" +
|
|
" <td>g</td>" +
|
|
" <td>e</td>" +
|
|
" <td> </td>" +
|
|
" </tr></table>" +
|
|
" <img src='down_arrow.png'><br/>" +
|
|
" <table cellspacing=0 class='motif_2010_chercher_remplacer'><tr>" +
|
|
" <td>n</td>" +
|
|
" <td>a</td>" +
|
|
" <td>g</td>" +
|
|
" <td>e</td>" +
|
|
" <td>r</td>" +
|
|
" <td>a</td>" +
|
|
" <td> </td>" +
|
|
" </tr></table><br/>" +
|
|
" rechercher et remplacer 'nage ' par 'nagera '" +
|
|
"</center>",
|
|
"<center>" +
|
|
" <table cellspacing=0 class='motif_2010_chercher_remplacer'><tr>" +
|
|
" <td>a</td>" +
|
|
" <td>g</td>" +
|
|
" <td>e</td>" +
|
|
" </tr></table>" +
|
|
" <img src='down_arrow.png'><br/>" +
|
|
" <table cellspacing=0 class='motif_2010_chercher_remplacer'><tr>" +
|
|
" <td>a</td>" +
|
|
" <td>g</td>" +
|
|
" <td>e</td>" +
|
|
" <td>r</td>" +
|
|
" <td>a</td>" +
|
|
" </tr></table><br/>" +
|
|
" rechercher et remplacer 'age' par 'agera'" +
|
|
"</center>",
|
|
"<center>" +
|
|
" <table cellspacing=0 class='motif_2010_chercher_remplacer'><tr>" +
|
|
" <td>n</td>" +
|
|
" <td>a</td>" +
|
|
" <td>g</td>" +
|
|
" <td>e</td>" +
|
|
" </tr></table>" +
|
|
" <img src='down_arrow.png'><br/>" +
|
|
" <table cellspacing=0 class='motif_2010_chercher_remplacer'><tr>" +
|
|
" <td>n</td>" +
|
|
" <td>a</td>" +
|
|
" <td>g</td>" +
|
|
" <td>e</td>" +
|
|
" <td>r</td>" +
|
|
" <td>a</td>" +
|
|
" </tr></table><br/>" +
|
|
" rechercher et remplacer 'nage ' par 'nagera '" +
|
|
"</center>",
|
|
"<center><p>" +
|
|
" Aucune de ces trois<br/>" +
|
|
" commandes" +
|
|
"</p><br/></center>"
|
|
], "added", "#answers_2010-chercher-remplacer");
|
|
</script>
|
|
<style class="">.motif_2010_chercher_remplacer {
|
|
}
|
|
|
|
.motif_2010_chercher_remplacer td {
|
|
border: solid black 1px;
|
|
background-color: #88F;
|
|
width:20px;
|
|
text-align: center;
|
|
}</style>
|
|
|
|
<script class="remove" type="text/javascript">var json = {
|
|
"id": "http://castor-informatique.fr/tasks/2010/2010-chercher-remplacer/",
|
|
"language": "fr",
|
|
"version": "fr.01",
|
|
"authors": "France-ioi",
|
|
"translators": [
|
|
|
|
],
|
|
"license": "CC BY-SA 3.0",
|
|
"taskPathPrefix": "",
|
|
"modulesPathPrefix": "",
|
|
"browserSupport": [
|
|
|
|
],
|
|
"acceptedAnswers": [
|
|
"1"
|
|
]
|
|
};</script>
|
|
</head>
|
|
<body>
|
|
<div id="task">
|
|
<h1>Chercher remplacer</h1>
|
|
<p>
|
|
Castor a utilisé son ordinateur pour écrire une rédaction. Castor a cependant oublié qu'il devait rédiger sa rédaction au futur et pas au présent. Il doit donc maintenant changer son texte à de nombreux endroits. Par exemple, au lieu de « Castor défait parfaitement les noeuds », il devrait écrire « Castor défera parfaitement les noeuds ». Comme le terme « défait » apparaît souvent, il y a de nombreux changements à effectuer.
|
|
</p><p>
|
|
Son traitement de texte lui permet de faire un 'rechercher-remplacer' sur l'ensemble du texte. Il faut cependant utiliser la fonction 'rechercher-remplacer' correctement.
|
|
</p><p>
|
|
Par exemple la commande :
|
|
<center>
|
|
<table cellspacing=0 class="motif_2010_chercher_remplacer"><tr>
|
|
<td>a</td>
|
|
<td>i</td>
|
|
<td>t</td>
|
|
</tr></table>
|
|
<img src="down_arrow.png"><br/>
|
|
<table cellspacing=0 class="motif_2010_chercher_remplacer"><tr>
|
|
<td>e</td>
|
|
<td>r</td>
|
|
<td>a</td>
|
|
</tr></table><br/>
|
|
rechercher et remplacer "ait" par "era"
|
|
</center>
|
|
</p>
|
|
<p>
|
|
produit le résultat erroné « <i>Castor défera <b>parferaement</b> les noeuds</i> ».
|
|
</p>
|
|
<b>Quelle commande changerait dans la phrase « Castor est bon nageur. Il nage avec courage. » le
|
|
verbe « nage » en « nagera » SANS pour autant changer les autres mots ? Attention aux espaces qui
|
|
sont traités comme les autres lettres.</b>
|
|
</p>
|
|
<div class="reponses" id="answers_2010-chercher-remplacer">
|
|
</div>
|
|
|
|
|
|
<img style="display: none;" src="down_arrow.png" />
|
|
|
|
</div><!-- task -->
|
|
<div id="solution">
|
|
<!-- réponse : 1 -->
|
|
|
|
<div class="explications">
|
|
<h2>La solution</h2>
|
|
|
|
<p>
|
|
La réponse <span class="2010-chercher-remplacer_choice_1">A</span> est correcte.
|
|
</p><p>
|
|
La réponse <span class="2010-chercher-remplacer_choice_2">B</span> est incorrecte : cela donnerait la phrase : "Castor, bon nageraur, nagera avec couragera."
|
|
</p>
|
|
<p>
|
|
La réponse <span class="2010-chercher-remplacer_choice_3">C</span> est incorrecte : cela donnerait la phrase : "Castor, bon nageraur, nagera avec courage."
|
|
</p>
|
|
<p>
|
|
La réponse <span class="2010-chercher-remplacer_choice_4">D</span> est incorrecte, mais force le candidat à être sûr de sa réponse.
|
|
</p>
|
|
|
|
<h2>C'est de l'informatique </h2>
|
|
<p>
|
|
Le remplacement automatique d'éléments syntaxiques dans un contenu plus grand peut faire gagner beaucoup de temps et d'efforts à l'utilisateur, par exemple pour la manipulation d'un long texte, un grand réseau ou les propriétés des enregistrements d'une base de données. Il peut cependant facilement engendrer des erreurs et pertes de données substantielles, qui restent souvent et longtemps indétectées. Très peu d'outils sont disponibles qui "comprennent" le contenu des structures et préviennent l'utilisateur en cas d'erreur probable. Les informaticiens ont encore beaucoup de travail sur ces aspects.
|
|
</p>
|
|
</div>
|
|
</div> <!-- task-solution -->
|
|
</body>
|
|
</html>
|