ExamBank Scot · N5 Engineering Science question bank · All N5 Engineering Science questions
3 marks · Flowcharts and programs
State a line number that contains a time delay. Line number State the number of times that pin 7 will turn on and then off. State the name of the type of loop used to control the number of times pin 7 turns on and off. A microcontroller program is shown. line program 1 2 3 4 5 6 7 8 9 10 main: if input1 is on then label_1 goto main label_1: let count = 0 label_2: switch on pin 7 pause 500 switch off pin 7 pause 500 let count = count + 1 if count = 15 then label_3 goto label_2 11 label_3: end
(Line) 5 or 7 Only a single line number required. Accept the line number indicated on the program. 15 (times) Fixed/ Finite (loop)