String Literals Multiple Questions and Answers.




1.What is the Size of ‘Char’ datatype ?
A. 8 bit
B. 12 bit
C. 16 bit
D. 20 bit

2.What will be the output of the following C# code ?
A. I am a human bein c
B. I am a human being
C. I am a human being c
D. I am a human bein

3.Which is the String method used to compare two strings with each other ?
A. Compare To()
B. Compare()
C. Copy()
D. ConCat()

4.What will be the output of the following C# code ?
A. PakisPunjab
B. PakistanPunjab
C. Pakistan
D. Pakistan Punjab

5.What will be the output of the following C# string? (Enter a String : PAKISTAN).
A. PAK-IS-TAN
B. PAKISTAN
C. NATSIKAP
D. None of above

»



Quick Links

GAT Subject



   Computer Science    English    Agriculture    Botany    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC    PPSC    NTS