Posts

Showing posts from April, 2017

What is Class & Object in OOP?

Image
Question: What is Class & Object in OOP?    Answer :                            Class: A class act as a blue print that defines the properties, state and behavior that are common to a no of Objects. Object: Object is an instance of the class. An Object is an entity that has Attribute, Behavior, and Identity. Attribute and behavior of an object are defined by the class definition. Example: Mobile is class. Nokia, Samsung, Apple is an object of that class.

SQL Interview Question

Image
Question: What are the output of below query? SELECT COUNT (*) FROM TBL SELECT COUNT ( 1 ) FROM TBL SELECT COUNT ( ID ) FROM TBL Answer: SELECT   COUNT (*)   FROM  TBL -- 5 SELECT   COUNT ( 1 )   FROM  TBL -- 5 SELECT   COUNT ( ID )   FROM  TBL -- 4 not include Null value

Interview Question

Question:  If a field is static and is a reference type, where will it go? Stack or heap?

Interview Questions

1.      What is web method in web service and how it's differ from normal method and is web method can be used globally?? 2.      Sessions state 3.      Page life cycle (when we get view state value) 4.      If 2 user control used on a single page 1 contain a text box and button and other contain a textbox 5.      Then on button click move value from one textbox to another 6.      In SQL how to get first non-null value from different column 7.      How to create virtual directory on IIS 8.      about IIS 9.      What is DDL and DML statements in SQL server 10.             Difference between Temp table And table variable 11.             Different selectors in jQuery 12.  ...

Puzzles

Question 1: You have two jugs. One jug has a content of 3 liters and the other one has a content of 5 liters. How can you get just 4 liters of water using only these two jugs? Question 2:  Suppose you are faced with two doors. One door leads to your job offer, and the other one leads to the exit. In front of each door there is a guard. One guard always tells the truth while the other one always lies. You can ask only one question to decide which door will lead you to your job offer. What will you ask and to whom? Guys please answer these...