Consider the slice list given below.

Identify the Go code to be written at Line 1 such that the output is [ java programming ]

package main
import(
    "fmt"
)

func main(){
    myCourses := []string{"python","java","go","programming"}
    newSlice:=myCourses[3:]      
     
    #Line1_______________________________ 
    fmt.Println(slice1)
}

slice1:= myCourses[1:2] + newSlice

slice1:= myCourses[1:2] + newSlice

slice1:= append(myCourses[1:2], newSlice...)

slice1:= myCourses[:2] + newSlice

Verified Answer
Correct Option - c

To get all Go Programming Language - Assessment Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram