<< Home>>MS.Net Questions:Page 1



MS.Net Questions


Page 1 2 3>>>
Page 1 2 3 >>>
1. What is a computer? (See “ Programming Languages.”)
2. Name Three Advantages of C# over other programming languages. ( See “ Enter c#.” )
3. What is a comment (to a programmer) & what is it Used For / ( See “A Review of the Program.”)

4. What does the WriteLine() command do? What is the difference between Write () and WriteLine()? ( See “ The Fahrenheit to Celsius Conversion Program.”) 5. What is the Potential problem using an integer variable when converting a Farhrenheit temperature in Celsius? ( See “ Demonstrating the Limitations common to all integer types.”) 6. What one absolute statements can you make about all C# expressions? (See “Numeric Constants.”) 7. Can one type of variable be converted be converted into another? How? (See “ Changing Types”) 8. What control command is optional on the end of an if Statement? (See “Making Decisions in the World.”) 9. From a programmer’s perspective, what are the positive and negative effects of indenting embedded clauses? (See “Indenting code for readability.”) 10. What is a Boolean? What are the legal values of a bool variable? Name tow operators that are legal for bool variable. (See “Performing Boolean Arithmetic.”) 11. Why do int variable name in this book start with an “n”/ (see the Variable naming” sidebar. ) 12. Name the Loops that can be used in c# Programming? ( See Looping Commands”) 13. What are the two special controls that can be used in loops? What are they used for/ (See “ Special Controls.”) 14. What do we mean by the scope of variable?( See “ Scope Rules”) 15. What is the most common of all looping constructs? (See “The for loop.”) 16. When n starts out as 5, what is the value of n++? (See “ why have an increment operator, and why two of them?”) 17. Consider the following declaration (See “The Fixed-value array”):
    a. How many elements are in nArray? b. What is the index of the first elements in nArray? c. What is the index of the last elements in nArray?
18. What is the advantage of the foreach control over the for control when iterating throught arrays? (See “ One last Looping Command: for each.”) 19. In what way is a class semantically similar to an array? What is the primary difference? (See the first paragraph in “ Defining a class.”) 20. Define a class pool containing an int element nDepth and a double element dAea. (See Defining Class.”) 21. Declare a Pool object and assign it to the reference variable pool1.(See “Creating an Object.”) 22. Set the depth of the Pool object to 2 and the surface area to 50. (Don’t worry about the units of length or area.) 23. Create a second reference called pool2 that refer to the same Pool object as pool1. 24. Declare a function max ( ) that take no arguments and returns nothing (See “ Defining and Using a Function.”) 25. Define a function max ( ) that accept two int variable as its arguments.(See “Passing multiple arguments to functions.”) 26. Defrine a functions max ( ) that accepts two int varbles as its argument and that returns an int. (See “Returning Values from a Function.”) 27. What is a method? 28. using the Pool class the quiz in Session 7, how would a method MaxDepth ( ), which accepts another Pool object and returns the maximum depth, be declared? 29. What would be the full name of the MaxDepth ( ) function? (See “ Expanding a Function’s Full Name.”) 30. What is this ? (See “ The this reference”)
Page 1 2 3>>>