Difference between switch and if statements
What is the ternary operator?
1) what does break command do?
2) what does continue command do?
3) what is ‘uint’
1) command takes control to the first command after while loop
2) ignores everything in loop on current pass and goes to the top of the loop again
3) unsigned integer that has to be positive (takes up less memory as you know value is always +)
How do you generate Random numbers?
What is command line input?
What are the two types of string literals?
- @quoted: start with @ as well as speed marks
How do we read contents from a file?
What’s the difference between .ReadAllLines and .ReadLines?
- .ReadLines reads each line as a text string which can be looped through with a foreach loop
How do i write text to a file?
1) what is a class?
2) what is an object?
1) defines a new type of object - defines its common characteristics
2) object is individual instance of that class
Difference between methods and properties?
- Properties are the description of the object
What is the class identifier?
Name given to class
What two types of things can be contained in a class?
- Functions
What’s a void function?
Returns no values
What is the declaration of an object called?
Instantiation
What are constructors?
-Take in parameters and change the private values equal to these values
What is a static class member?
What are the two ways to pass data to a method?
What is the ‘out’ keyword
-can be used in the method header specifically for returning values
What is method overloading?
What is a methods signature?
What do properties allow? What does value mean? What are accessor methods?
What are constructors?
What is a destructor?