The tasks include creating strings using defined alphabets, and performing simple string operations.
Instructions:
1. Creating Strings:
• Using alphabet Σ1 = {0, 1}, create three different strings, each of length 4.
• Using alphabet Σ2 (the English alphabet), create a word of your choice and note its length.
2. Basic String Operations:
• For one of the strings created from Σ1, find and write its reverse.
• Identify and list all substrings of the word created from Σ2 (including the empty string).
3. Concatenation Practice:
• Concatenate two of the binary strings created from Σ1 and note the length of the resulting string.
• Concatenate the empty string ε with the word created from Σ2 and observe any changes.
Download
0 formats
No download links available.
Problem 2 Spring 2024 Creating strings using defined alphabets, and simple string operations. | NatokHD