Question: Which is the smallest unit of code in a C# program? Know the features of the C# basic data types. Explain the important object-oriented characteristic

Which is the smallest unit of code in a C# program?

Know the features of the C# basic data types. Explain the important object-oriented characteristic common to all of the C# basic data types.

Define what is a data type

What kind of data can be stored in variables of type string and char?

What is a class? What is: a) an object attribute, b) the state of an object, c) an instance, d) a method/property call (or invocation), e) the difference between a method and a read/write property?

What is method header? What is a method signature?

If a method header does not declare the access modifier, what is the accessibility level of the method?

What is an application class? What is a service class?

Why the code of a service class must not write to the console window?

What is encapsulation?

What is class inheritance?

What is the difference between static and nonstatic methods? How static and nonstatic methods are called in a C# program?

Which naming convention is used for creating a method?

Explain what the public and private access modifiers define. How can public/private methods be used?

What is a variable? Which naming convention is used for creating a variable identifier?

What is the difference between a variable declaration and a variable initialization?

What is a named constant? Which naming convention is used for creating a named constant?

In relation to a method, what is a parameter, what is an argument?

Know the comparison and logical Boolean operators and their precedence

Know the arithmetic operators and their precedence. Know the result of the evaluation of arithmetic expressions; integer vs. floating point arithmetic expression results.

How do the console input/output statements work?

What clause introduces a namespace in the source code of a class?

Know the results of applying numeric format specifiers (see Table 2-2)

Know how the different loop structures work. When do loops test their associated Boolean expressions?

Understand how the selection structures work (if and switch statements)

Given the description of a problem, identify the most important control structure (sequence, selection, or loop) to solve the problem. The most important control structure is the one which has the highest priority, the one which if it is not included in the logic, the program will not work regardless whether other structures included in the logic assist in solving the problem.

Example: Create a program which displays the sum of two user-supplied numbers. Which control structure (sequence, selection, or loop) is the most important one to solve the problem?

Analyze code and find syntax faults.

Array subscripts, array creation, array default values, the array Length property. The foreach loop

Use the Array methods BinarySearch() and Sort()

Class methods:

Declaration

Access modifiers

Static vs. nostatic

The return statement

What is the scope of variable: a) within a method? b) within a block?

What is the difference between parameters and arguments?

What is the difference between value parameters and reference parameters?

ref, out, and params method parameters

Which naming convention is used for creating a method name?

What are overloaded methods? Which syntax rules must be applied when creating overloaded methods?

Classes and objects:

What is a class?

Which naming convention is used for creating a class name?

What is an object?

What is the scope of a class attribute?

What is the state of an object?

What do the class instance variables represent?

Which access modifier should be used for hiding instance variables of a class?

Which value does operator new return when creating an instance of a class?

Property (methods) what are they, syntax and usage

Which naming convention is used for creating a property (method)?

What does the keyword this represent? Where is it used?

Constructors: what is their purpose? When the default constructor is automatically built? When the default constructor is not automatically built?

What is an overloaded constructor? Why overloaded constructors are necessary? What is a constructor initializer?

What is an overloaded operator? Which syntax rules must be applied when creating overloaded operators?

What is a C# interface type? What is the purpose of the IComparable interface?

Which naming convention is used for creating an interface type?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!