Pramod Thakur
What result would print from the following code snippet Console.WriteLine("1234".GetType()); A:) Application won't compile B:) 1234 System.String C:) System.String D:) None of above
By Pramod Thakur in .NET on Dec 14 2014
  • Suresh Mogudala
    Jan, 2015 12

    GetType method will returns the type of Parameter.you have Placed string type so It will returns the System.String. If you pass 123.GetType() will returns System.Int32. Good one.

    • 3
  • Pramod Thakur
    Dec, 2014 14

    C:) System.String

    • 2
  • Mahen Singh
    Aug, 2017 22

    System.String

    • 1
  • Kanniyappan Krish
    Jan, 2015 13

    @SURESH MOGUDALA Good explanation.

    • 1
  • Gulam Rasul
    Feb, 2019 27

    D

    • 0
  • mohammad imran
    Feb, 2018 1

    C

    • 0
  • Juliana Buonanno
    Jun, 2015 23

    I am looking to hire a .net Web development team lead in Lee Summit, MO.(USA) .net experience, TFS, leadership and web service experience is required. If you know anyone who fits this senior level role, please let me know! Send resumes to [email protected] , thanks!

    • 0
  • sonu kumar
    Jun, 2015 10

    C:) System.String

    • 0
  • Manish Srivastava
    Feb, 2015 25

    C

    • 0
  • Hari Prakash Balineni
    Feb, 2015 19

    c

    • 0
  • Rajat Jain
    Jan, 2015 15

    System.String

    • 0
  • nisheeth Mathur
    Jan, 2015 15

    B:) System.String

    • 0
  • saswat baral
    Jan, 2015 11

    C:)System.String

    • 0
  • Munesh Sharma
    Jan, 2015 7

    System.String

    • 0
  • Pramod Thakur
    Dec, 2014 25

    @amit ghuge: Please check the answer before posting.. Answer is System.StringPlease run the above code and see result would be System.String

    • 0
  • Amit Ghuge
    Dec, 2014 23

    Answer would be B e.g 1234 System.String

    • 0
  • Amit Ghuge
    Dec, 2014 23

    Answer would be B e.g 1234 System.String

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS