Multiple choice technology programming languages

Consider following statements: 1. System.Collections.ArrayList can store values of only single data type 2. System.Collections.ArrayList can store values of multiple data types 3. System.Collections.Generic.List can store values of multiple datatypes 4. System.Collections.Generic.List can store values of only single data type Which of the above is false:

  1. Only 2

  2. Both 1 and 3

  3. 4

  4. Both 2 and 4

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

System.Collections.ArrayList is non-generic and CAN store multiple data types (statement 2 is true, so 1 is false). System.Collections.Generic.List is generic and enforces a single type (statement 4 is true, so 3 is false). The question asks which statements are FALSE - statements 1 and 3 are both false.