Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > VB / ASP.NET Technologies > vb / asp.net Interview / Technical Questions
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

vb / asp.net Interview / Technical Questions Kindly solve an many as questions you can. It will sharpen your skills and those solutions will help others too.

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 30-01-08, 02:28 PM   #1 (permalink)
Junior Member
 
Join Date: Jan 2008
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1 jagadish980 is on a distinguished road
Question Switch Statement

int iNum = 2;
switch (iNum)
{
case 1:
Response.Write(iNum);
case 2:
Response.Write(iNum);
break;
}

What is the output??

Output
A: 22
B: 2
C: Compiler Error
D: None of the above
jagadish980 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-08, 07:24 PM   #2 (permalink)
Junior Member
 
Join Date: Jul 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1 rreddy is on a distinguished road
Re: Switch Statement

Answer is c
rreddy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
C language - When is a switch statement better than multiple if statements? GEEK ds. c , c++ Interview / Technical Questions 3 08-02-08 03:48 PM
J2EE - What is the difference between an if statement and a switch statement? preethisingh Java Interview / Technical Questions 0 23-01-07 03:12 PM
J2EE - What restrictions are placed on the values of each case of a switch statement? preethisingh Java Interview / Technical Questions 0 23-01-07 03:04 PM
C language -When is a switch statement better than multiple if statements? GEEK ds. c , c++ Interview / Technical Questions 0 23-01-07 01:18 PM
C language -Can we use string in switch statement? GEEK ds. c , c++ Interview / Technical Questions 0 23-01-07 01:10 PM


All times are GMT +6.5. The time now is 09:48 AM.





Search Engine Optimization by vBSEO 3.1.0