Skip to content

Course home

Representing algorithms

Representing algorithms

EasyMediumHard
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
Question 38

A solar power system design tool calculates the required component sizes. For every 1 m2 of solar panel area installed, the system produces 0.25 kW of peak electrical power. To ensure safety, the system requires a minimum inverter capacity (in kW\text{kW}kW) that is at least 1.15 times the peak electrical power.

The first line of the algorithm is shown below, where the user enters the installed panel area:

panel_area←USERINPUT \text{panel\_area} \leftarrow \text{USERINPUT} panel_area←USERINPUT

Which of the following lines of code correctly calculates the required minimum inverter capacity, to be stored in the variable inverter_capacity\text{inverter\_capacity}inverter_capacity?

A

inverter_capacity←panel_area×0.25×1.15\text{inverter\_capacity} \leftarrow \text{panel\_area} \times 0.25 \times 1.15inverter_capacity←panel_area×0.25×1.15

B

inverter_capacity←panel_area×0.25\text{inverter\_capacity} \leftarrow \text{panel\_area} \times 0.25inverter_capacity←panel_area×0.25

C

inverter_capacity←panel_area×1.15\text{inverter\_capacity} \leftarrow \text{panel\_area} \times 1.15inverter_capacity←panel_area×1.15

D

inverter_capacity←USERINPUT×0.2875\text{inverter\_capacity} \leftarrow \text{USERINPUT} \times 0.2875inverter_capacity←USERINPUT×0.2875

Markscheme

Representing algorithms Questions

  1. GCSE
  2. /Computer Science
  3. /Representing algorithms

208 exam-style questions on AQA GCSE Computer Science Representing algorithms. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank