String handling operations in a programming language

EasyMedium
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
Question 49
Easy

A bioinformatics algorithm uses the pseudocode function SUBSTR(start, length, text) to extract a sequence of bases of a specified length starting at the 1-indexed position start.

For example, SUBSTR(4, 3, 'CHROMOSOME') returns 'OMO'.

An analyst executes the following assignment statement:

codon ← SUBSTR(6, 4, sequence)

Below are four variables currently active in memory:

organism ← 'Escherichia'
enzyme ← 'Polymerase'
sequence ← 'METHIONINE'
gene ← 'LACZ'

What is the value of codon after the assignment statement is executed?

’HION’\text{'HION'}’HION’

’NINE’\text{'NINE'}’NINE’

’ONIN’\text{'ONIN'}’ONIN’

’IONI’\text{'IONI'}’IONI’

String handling operations in a programming language Questions

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