ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  Dot Net  >>  Dot Net General
 
 


 

 
 Dot Net Framework interview questions  Dot Net Framework Interview Questions
 Dot Net Remoting interview questions  Dot Net Remoting Interview Questions
 Dot Net WindowsForms interview questions  Dot Net WindowsForms Interview Questions
 Dot Net General interview questions  Dot Net General Interview Questions
 Dot Net AllOther interview questions  Dot Net AllOther Interview Questions
Question
Give An example of a ctype and directcast.
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Give An example of a ctype and directcast.
Answer
# 1
textbox = CType(obj, TextBox)
textbox = DirectCast(obj, TextBox)
 
Is This Answer Correct ?    10 Yes 5 No
Narayan Sahu(netx)
 
  Re: Give An example of a ctype and directcast.
Answer
# 2
Dim t As String = "5"
Dim s As Integer = CType(t, Integer)

Dim t As String = "5"
Dim w As String = DirectCast(t, String)
 
Is This Answer Correct ?    12 Yes 0 No
Sajid
 
 
 

 
 
 
Other Dot Net General Interview Questions
 
  Question Asked @ Answers
 
Integer & struct are value types or reference types in .NET?  1
What is Method Overriding? How to override a function in C#?  1
How many types of exception handlers are there in .NET?  1
what is event inheritance and event delegation?  1
What is the Difference between imperative and interrogative code?  1
Directcast(123.34,integer) - should it throw an error? Why or why not? Wipro1
what is the use of "mustinherit" keyword?  2
why .net does not support multiple inheritance? Microsoft2
What is WSDL and disco file ? TCS3
why do you want to join deloitte, where do you exactly fit in. Deloitte1
Types of JIT and what is econo-JIT ? TCS2
syntax for binding the data from database Satyam1
Difference between Panel and GroupBox classes?  2
What base class do all Web Forms inherit from?  1
What is Global Assembly Cache (GAC) and what is the purpose of it? Ksb2
What are Generics? Where do we use them. Value-Labs2
What are server controls? Avanade1
ctype(123.34,integer) - should it throw an error? Why or why not? Wipro1
what is viewstate?  1
What is the managed and unmanaged code in .net? Deltech3
 
For more Dot Net General Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com