Sie sind auf Seite 1von 4

1. A statement is a command that performs an action.

2. Statements in C# follow a well-defined set of rules describing their format

and construction. These rules are collectively known as syntax.

3. Identifiers are the names that you use to identify the elements in your

programs.

4. You can use only letters (uppercase and lowercase), digits, and underscore

characters.

5. An identifier must start with a letter or an underscore.

6. C# is a case-sensitive language.

7. A variable is a storage location that holds a value.

8. The equal sign (=) is the assignment operator.

9. You must assign a value to a variable before you can use it; otherwise, your

program will not compile. This requirement is called the definite assignment

rule.

10. The values on which an operator performs its function are called operands.

11.The symbols +, –, *, and / are called operators

12.Except for the plus operator (+), you can’t use the arithmetic operators on

values of type string.

13.You cannot use any of arithmetic operator with values of type bool.
14.If you evaluate 10 + NaN, the result is NaN,

15.If you evaluate 10 + Infinity, the result is Infinity.

16.The value of the expression Infinity * 0 is NaN.

17.Precedence governs the order in which an expression’s operators are

evaluated.

18.Associativity is the direction (left or right) in which the operands of an

operator are evaluated.

19.The ++ and -- operators are unary operators.

20.The value returned by count++ is the value of count before the increment

takes place.

21.The value returned by ++count is the value of count after the increment

takes place.

22.Any statements that occur after the return statement are not executed

23.The proper C# term for a variable defined by a class is field

24.If two identifiers have the same name and are declared in the same scope,

they are said to be overloaded.

25.You can’t declare two methods with the same name that differ only in their

return type.

26.A bool variable can hold one of two values: true or false.
27.AND operator, which is represented by the && symbol, and the logical OR

operator, which is represented by the || symbol. Collectively, these are

known as the conditional logical operators.

28.&& operator and the || operator have a different precedence: && is higher

than ||.

29.You can use switch only on certain data types, such as int, char, or string.

30.Class is the root word of the term classification.

31.Encapsulation is sometimes referred to as information hiding.

32.A constructor is a special method that runs automatically when you create

an instance of a class.

33.A static method does not depend on an instance of the class, and it cannot

access any instance fields or instance methods defined in the class; it can use

only fields and other methods that are marked as static.

34.By prefixing the field with the const keyword, you can declare that a field is

static but that its value can never change.

35.A static class can contain only static members.


36.An anonymous class is a class that does not have a name.

37.Most of the primitive types built into C#, such as int, float, double, and char

(but not string) are collectively called value types.

38.The string type in C# is actually a class.

39.You cannot assign a nullable variable to an ordinary value type variable.

40.When you want the method itself to initialize the parameter. You can do this

with the out keyword.

41.When you call a method, the memory required for its parameters and its

local variables is always acquired from the stack.

42.When you create an object (an instance of a class) by using the new

keyword, the memory required to build the object is always acquired from

the heap.

43.Heap memory is not infinite.

Das könnte Ihnen auch gefallen