8.4k views
3 votes
M/C Define strings s = 101 and t = 10. Select the string that is equal to st.

a. s + t
b. s * t
c. s / t
d. s - t

User Mikolaj
by
8.5k points

1 Answer

2 votes

Final answer:

The correct operation to get the string 'st' is s + t.

Step-by-step explanation:

In this question, we are given two strings: s = 101 and t = 10. We need to determine which operation would result in the string 'st'.

The correct answer is a. s + t. When we use the + operator with strings, it concatenates them together. So, s + t would result in '10110', which is equal to st.

The other options of s * t, s / t, and s - t do not make sense when performing operations on strings.

User Pantonis
by
8.1k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.