can anyone help for the last quiz in c# section?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

can anyone help for the last quiz in c# section??

Fill in the blanks to declare a dictionary to map names and ages and John's, Ann's and Peter's ages. Print John's age. Dictionary< string , int> d = new Dictionary<string, int >(); d .Add("John", 24); d.Add("Ann", 18); d.Add("Peter", 27); string name = "John"; Console.Write(d name );

5th Dec 2020, 5:53 PM
Yogesh Bhosale
Yogesh Bhosale - avatar
3 Answers
+ 1
Thank you sir, actually I was thinking that answer would be abc.Keys or something because it had 3 blank spaces in first block and 2 blank spaces in second block. So, it didn't strike my mind that answer can be just brackets . Thank you once again !!
6th Dec 2020, 5:31 PM
Yogesh Bhosale
Yogesh Bhosale - avatar
+ 1
string,new,d,[ , ]
27th Feb 2022, 2:06 PM
Malavika Natarajan
0
Can you please tell me along with an example?? I am not able to find it even now!!
6th Dec 2020, 10:46 AM
Yogesh Bhosale
Yogesh Bhosale - avatar