String Manipulation
1. This question has 3 part(s).
1.1. Figure 8 box shows an algorithm represented using pseudocode.
Line numbers are included but are not part of the algorithm
Figure 8
1 names ← ['Lily', 'Thomas'] 2 name1 ← 'Sarah' 3 name2 ← 'Freddie' 4 OUTPUT name1[0] 5 OUTPUT LEN(names) 6 var ← SUBSTRING(0, 3, name1) 7 OUTPUT varSUBSTRING returns part of a string.
For example, SUBSTRING(3, 5, 'programming') will return the string 'gra'.
Identify one choice which shows the output of line 4 from the algorithm shown in Figure 8.
1.2. Identify one choice which shows the output of line 5 from the algorithm shown in Figure 8.
1.3. State the output of line 7 from the algorithm shown in Figure 8.
Ai এর মাধ্যমে
১০ লক্ষ+ প্রশ্ন ডাটাবেজ
প্র্যাকটিস এর মাধ্যমে নিজেকে তৈরি করে ফেলো
উত্তর দিবে তোমার বই থেকে ও তোমার মত করে।
সারা দেশের শিক্ষার্থীদের মধ্যে নিজের অবস্থান যাচাই
No related questions found