Documente Academic
Documente Profesional
Documente Cultură
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.
6. C# is a case-sensitive language.
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.
12.Except for the plus operator (+), you can’t use the arithmetic operators on
13.You cannot use any of arithmetic operator with values of type bool.
14.If you evaluate 10 + NaN, the result is NaN,
evaluated.
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
24.If two identifiers have the same name and are declared in the same scope,
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
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.
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
34.By prefixing the field with the const keyword, you can declare that a field is
37.Most of the primitive types built into C#, such as int, float, double, and char
40.When you want the method itself to initialize the parameter. You can do this
41.When you call a method, the memory required for its parameters and its
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.