Which statement from below is correct to initialize a List to include  5 subject names of a week using C#?   A. List subjects = new List() B. List subjects=new List C. string subjects = new double[7] D. int[] subjects = new string[8]

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter5: Working With Excel Tables, Pivottables, And Pivotcharts
Section5.3: Pivottable And Pivotchart
Problem 5QC
icon
Related questions
Question

Which statement from below is correct to initialize a List to include  5 subject names of a week using C#?

 

A.
List<string> subjects = new List<string>()

B.
List<double> subjects=new List<double>

C.
string subjects = new double[7]

D.
int[] subjects = new string[8]

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Lists
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT