ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions
9 marks · Vector and bit-mapped graphics
The company logo shown below is stored as a vector graphic. Identify the object used to make this logo and one of its attributes. Object Attribute Luna Life uses a program to calculate the cost of creating an animation. Part of the program is shown below. SET basicCost TO timeInSeconds * animatorCharge After the basic cost has been calculated, the following discounts can be applied to animations depending on their use: • education — deduct £20 from cost • charity — deduct £30 from cost. Using a programming language of your choice, write the code to ask for the purpose of the animation, calculate any discount, and display the final cost in the variable finalCost. State the part of the processor used, during the calculation of the discount, to: perform the calculation temporarily store the values used in the calculation. Luna Life has 100 computers in its office. During the working day, staff use standby mode when their computers are not in use. Describe why staff use standby mode. Luna Life is a company that creates animations.
object • polygon attribute • X coordinate • Y coordinate • line colour • fill colour • line thickness • transparency/opacity Award 1 mark for object and 1 mark for attribute matching the object given. Do not allow “hexagon” OR “line”. Second mark may still be awarded if attribute matches an incorrect object given. • input of purpose • IF statements for each purpose • education is basicCost - 20 charity is basicCost – 30 • finalCost must be able to display either: basicCost – 20 basicCost – 30 basicCost ALU (Arithmetic Logic Unit) Register(s) Reduce power/electricity/energy consumption