Quiz 2 answers CSE100, Autumn 1999
This quiz is out of 10 points.


1. Explain in words what the following assignment statement does:
        homeTeam = homeTeam + 6

The value of homeTeam is increased by 6 and the result becomes the new value of homeTeam.


2. Explain briefly the meaning of the following conditional statement, i.e., what happens when the computer executes it?
        If temp < 32 Then
                state = "solid"
                form = "ice"
        End If

The value of the variable temp is tested to see if it is less than 32. If so, then the two assignment statements are executed; otherwise they are not.


3. Variables can have many types of values in programming, but in FIT100 we will use three types. Give the programming term for
        a. whole numbers
        b. letter sequences
        c. decimal numbers

Integers, strings and doubles (respectively)


4. What does the operator "concatenate" do?

Combines two strings together -- or -- connects two strings together.