Solveeit Logo

Question

Computer Science Question on Input Output

srAsrB=srA[0:3] - srB['a':'c']
As per the above statement, what are the values of objects srAsrB. Choose correct output-

A
a20
b30
c40
B
a30
b40
c30
C
a40
b100
c40
D
a80
b110
c20
Answer
a80
b110
c20
Explanation

Solution

The correct option is (D) :a80
b110
c20
.