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

Correct Option - c

To get all Go Programming Language - Assessment Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in