CIW Exam Questions

Which statement will print the capital attribute of the $kansas object?

Which statement will print the capital attribute of the $kansas object?

A.
print (“capital”=>$kansas);

B.
print {$kansas}=>(capital);

C.
print (capital)<={$kansas};

D.
print $kansas->{“capital”};