logo CodeStepByStep logo

ParameterMysteryExam1

Language/Type: VB parameters return

The following console program uses parameters and produces five lines of output. What are they?

Public Module ParameterMysteryExam1
    Public Sub Main()
        Dim x As String = "vb"
        Dim y As String = "tyler"
        Dim z As String = "tv"
        Dim rugby As String = "Hamburger"
        Dim vb As String = "donnie"

        Hamburger(x, y, z)
        Hamburger(z, x, y)
        Hamburger("rugby", z, vb)
        y = Hamburger(y, rugby, "x")
        Hamburger(y, y, "vb")
    End Sub

    Public Function Hamburger(y As String, z As String, x As String)
        Console.WriteLine(z & " and " & x & " like " & y)
        Return z
    End Function
End Module
line 1
line 2
line 3
line 4
line 5

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.