Click here to Skip to main content
15,912,400 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
For Each name As String In names

strname +=name
Next



and the options given is:-

a.one dimensional array

b.Arraylist

c.both a& b

d.String

and explain it..
Posted
Updated 22-Aug-13 7:48am
v2
Comments
Trak4Net 22-Aug-13 13:42pm    
Not sure I understand. Are you trying to find out what Type "names" would be in the For Each loop? And are you giving examples of possible answers at the bottom or are you wanting to know what all of those Types are?
[no name] 22-Aug-13 13:43pm    
Doing homework? Taking a test? In a job interview? What did your research tell you? Why did you reach that conclusion?
Sergey Alexandrovich Kryukov 22-Aug-13 18:12pm    
If you are going to learn computing using those multiple-choice tests, I would advise you give up right now and stop wasting your life on it. You cannot get any knowledge or skills.
—SA

1 solution

This is your homework, and I'm afraid you have got to pay more attention to what you are doing.
That is not C# code; it's VB instead, so you appear to be trying to get us to do the wrong classes homework...

Since it is homework, I'm not going to just give you an answer, but I'll give you two clues:

1) it's not (d)
2) look at what a For Each loop works on, then examine the possible types. http://msdn.microsoft.com/en-us/library/vstudio/5ebk1751.aspx[^] should help.

If you need more help, we will be happy to oblige, but only if you show us that you have done some of the work yourself, but got stuck.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900