1 of 7

lasacs.com/ask/506

2 of 7

lasacs.com/ask/711

3 of 7

What is the output of the code below?

s="computer science"print(s[1:5])

  • ompu
  • compu
  • omput
  • none of these

4 of 7

What is the output of the code below?

myString = "this is really a string"print(myString.replace("is", "was"))

  • thwas is really a string
  • this was really a string
  • thwas was really a string
  • this is really a string

5 of 7

What is the output of the code below?

myString = "this is really a string"�myString.replace("is", "was")

print(myString)

  • thwas is really a string
  • this was really a string
  • thwas was really a string
  • this is really a string

6 of 7

What is the output of the code below?

s="LASA"print(len(s))

  • 3
  • 4
  • 5
  • none of these

7 of 7

Which of the following is the same as s[0:-1]?

  • s[:]
  • s[-1]
  • s[0:len(s)]
  • s[:len(s)-1]