Describe TextBox control ( 5 )
What property does TextBox controls?
Clear TextBox control content
textBox1.Text=””
How to declare variable in C#?
String text
double currency_rate
What are the bytes used in int, float and double?
What is char used for?
What is most data type known as?
Ways to use variables ( 3 )
What does a local variable belongs to?
What is the lifetime of a variable?
List out the rules of variables ( 4 )
Can the value of int and double surrounded by quotes?
What does the decimal data type indicates?
What is the advantages of decimal compared to double
How to declare decimal data type?
How to type casting?
wholeNumber = ( int ) moneynumber
List out arithmetic calculation ( 5 )
List out the result of mixed data type ( 3 )
What are the types of input collected from the keyboard?
How to let string literals input from keyboard to convert string into numeric data types?
How to show numeric values in lablel?
List out format strings for the ToString method
1.”N” or “n”
- Number Format
- 12.3 ToString (“n3”) = 12.300
2. “F” or “f”
- Fixed-point Scientific Format
- 123456.0 ToString(“f2”) = 123456.00
3. “E” or “e”
- Exponential Scientific Format
- 123456.0 ToString(“e3”) = 1.235e + 005
4. “C” or “c”
- Currency Format
- -1234567.8 ToString(“C”) = ( $1,234,567.80 )
5. “P” or “p”
- Percentage Format
- .234 ToString(“P”) = 23.40%
What is an exception?
What will happen if an exception isn’t handled by the program?
List out the codes for exception handling
try{
}
catch {
}