Buy Questpond's video subscriptions on
huge discount
.
Online: 1966
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Interviews
>
C#
>
Loading ...
Can you store multiple datatypes in an Array?
Posted by
Syedshakeer
on 9/14/2009 | Category:
C# Interview questions
| Views: 20190
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Select from following answers:
True
False
Maybe
All Above
Show Correct Answer
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous :
Webservices support data reader.
Next > :
Which keyword is used to prevent one class from be ...
Comments or Responses
Posted by:
Btomas
on: 7/9/2012 |
Points: 10
Cannot agree with an answer because you can store multiple types to object array:
public void Main()
{
List<string> cls = new List<string>();
cls.Add("teste");
object[] b = new object[101];
b(0) = true;
b(1) = 240;
b(2) = cls;
b(3) = "bubby";
List<string> clsC = b(2);
Console.WriteLine(clsC.Item(0));
Console.WriteLine(b(3));
Console.WriteLine(Information.TypeName(b(0)));
Console.WriteLine(Information.TypeName(b(1)));
Console.Read();
}
and results would be:
teste
bubby
Boolean
Integer
So the answer is wrong and should be
"true if used Object array otherwise is false"
or the question is badly formulated.
Login to post response
More Interview Questions by Syedshakeer
Which keyword is used to prevent one class from being inherited by ano ...
Response.Redirect() can be used to redirect from one page to another p ...
Which is the base class for TypedDataset
Which of the following class does not belong to Collection namespace ?
Which property of textbox cannot be change at run time?
How to get a row was inserted most recently in a table?
Which of the following Regular expression is used to validate a 10 dig ...
Validation Controls are non-visible controls?
Latest Interview Questions
Which method of HTTP Handler gets invoked when request is received?
What if Some one types the URL of web.config file in the browser?
What is wrong with this code? Server.transfer("Default.HTML&qu ...
Can an ASPX file contain more than one form marked with runat="se ...
In this Sample Code which catch block will be executed? try { i ...
A try block having 4 catch block will fire all catch block or not?
What are three test cases you should do while unit testing?
What debugging tools come with the .NET Framework SDK?
More ...