String handling operations in a programming language

EasyMedium
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
Question 6
Easy

Select one option which shows the output of line 6 from the algorithm shown in Figure 1.

Figure 1

1  dept ← 'CyberSecurity'
2  code ← 'RSA-4096'
3  suffix ← '!'
4  part1 ← SUBSTRING(5, 3, dept)
5  part2 ← part1 + code[4] + suffix
6  OUTPUT LEN(part2)

Note: String indexing is 0-indexed. SUBSTRING(start, length, string) extracts length characters starting from index start.

333

555

777

888

String handling operations in a programming language Questions

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