Questions

  1. What is the keyword we use in the program function when we are using a pointer declaration?
    1. Sealed
    2. Safe
    3. Internal protected
    4. Unsafe
  2. What would be the output of the following code snippet?
 float f = 100.23f;
int i = f;
Console.WriteLine(i);
    1. 100
    2. Compile-time error
    3. 101
    4. Runtime error
  1. 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");
}
  1. It's present
  2. 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.
Reset
18.222.22.145