Quiz

Question 3–1.

What values can a bool type have?

Question 3–2.

What is the difference between an int and an Int32?

Question 3–3.

Which of the following code statements will compile?

    int myInt = 25;
    long myLong = myInt;
    int newInt = myLong;
Question 3–4.

What is the difference between an int and a uint?

Question 3–5.

What is the difference between a float and a double?

Question 3–6.

Explain definite assignment.

Question 3–7.

Given the following declaration, how would you refer to the constant for LightJacketWeather and what would its value be?

    enum Temperatures
    {
        WickedCold = 0,
        FreezingPoint = 32,
        LightJacketWeather,
        SwimmingWeather = 72,
        BoilingPoint = 212,
    }
Question 3–8.

What is an expression?

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset