- What is the keyword we use in the program function when we are using a pointer declaration?
- Sealed
- Safe
- Internal protected
- Unsafe
- What would be the output of the following code snippet?
float f = 100.23f;
int i = f;
Console.WriteLine(i);
-
- 100
- Compile-time error
- 101
- Runtime error
- What would be the output of the following code snippet?
string s = "hello australia";
var contains = s.Contains("A");
if(contains)
{
Console.WriteLine("it's present");
}
else
{
Console.WriteLine("it's not present");
}
- It's present
- It's not present
..................Content has been hidden....................
You can't read the all page of ebook, please click
here login for view all page.