Skip to content

Course home

Sign up

Computational thinking

EasyMediumHard
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
Question 77

A cloud hosting platform, NebulaHost, calculates the hourly billing cost in credits for high-performance virtual servers.

  • For servers with up to 8 virtual processor cores, the baseline cost is 150 credits per hour.
  • For servers with more than 8 virtual processor cores, an additional charge of 18 credits per hour is applied for each core beyond the first 8.
  • The system database stores the number of allocated processor cores in an integer variable called cores.

Construct a general arithmetic expression, using standard programming operators, to calculate the total hourly credit cost for a virtual server that has been allocated more than 8 cores.

[4]
Markscheme

Computational thinking Questions

  1. GCSE
  2. /Computer Science
  3. /Computational thinking

Question bank