Search⌘ K
AI Features

Quiz: String Algorithms

Practice and reinforce key string concepts through quiz questions.

We'll cover the following...

String Algorithms

1.

What is the output of the following code?

package main

import "fmt"

func main() {
    s := "bless"
    fmt.Println(string(s[len(s)-2]))
}
A.

b

B.

l

C.

e

D.

s


1 / 10
...