Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Create a Go program to concatenate two strings firstName = "John" and lastName = "Doe".

Easy

Problem Statement

Create a Go program to concatenate two strings firstName = "John" and lastName = "Doe".

Sample Input

Two predefined strings.

Sample Output

John Doe

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
package main import "fmt" func main() { // Concatenate two strings and print the result }
Log in or sign up to run or submit your code.Log inSign up
Input
Two predefined strings.
Expected Output
John Doe