Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

Xamarin.iOS Online Programming Skills Test

Topics Covered

  • Custom Controls
  • Push notifications
  • Custom Fonts
  • SQLite Storage
  • Working with Images
  • Files
  • video
  • SMS
  • Webview
  • Map
  • Phone call

Useful for hiring

  • Xamarin Developer
  • Xamarin iOS Developer
  • Xamarin Consultant

Start hiring job-fit candidates using this assessment

GET A DEMO

"We are impressed with Interview Mocha's comprehensive IT skill test batteries and their ability to provide tailor-made assessments quickly. The results we got from Interview Mocha exceeded our expectations, employees found the tests quick, fun, and a benchmark of their knowledge."

Ajay Garg, Siemens,
Associate Manager
Question

How will you do a phone call from your Xamarin.ios Application?

Answer
    • var url = new NSUrl ("Call:" + PhoneTextField.Text);
      UIApplication.OpenUrl (url);
      if (!UIApplication.SharedApplication.OpenUrl (url)) {
      var av = new UIAlertView ("Not supported",
      null, "OK", null);
      av.Show (); };

    • Telephone service can not implemented from application.

    • var url = new NSUrl ("tel:" + PhoneTextField.Text);
      UIApplication.SharedApplication.OpenUrl (url);
      if (!UIApplication.SharedApplication.OpenUrl (url)) {
      var av = new UIAlertView ("Not supported",
      "Scheme 'tel:' is not supported on this device",
      null, "OK", null);
      av.Show (); };

    • var url = new NSUrl ("telphone:" + PhoneTextField.Text);
      UIApplication.SharedApplication.OpenUrl (url);
      if (UIApplication.SharedApplication.OpenUrl (url)) {
      var av = new UIAlertView ("Not supported",
      null, "OK", null);
      av.Show (); };

Question

How will you show annotation map in Xamarin.ios Application?
Where BasicMapAnnotation is a subclass which inherits MKAnnotation.

Answer
    • var annotation = new BasicMapAnnotation (new CLLocationCoordinate2D(48.857,2.351), "Paris", "City of Light");
      mapView.AddAnnotation(annotation);
      var span = new MKCoordinateSpan(MilesToLatitudeDegrees(2), MilesToLongitudeDegress(2, coords.Latitude));
      mapView.Region = new MKCoordinateRegion( span);

    • var annotation = new BasicMapAnnotation (new CLLocationCoordinate2D(48.857,2.351), "Paris", "City of Light");
      var span = new MKCoordinateSpan(MilesToLatitudeDegrees(2), MilesToLongitudeDegress(2, coords.Latitude));
      mapView = new MKCoordinateRegion( span);

    • var annotation = new BasicMapAnnotation (new CLLocationCoordinate2D(48.857,2.351), "Paris", "City of Light");
      mapView.AddAnnotation(annotation);
      var coords = new CLLocationCoordinate2D(48.857,2.351);
      var span = new MKCoordinateSpan(MilesToLatitudeDegrees(2), MilesToLongitudeDegress(2, coords.Latitude));
      mapView.Region = new MKCoordinateRegion(coords, span);

    • var annotation = new BasicMapAnnotation (new CLLocationCoordinate2D(48.857,2.351), "Paris", "City of Light");
      var coords = new CLLocationCoordinate2D(48.857,2.351);
      var span = new MKCoordinateSpan(MilesToLatitudeDegrees(2), MilesToLongitudeDegress(2, coords.Latitude));
      mapView.Region = new MKCoordinateRegion(coords, span);

Question

How will you check if the internet is connected to Xamarin.ios Application or not?

Answer
    • if(!Reachability.IsHostReachable("http://google.com"))
      {
      // Put alternative content/message here
      }
      else
      {
      // Put Internet Required Code here
      }

    • NetworkStatus internetStatus = Reachability.InternetConnectionStatus();

    • HttpWebRequest iNetRequest = Create (CheckUrl);
      iNetRequest = 5000;
      WebResponse iNetResponse = iNetRequest.GetResponse ();
      // Console.WriteLine ("...connection established..." + iNetRequest.ToString ());
      iNetResponse.Close ();

    • HttpWebRequest iNetRequest = (HttpWebRequest)WebRequest (CheckUrl);
      iNetRequest.Timeout = 5000;
      WebResponse iNetResponse = iNetRequest.GetResponse ();
      // Console.WriteLine ("...connection established..." + iNetRequest.ToString ());
      iNetResponse.Close ();

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO