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
 


 

Company >> 247Customer >> 247Customer Questions
 
 247Customer aptitude test questions  247Customer Aptitute Test Questions (1)  DELL placement papers  DELL Placement Papers (1)  IBM interview questions  IBM Interview Questions (44)
 
Back to Questions Page
Question   What are SQL Jobs, please mention the use of it and how to create them. Rank Answer Posted By  
 Interview Question Submitted By :: Srikanth
I also faced this Question!!   © ALL Interview .com
Answer
sql job is scheduling the work into server and it will 
automatically run and finish the job 
for this we have to set the time.
what is the use of the job is
1) it check the database automatically
2)take a back up of database

for this job we have to start the Sqlserver agent and 
give the date and time for this particular job
 
0 Subramaniam
 
 
Question   How to consume a webservice in a windows application without adding through the web reference? Rank Answer Posted By  
 Interview Question Submitted By :: Srikanth
I also faced this Question!!   © ALL Interview .com
Answer
create a proxy class by using wsdl.exe.Once it done,through 
this class you can call webservice.
 
0 Sanjay
 
 
Question   What is the difference between response.redirect and server.transfer, how to choose one among the other? Rank Answer Posted By  
 Interview Question Submitted By :: Srikanth
I also faced this Question!!   © ALL Interview .com
Answer
Server.transfer transfer the page processing from one page
to another page without making a round trip back to the
client where as response.redirect redirect to another URL
and it make a round trip back to the client.

Response.Redirect can be used to redirect to external web
sites where as the Server.Transfer can be used only to
transfer to other pages of the same web site.
 
0 Richa
 
 
 
Answer
Server.Transfer transfers page processing from one page
directly to the next page without making a round-trip back
to the client's browser.  This provides a faster response
with a little less overhead on the server.  Server.Transfer
does not update the clients url history list or current url.
 Response.Redirect is used to redirect the user's browser to
another page or site.  This performas a trip back to the
client where the client's browser is redirected to the new
page.  The user's browser history list is updated to reflect
the new address.
 
0 Praveen Singh
 
 
Question   1. What is the difference between Cache and Session? 2. I cache limited to page like viewstate or it's accessible through out the application like session? 3. Which one is better when I've some data that is to be used across the application? Why is to better than the other? Rank Answer Posted By  
 Interview Question Submitted By :: Srikanth
I also faced this Question!!   © ALL Interview .com
Answer
1.
A. Sessions may not improve performance whereas Cache will
improve site performance.

B. Sessions may change from user to user whereas a single
Cache will be maintained for the entire application.

C. Cache wont maintain any state, whereas Sessions will
maintain separate state for every user.

2.
Yes Cache is accessible through out entire application
3.
Application beacuse application object is share by entire
application.
 
0 Praveen Singh
 
 
Question   How to handle errors in Stored Procedures. I want to display a message to the user in the .aspx page that is calling a stored procedure in it's code behind. please help me. Rank Answer Posted By  
 Interview Question Submitted By :: Srikanth
I also faced this Question!!   © ALL Interview .com
Answer
You can use RaiseError or use the TRY CATCH Programming in 
the Stored Procedure Code.

Thanks,
Bru Medishetty
www.LearnSQLWithBru,com
 
0 Bru Medishetty
 
 
Question   please tell me the query to get details of the employee having the second largest salary Rank Answer Posted By  
 Interview Question Submitted By :: Srikanth
I also faced this Question!!   © ALL Interview .com
Answer
select min(a.standardcost) from 
(
select distinct top 2  StandardCost
from Production.ProductCostHistory
order by standardcost desc
)a
 
0 Sushil
 
 
Answer
SELECT * FROM Emp e1
WHERE 2 = (SELECT COUNT(*) FROM Emp e2 WHERE e1.Salary <= 
e2.Salary)
 
0 Krishna Mohan Thamisetty
 
 
Answer
select top 2(salary) from emp_sal where
salary in (select sal from emp_sal order by sal desc)
 
0 Ravikiran
 
 
Answer
Select * from EmpTbl Where Salary = (Select Max(Salary) from
EmpTbl Where Salary < (Select Max(Salary) from EmpTbl)
 
0 Devendra Dwivedi
 
 
Answer
Select max(Salary) from employeetable where salary < (select
max(salary) from Employeetable)
 
0 Shivangi
 
 
Answer
select max(salary) from emp 
where salary<(select max(salary) from emp)
 
0 Eswar
 
 
Answer
select  employeeid, employeeName ,Salary  from table1 where 
Salary =(select min(a.Salary) from table1 inner join 
(select top 2 Salary from table1 
order by Salary desc) a on table1.Salary = a.Salary)

if we change the top value we will get the n'th largest 
salary
 
0 Roshan
 
 
Answer
If we had a table named Employee which had a column named 
Salary and we had to find the second highest Salary in the 
Employee table, the query for the same would be:

SELECT TOP 1 Salary FROM (SELECT TOP 2 Salary FROM Employee 
ORDER BY Salary DESC) AS E ORDER BY Salary ASC

The subquery or the inner query would return the top 2 rows 
in descending Salary order which would be:
5000
4000
The outer query would then select the top 1 row from the 
subquery results in ascending Salary order which would be:
4000
 
0 Rathi
 
 
Question   What is the difference between a web custom control,web user control and a web part. Rank Answer Posted By  
 Interview Question Submitted By :: Srikanth
I also faced this Question!!   © ALL Interview .com
Answer
Web custom control are those controls which are placed into 
gac and user can add it in tool box.and it is difficult to 
create.and One Custom control can share diffrent 
application.

User controls are used and create for particular 
application .It easy to create  and for using it for 
dirrent application need to copy same user control on 
dirrent applications.

Web part are new feature of dot net 2.0 . by using web part 
controls user can runtime change the size,position and 
layout of controls within the web parts controls,also web 
part gives facility to hide,edit delete controls.It is in 
built controls.
 
0 Sudhir
 
 
Question   2. I've a class Parent Class A and a Derived Class B. Here is a scenario. I've an instance of Class A as objA and an instance of Class B as objB. I can refer a child class variable as objB=objA, but cannot do objA=objB what is the reason? Rank Answer Posted By  
 Interview Question Submitted By :: Srikanth
I also faced this Question!!   © ALL Interview .com
Answer
Is this you are trying to do?

    class A
    {
        public int MyName { get; set; }
    }

    class B : A
    {
        public int MyName1 { get; set; }
    }

    public class TestAB
    {
        public static void Test()
        {
            A objA = new A();
            B objB = new B();



            objB = (B)objA; // Unable to cast object of type
'AdvanceLib.A' to type 'AdvanceLib.B'.
            objA = objB;

        }

    }

---
 
0 Ashok
 
 
Question   1. How to restrict a class from allowing to create only one object. I.e., one should be allowed to create only one object of the class type. Rank Answer Posted By  
 Interview Question Submitted By :: Srikanth
I also faced this Question!!   © ALL Interview .com
Answer
Please refer the concept of singleton in design pattren.
 
0 Ravi
 
 
Question   What is App Pool and App Domain? What is the difference between the two. Rank Answer Posted By  
 Interview Question Submitted By :: Srikanth
I also faced this Question!!   © ALL Interview .com
Answer
Application pool is created the each and every website.
Application domain is created to one domain purpose.
 
0 Suresh
 
 
Answer
IIS process is w3wp;

Every application pool in IIS use it's own process; 
AppPool1 uses process 3784, AppPool2 uses process 5044
Different applications in Asp.net will use different 
AppDomain; 

AppTest2 and AppTest2 are in different AppDomain, but in 
the same process.
 
What's the point to use them?
 
Application pool and AppDomain , both of them can provide 
isolations, but use different approches. Application pool 
use the process to isolate the applications which works 
without .NET.  But AppDomain is another isolation methods 
provided by .NET.
If your server host thousands of web sites, you wont use 
thousands of the application pool to isolate the web sites, 
just becuase, too many processes running will kill the os. 
However, sometime you need application pool. One of the 
advantages for application pool is that you can config the 
identity for application pool. Also you have more flexible 
options to recyle the application pool. At least right now, 
IIS didnt provide explicit options to recyle the appdomain.
 
0 Nalin Bhatia
 
 
Question   Which among the following two is best and why? Abstract Class and Interface. What is the major difference in between those two except the discrete methods and methods with function definition. Rank Answer Posted By  
 Interview Question Submitted By :: Srikanth
I also faced this Question!!   © ALL Interview .com
Answer
(1) Interface have no concrete methods implemented while 
abstract class can have. 

(2) Interface can come into the chain of inheritance while 
Abstract class can't.
 
0 Jignesh Contractor
 
 
Answer
a)for Future, we can provide extra services in Abstract 
Class ,these futures can able to access   all of its  
Clients. And also it supports reusability.
  suppose the implementer need not provide implementation 
for all the methods.
 
Where as in Interface we don’t have this future(reusability 
and extra servicess).
               each implementer need to provide 
implementation for all the methods and 
also                  we cont provide extra services in 
future.The interface should be constant.


b)Interface can support multiple  inheritance where as 
abstract class does not.
 
0 Anitha
 
 
Question   1.What is the major advantage of polymorphism? Please don't simply say binding. Specify any other reason. Rank Answer Posted By  
 Interview Question Submitted By :: Srikanth
I also faced this Question!!   © ALL Interview .com
Answer
the main reason to use polymorphism is generalization, as 
you can see in case of overloading. say if i have add 
function which just add two intergers. and i have one more 
similar kind of functionality then in that case i will do 
the overloading as only my internal implemantation will 
vary.

second thing is consistency in code.

and in case of overriding main advantage is you can invoke 
child class function dynamically(means by creating the 
object of base class as normally we do). 

suppose one of my function expects my base class type 
object and i want functionality of overrided function then 
in that case i can simply write (parent obj = new child();)
 
0 Ashutosh
 
 
 
Back to Questions Page
 
 
 
 
 
   
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