0% found this document useful (0 votes)
2 views3 pages

Scratch MCQ: Algorithm Evaluation Quiz

The document is a multiple-choice questionnaire related to Scratch programming scripts, where participants must identify the correct output for three given scripts. Each script has three proposed answers, with only one correct answer for each. The correct answers are provided at the end of the document for reference.

Translated by

ScribdTranslations
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views3 pages

Scratch MCQ: Algorithm Evaluation Quiz

The document is a multiple-choice questionnaire related to Scratch programming scripts, where participants must identify the correct output for three given scripts. Each script has three proposed answers, with only one correct answer for each. The correct answers are provided at the end of the document for reference.

Translated by

ScribdTranslations
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

MCQonScratch

This exercise is a multiple-choice questionnaire. No justification is required.


requested. For each question, three answers are proposed. One
only is correct. For each of the three questions, indicate on the paper the
question number and copy the exact answer.

The scripts below are written with Scratch software.

Through a simple mental calculation, indicate the value that will be returned by each
script.

▶ 1.

▶ 2.
▶ 3.

Réponse A Réponse B Réponse C

Script 1 8 12 16

Script 2 1 15 18

Script 3 8 16 32
The keys to the subject

Programpoints

Reading a computer algorithm.

Ourhelpinghands

If we multiply x by 2 for the first time, we get 4. Do it again.


thus, until obtaining a number greater than 10.

▶ 2. Note that x takes the value 5. Compare x and 10. Conclude.

▶ 3. This is a loop that runs 4 times. x takes the value 1, we add


x to x. Thus we get 1 + 1 = 2 in the first round of the loop.
Start again three more times.

Corrected

▶ 1. Answer C. x takes the value 2, then successively the values 4, 8, 16.


16 is greater than 10, we exit the loop and display 16.

▶ 2. Response A. x takes the value 5, so it is less than 10. We apply the


Otherwise, we divide x by 5 and we get 1.

▶ 3. Answer B. x takes the value 1, then successively the values 2, 4, 8,


16. We exit the loop and display 16.

You might also like