ANSWERS|ALREADY GRADED A
Is C# case sensitive? Correct Ans- yes
name a type Correct Ans- class
what does it mean that C is object oriented Correct Ans- each function
belongs to a type such as a class
a function that is a member of a class is called a Correct Ans- method
can you have a variable outside of a class Correct Ans- no you can't
what is used instead of the include predessecor Correct Ans- namespace
pre defined types Correct Ans- int, bool, char
what is one of the most important user defined types Correct Ans- class
what two types of members does class contain Correct Ans- data
members (fields, store data)
function members (methods) perform operators on data
, define the method and the class in Console.WriteLine("Hello World")
Correct Ans- WriteLine is a method from the Console class. Which is a
type defined in the System namespace
A program with top level statements can have, in order, three things
Correct Ans- using directives, statements (what's added in the main
method), more type/namespace declarations
what is a data type Correct Ans- a type is a set of values and operations
that are permitted on valyes
simple pre defined types Correct Ans- int, long, double, char, uint
non simple pre defined types Correct Ans- object, string
what do the different catagories of type mean Correct Ans- it defines
how the type is stored in memory
we can catogarize any type into what Correct Ans- a value type, or a
reference type
example of a value type Correct Ans- needs only one allocated memory
space that stores actual data, for example int x = 5;
what is a reference type Correct Ans- stores the reference to some other
memory location where the actual data is stored string str = hello