String handling operations in a programming language

EasyMedium
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
Question 51
Easy

An automated system monitoring network health runs a script containing the assignment statements shown below:

prefix ← 'service '
suffix ← '  down'

Select the option that shows the exact value of the variable result after the following concatenation operation is executed:

result←prefix+suffix \text{result} \leftarrow \text{prefix} + \text{suffix} result←prefix+suffix

’service down’\texttt{'service\ down'}’service down’

’servicedown’\texttt{'servicedown'}’servicedown’

’service   down’\texttt{'service\ \ \ down'}’service   down’

’service  down’\texttt{'service\ \ down'}’service  down’

String handling operations in a programming language Questions

  1. GCSE
  2. /Computer Science
  3. /String handling operations in a programming language