At First glance, i thought answer will be dictionary because in my point of view, storing name of students of class should be like : key as Class1, value as list of students, key as class2, value as list of students; key as class3 , value as list of sudents and so on.
Array is an collection of same datatype and has an fixed value. According to the above question there will be fixed number of students in a class. So all student names can be stored in an Array variable.
Array is a collection of objects which shares a common property in general. Since the students belongs to the same class, it makes much more sense to save their data in an array variable like this:
classA = {student1, student2, student 3….}
Dictionary generally has a key-value pair structure of data storage & it won’t be an ideal think to save the data like this: