Observe the following dictionary: 

dict1 = new Dictionary(){{"VIP",7.5},{"Regular",2.5}} 

And, if the assign activity has the expression : 

dict1["Guest"] = 0.5

 Will dictionary throw an error for the assign activity?

Yes
No
Correct Option -

In the provided dictionary, the key "Guest" has not been initially defined, so attempting to assign a value to it will not throw an error. Instead, it will create a new key-value pair with the key "Guest" and the value 0.5.

So the correct option is:

Option2 => No

To get all Infosys Certified UIPath Associate Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in