HomeExamsJavaTETAJEEDEVIC1004
TETAJEEDEVIC1004

Infosys Certified Go Developer

Practice with real exam-pattern questions for Infosys Certified Go Developer. Each question includes a detailed explanation to help you understand the concept, not just memorise the answer. Try 10 questions free — no login required.

IntermediateJava90 min
Free questions

10 Infosys Certified Go Developer practice questions with answers

Real Lex exam-pattern multiple-choice questions for the Infosys Certified Go Developer certification. Each question includes the correct answer. The full question bank is available to Premium members.

  1. Question 1

    What will be the output when the below-mentioned code snippet?
    package main
    import "fmt"

    func main() {
    num1:=25;
    for ;; { //-----------------Line 1
    if(num1==30){
    break;
    }
    fmt.Printf("%d ",num1);
    num1++;
    }
    }

    • 25 26 27 28 29 30

      Correct
    • B

      Infinite Loop

    • C

      Error at Line 1: Incorrect syntax

    • D

      25 26 27 28 29

  2. Question 2

    Observe the below code.(Assume all the necessary imports are done/given correctly)

    func main(){
    customerContacts:= make([]string,7)
    fmt.Println(len(customerContacts))
    fmt.Println(cap(customerContacts))
    }

    What will be the capacity of the slice customerContacts in the above code snippet ?

    • 0

      Correct
    • B

      7

    • C

      1

    • D

      6

  3. Question 3

    What will be the output of the below-mentioned code snippet?
    package main
    import "fmt"

    var name string="Russell"
    const(
    name1="Raj"
    )
    func main() {
    name ="Ross"
    fmt.Println(name+" "+name1)
    }

    • Russell Raj

      Correct
    • B

      Ross Raj

    • C

      Ross

    • D

      RussellRaj

  4. Question 4

    Consider the below-mentioned code snippet and find the output.
    package main

    import "fmt"
    var (
    custName = "Stuart"+" Little" // ------------------->Line 1
    age = 22
    phoneNo = 7023377442 //-------------------------->Line 2

    )
    var city="New York" //-------------------------------->Line 3
    func main() {
    fmt.Println(custName, age, phoneNo)
    }

    • StuartLittle 22 7023377442

      Correct
    • B

      Stuart Little 22 7023377442

    • C

      StuartLittle227023377442

    • D

      StuartLittle 227023377442

  5. Question 5

    What will be the output of the below code?

    package main
    import "fmt"
    func main() {
    str1 := "A"
    str2 := "B"
    fmt.Println((str1[0]+str2[0]))
    }

    • AB

      Correct
    • B

      131

    • C

      195

    • D

      A+B

  6. Question 6

    What will be the output of the below code snippet?(Assume all the necessary imports are done/given)

    func main() {
    a := strings.Split("Hello World", "o")
    fmt.Println(a[2])
    }

    • W

      Correct
    • B

      orld

    • C

      rld

    • D

      Wo

  7. Question 7

    Tom got a task to create a function to update the contact details stored in slice ‘contactDetail’ with the following numbers: “7597925446”,”7597174532”.

    Complete the function ‘updateContact’ given below. (Assume all the necessary imports are given)

    func updateContact(mobileNo []string) {
    _______ // Line 1
    _______ // Line 2
    }
    func main() {
    contactDetail := []string{"143-676-2001 |","424-978-2469 |","202-333-1111"}
    fmt.Println("Old Contact Details", contactDetail)
    _______ //Line 3
    fmt.Println("Updated Contact Details", contactDetail)
    }

    • Line 1: mobileNo = "7597925446 |"

      Line 2: mobileNo = "7597174532 |"

      Line 3: updateContact(contactDetail)

      Correct
    • B

      Line 1: mobileNo[0] = "7597925446 |"

      Line 2: mobileNo[1] = "7597174532 |"

      Line 3: updateContact(contactDetail)

    • C

      Line 1: mobileNo[1] = "7597925446 |"

      Line 2: mobileNo[0] = "7597174532 |"

      Line 3: updateContact(contactDetail)

    • D

      Line 2: mobileNo = "7597925446 |"

      Line 1: mobileNo = "7597174532 |"

      Line 3: updateContact(contactDetail)

  8. Question 8

    Consider the code given below and choose the correct option.
    package main
    import (
    "fmt"
    )
    func recovery() {
    recoverPanic := recover()
    fmt.Println("From Recovery: ", recoverPanic)
    }
    func getValue(array []int, index int) int {
    defer recovery()
    if len(array) > index {
    return array[index]
    } else {
    panic("Array Index out of bound")
    }
    }
    func main() {
    intArray := []int{10, 5, 15, 20, 25}
    fmt.Println(getValue(intArray, 0))
    getValue(intArray, 5)
    fmt.Println("end of main")
    }

    • From Recovery: <nil>
      10
      From Recovery: Array Index out of bound
      end of main

      Correct
    • B

      10
      From Recovery: Array Index out of bound
      end of main

    • C

      From Recovery: <nil>
      From Recovery: Array Index out of bound
      end of main

    • D

      From Recovery: <nil>
      From Recovery: Array Index out of bound
      10
      end of main

  9. Question 9

    What will be the output for the below-mentioned code snippet?
    package main

    import "fmt"
    func main() {
    var prog string = " "
    for ele, _ := range "Hello World" {
    if(ele=='m' || ele=='w'){
    prog += string(ele)
    }
    }
    sum :=0
    for index, _ := range prog{
    sum += index;
    }
    fmt.Println(sum)
    }

    • 1

      Correct
    • B

      10

    • C

      0

    • D

      7

  10. Question 10

    What will be the output for the below-mentioned code snippet?
    package main

    import "fmt"

    func main() {

    arr := [3][3]string{{"C#", "C", "Ruby"}, {"Java", "Python", "Typescript"},
    {"CSS3", "Go", "HTML"}}

    for x := 0; x < 3; x++ {
    for y := 0; y < 3; y++ {
    if x==y || x==3{
    fmt.Println(arr[x][y])
    }
    }
    }
    }

    • C#
      Python
      HTML

      Correct
    • B

      Java
      Python
      Typescript

    • C

      CSS3
      Go
      HTML

    • D

      C#
      C
      Ruby

Pricing

Pay once. Clear every cert this year.

One subscription, full Telegram channel access, every PDF posted during your membership.

Monthly
50% OFF
₹1,300₹2,600
Per month · cancel anytime
  • Full access to all 1,357+ certifications
  • Monthly updated question banks
  • Telegram private channel access
  • Cancel anytime
Get Monthly
POPULAR
Quarterly
44% OFF
₹1,800₹3,200
That's ₹600/mo · billed for 3 months
  • Everything in Monthly
  • Save ₹2,100 vs monthly billing
  • Priority answer key requests
  • Best for increasing DQ score fast
Get Quarterly
BEST VALUE
Lifetime
52% OFF
₹2,400₹5,000
One-time · lifetime access
  • Everything in Quarterly
  • Lifetime channel access — no renewals
  • All future certifications included
  • Priority response from admin team
Get Lifetime
FAQ

Common questions, straight answers.

A monthly-updated Telegram channel where we post real exam-pattern question banks and detailed answer keys for 1,357+ Infosys Lex certifications. You join once, you get every PDF posted during your membership.

Right after payment on our Graphy page, you'll receive a private invite link to the Telegram channel. Access is instant — usually under 30 seconds.

We compile question banks from the actual Lex test pattern, sourced and verified by 180K+ community members who've recently cleared these exams. Match rate is consistently 85–95%.

Every single month. When Infosys rolls out new versions of certifications, we post updated dumps within 7–10 days. You'll see channel activity weekly.

Clearing certifications is one of the highest-weighted DQ factors. Members typically clear 3–5 certifications in their first 3 months, which moves DQ scores up by a full band.

i
InfyLexDumps

Independent exam preparation platform for Infosys Lex certifications. Real exam-pattern question banks, monthly updates, 180K+ community members.

Join Premium Telegram
Contact
  • @prepflixadmin
  • admin@prepflix.net
This platform is an independent educational resource and is not affiliated with or endorsed by Infosys Ltd. All certification names referenced are property of their respective owners.
© 2026 InfyLexDumps
Join Premium Telegram