<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-33995476</id><updated>2012-02-16T02:44:05.785-08:00</updated><category term='HR Interview Questions'/><category term='C# Interview questions'/><category term='ADO Interview Questions'/><category term='PHP Interview Questions'/><category term='Aptitude Questions'/><category term='VB Interview Questions'/><category term='.Net Interview Questions'/><category term='SQL Server Queries'/><category term='JavaScript Interview Questions'/><category term='Interview Tips'/><category term='ASP.Net Interview Questions'/><category term='C++ Interview Questions'/><category term='Interview Questions'/><category term='SQL Server Interview Questions'/><category term='Oracle Interview Questions'/><category term='AJAX Interview Questions'/><category term='ASP Interview Questions'/><category term='JSP Interview Questions'/><category term='Covering Letter'/><title type='text'>Tech Interview Questions &amp; Tips</title><subtitle type='html'>.Net | ASP | JSP | PHP | VB | SQL Interview Questions..</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>24</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-33995476.post-857880930516072831</id><published>2008-07-26T03:31:00.000-07:00</published><updated>2008-07-25T23:10:20.389-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='HR Interview Questions'/><title type='text'>HR Interview Questions</title><content type='html'>&lt;strong&gt;Tell me about yourself&lt;/strong&gt;: -&lt;br /&gt;The most often asked question in interviews. You need to have a short statement prepared in your mind. Be careful that it does not sound rehearsed. Limit it to work-related items unless instructed otherwise. Talk about things you have done and jobs you have held that relate to the position you are interviewing for. Start with the item farthest back and work up to the present.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Why did you leave your last job?&lt;/strong&gt; - Stay positive regardless of the circumstances. Never refer to a major problem with management and never speak ill of supervisors, co-workers or the organization. If you do, you will be the one looking bad. Keep smiling and talk about leaving for a positive reason such as an opportunity, a chance to do something special or other forward-looking reasons.&lt;br /&gt;&lt;a id="more-160"&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;What experience do you have in this field?&lt;/strong&gt; - Speak about specifics that relate to the position you are applying for. If you do not have specific experience, get as close as you can.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Do you consider yourself successful?&lt;/strong&gt; - You should always answer yes and briefly explain why. A good explanation is that you have set goals, and you have met some and are on track to achieve the others.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What do co-workers say about you?&lt;/strong&gt; - Be prepared with a quote or two from co-workers. Either a specific statement or a paraphrase will work. Jill Clark, a co-worker at Smith Company, always said I was the hardest workers she had ever known. It is as powerful as Jill having said it at the interview herself.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What do you know about this organization?&lt;/strong&gt; - This question is one reason to do some research on the organization before the interview. Find out where they have been and where they are going. What are the current issues and who are the major players?&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What have you done to improve your knowledge in the last year?&lt;/strong&gt; - Try to include improvement activities that relate to the job. A wide variety of activities can be mentioned as positive self-improvement. Have some good ones handy to mention.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Are you applying for other jobs?&lt;/strong&gt; - Be honest but do not spend a lot of time in this area. Keep the focus on this job and what you can do for this organization. Anything else is a distraction.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Why do you want to work for this organization?&lt;/strong&gt; - This may take some thought and certainly, should be based on the research you have done on the organization. Sincerity is extremely important here and will easily be sensed. Relate it to your long-term career goals.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Do you know anyone who works for us?&lt;/strong&gt; - Be aware of the policy on relatives working for the organization. This can affect your answer even though they asked about friends not relatives. Be careful to mention a friend only if they are well thought of.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What kind of salary do you need?&lt;/strong&gt; - A loaded question. A nasty little game that you will probably lose if you answer first. So, do not answer it. Instead, say something like, That’s a tough question. Can you tell me the range for this position? In most cases, the interviewer, taken off guard, will tell you. If not, say that it can depend on the details of the job. Then give a wide range.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Are you a team player?&lt;/strong&gt; - You are, of course, a team player. Be sure to have examples ready. Specifics that show you often perform for the good of the team rather than for yourself are good evidence of your team attitude. Do not brag, just say it in a matter-of-fact tone. This is a key point.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How long would you expect to work for us if hired?&lt;/strong&gt; - Specifics here are not good. Something like this should work: I’d like it to be a long time. Or As long as we both feel I’m doing a good job.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Have you ever had to fire anyone? How did you feel about that?&lt;/strong&gt; - This is serious. Do not make light of it or in any way seem like you like to fire people. At the same time, you will do it when it is the right thing to do. When it comes to the organization versus the individual who has created a harmful situation, you will protect the organization. Remember firing is not the same as layoff or reduction in force.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is your philosophy towards work?&lt;/strong&gt; - The interviewer is not looking for a long or flowery dissertation here. Do you have strong feelings that the job gets done? Yes. That’s the type of answer that works best here. Short and positive, showing a benefit to the organization.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;If you had enough money to retire right now, would you?&lt;/strong&gt; - Answer yes if you would. But since you need to work, this is the type of work you prefer. Do not say yes if you do not mean it.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Have you ever been asked to leave a position?&lt;/strong&gt; - If you have not, say no. If you have, be honest, brief and avoid saying negative things about the people or organization involved.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Explain how you would be an asset to this organization&lt;/strong&gt; - You should be anxious for this question. It gives you a chance to highlight your best points as they relate to the position being discussed. Give a little advance thought to this relationship.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Why should we hire you?&lt;/strong&gt; - Point out how your assets meet what the organization needs. Do not mention any other candidates to make a comparison.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Tell me about a suggestion you have made&lt;/strong&gt; - Have a good one ready. Be sure and use a suggestion that was accepted and was then considered successful. One related to the type of work applied for is a real plus.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What irritates you about co-workers?&lt;/strong&gt; - This is a trap question. Think real hard but fail to come up with anything that irritates you. A short statement that you seem to get along with folks is great.&lt;br /&gt;&lt;strong&gt;What is your greatest strength?&lt;/strong&gt; - Numerous answers are good, just stay positive. A few good examples: Your ability to prioritize, Your problem-solving skills, Your ability to work under pressure, Your ability to focus on projects, Your professional expertise, Your leadership skills, Your positive attitude .&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Tell me about your dream job:&lt;/strong&gt; - Stay away from a specific job. You cannot win. If you say the job you are contending for is it, you strain credibility. If you say another job is it, you plant the suspicion that you will be dissatisfied with this position if hired. The best is to stay genetic and say something like: A job where I love the work, like the people, can contribute and can’t wait to get to work.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Why do you think you would do well at this job?&lt;/strong&gt; - Give several reasons and include skills, experience and interest.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What kind of person would you refuse to work with?&lt;/strong&gt; - Do not be trivial. It would take disloyalty to the organization, violence or lawbreaking to get you to object. Minor objections will label you as a whiner.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is more important to you: the money or the work?&lt;/strong&gt; - Money is always important, but the work is the most important. There is no better answer.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What would your previous supervisor say your strongest point is?&lt;/strong&gt; - There are numerous good possibilities: Loyalty, Energy, Positive attitude, Leadership, Team player, Expertise, Initiative, Patience, Hard work, Creativity, Problem solver&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Tell me about a problem you had with a supervisor&lt;/strong&gt; - Biggest trap of all. This is a test to see if you will speak ill of your boss. If you fall for it and tell about a problem with a former boss, you may well below the interview right there. Stay positive and develop a poor memory about any trouble with a supervisor.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What has disappointed you about a job?&lt;/strong&gt; - Don’t get trivial or negative. Safe areas are few but can include: Not enough of a challenge. You were laid off in a reduction Company did not win a contract, which would have given you more responsibility.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Tell me about your ability to work under pressure.&lt;/strong&gt; - You may say that you thrive under certain types of pressure. Give an example that relates to the type of position applied for.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Do your skills match this job or another job more closely?&lt;/strong&gt; - Probably this one. Do not give fuel to the suspicion that you may want another job more than this one.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What motivates you to do your best on the job?&lt;/strong&gt; - This is a personal trait that only you can say, but good examples are: Challenge, Achievement, Recognition&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Are you willing to work overtime? Nights? Weekends?&lt;/strong&gt; - This is up to you. Be totally honest.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How would you know you were successful on this job?&lt;/strong&gt; - Several ways are good measures: You set high standards for yourself and meet them. Your outcomes are a success.Your boss tell you that you are successful&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Would you be willing to relocate if required?&lt;/strong&gt; - You should be clear on this with your family prior to the interview if you think there is a chance it may come up. Do not say yes just to get the job if the real answer is no. This can create a lot of problems later on in your career. Be honest at this point and save yourself future grief.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Are you willing to put the interests of the organization ahead of your own?&lt;/strong&gt; - This is a straight loyalty and dedication question. Do not worry about the deep ethical and philosophical implications. Just say yes.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Describe your management style&lt;/strong&gt;. - Try to avoid labels. Some of the more common labels, like progressive, salesman or consensus, can have several meanings or descriptions depending on which management expert you listen to. The situational style is safe, because it says you will manage according to the situation, instead of one size fits all.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What have you learned from mistakes on the job?&lt;/strong&gt; - Here you have to come up with something or you strain credibility. Make it small, well intentioned mistake with a positive lesson learned. An example would be working too far ahead of colleagues on a project and thus throwing coordination off.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Do you have any blind spots?&lt;/strong&gt; - Trick question. If you know about blind spots, they are no longer blind spots. Do not reveal any personal areas of concern here. Let them do their own discovery on your bad points. Do not hand it to them.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;If you were hiring a person for this job, what would you look for?&lt;/strong&gt; - Be careful to mention traits that are needed and that you have.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Do you think you are overqualified for this position?&lt;/strong&gt; - Regardless of your qualifications, state that you are very well qualified for the position.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How do you propose to compensate for your lack of experience?&lt;/strong&gt; - First, if you have experience that the interviewer does not know about, bring that up: Then, point out (if true) that you are a hard working quick learner.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What qualities do you look for in a boss?&lt;/strong&gt; - Be generic and positive. Safe qualities are knowledgeable, a sense of humor, fair, loyal to subordinates and holder of high standards. All bosses think they have these traits.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Tell me about a time when you helped resolve a dispute between others&lt;/strong&gt;. - Pick a specific incident. Concentrate on your problem solving technique and not the dispute you settled.&lt;br /&gt;&lt;strong&gt;What position do you prefer on a team working on a project?&lt;/strong&gt; - Be honest. If you are comfortable in different roles, point that out.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Describe your work ethic&lt;/strong&gt;. - Emphasize benefits to the organization. Things like, determination to get the job done and work hard but enjoy your work are good.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What has been your biggest professional disappointment?&lt;/strong&gt; - Be sure that you refer to something that was beyond your control. Show acceptance and no negative feelings.&lt;br /&gt;&lt;br /&gt;&lt;span&gt;How do you define success…and how do you measure up to your own definition?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Give a well-accepted definition of success that leads right into your own stellar collection of achievements.&lt;br /&gt;&lt;br /&gt;Example: “The best definition I’ve come across is that success is the progressive realization of a worthy goal.”&lt;br /&gt;&lt;br /&gt;“As to how I would measure up to that definition, I would consider myself both successful and fortunate…”(Then summarize your career goals and how your achievements have indeed represented a progressive path toward realization of your goals.)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Tell me about the most fun you have had on the job&lt;/strong&gt;. - Talk about having fun by accomplishing something for the organization.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Do you have any questions for me?&lt;/strong&gt; - Always have some questions prepared. Questions prepared where you will be an asset to the organization are good. How soon will I be able to be productive? and What type of projects will I be able to assist on? are examples.&lt;br /&gt;&lt;br /&gt;&lt;script src="http://digg.com/tools/diggthis.js" type="text/javascript"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-857880930516072831?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/857880930516072831/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2006/11/hr-questions.html#comment-form' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/857880930516072831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/857880930516072831'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2006/11/hr-questions.html' title='HR Interview Questions'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33995476.post-6687333537634855076</id><published>2008-07-26T00:47:00.000-07:00</published><updated>2008-07-25T23:09:53.743-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>SQL Server 2005 -Interview Questions for Biginners</title><content type='html'>• If I want to see what fields a table is made of, and what the sizes of the&lt;br /&gt;fields are, what option  do I have to look for?&lt;br /&gt;• What is a query?&lt;br /&gt;• A SQL query is typed in the _________ .&lt;br /&gt;• What is the purpose of the model database?&lt;br /&gt;• What is the purpose of the master database?&lt;br /&gt;• What is the purpose of the tempdb database?&lt;br /&gt;• What is the purpose of the USE command?&lt;br /&gt;• If you delete a table in the database, will the data in the table be deleted too?&lt;br /&gt;• What is the Parse Query button used for? How does this help you?&lt;br /&gt;• Tables are created in a ____________________ in SQL Server 2005.&lt;br /&gt;•  What is usually the first word in a SQL query?&lt;br /&gt;• Does a SQL Server 2005 SELECT statement require a FROM?&lt;br /&gt;• Can a SELECT statement in SQL Server 2005 be used to make an assignment?&lt;br /&gt;Explain with examples.&lt;br /&gt;• What is the ORDER BY used for?&lt;br /&gt;• Does ORDER BY actually change the order of the data in the tables or does it just&lt;br /&gt;change the output?&lt;br /&gt;• What is the default order of an ORDER BY clause?&lt;br /&gt;• What kind of comparison operators can be used in a WHERE clause?&lt;br /&gt;• What are four major operators that can be used to combine conditions on a WHERE&lt;br /&gt;clause? Explain the operators with examples.&lt;br /&gt;• What are the logical operators?&lt;br /&gt;• In a WHERE clause, do you need to enclose a text column in quotes? Do you need to&lt;br /&gt;enclose a numeric column in quotes?&lt;br /&gt;• Is a null value equal to anything? Can a space in a column be considered a null&lt;br /&gt;value? Why or why not?&lt;br /&gt;• Will COUNT(column) include columns with null values in its count?&lt;br /&gt;• What are column aliases? Why would you want to use column aliases? How can you&lt;br /&gt;embed blanks in column aliases?&lt;br /&gt;• What are table aliases?&lt;br /&gt;• What are table qualifiers? When should table qualifiers be used?&lt;br /&gt;• Are semicolons required at the end of SQL statements in SQL Server 2005?&lt;br /&gt;• Do comments need to go in a special place in SQL Server 2005?&lt;br /&gt;• When would you use the ROWCOUNT function versus using the WHERE clause?&lt;br /&gt;• Is SQL case-sensitive? Is SQL Server 2005 case-sensitive?&lt;br /&gt;• What is a synonym? Why would you want to create a synonym?&lt;br /&gt;• Can a synonym name of a table be used instead of a table name in a SELECT&lt;br /&gt;statement?&lt;br /&gt;• Can a synonym of a table be used when you are trying to alter the definition&lt;br /&gt;of a table?&lt;br /&gt;• Can you type more than one query in the query editor screen at the same time?&lt;br /&gt;• The INSERT INTO .. VALUES option will insert rows into the _________ of a table.&lt;br /&gt;• While you are inserting values into a table with the INSERT INTO .. VALUES&lt;br /&gt;option, does the order of the columns in the INSERT statement have to be the&lt;br /&gt;same as the order of the columns in the table?&lt;br /&gt;• While you are inserting values into a table with the INSERT INTO .. SELECT&lt;br /&gt;option, does the  order of the columns in the INSERT statement have to be&lt;br /&gt;the same as the order of the columns in the table?&lt;br /&gt;• When would you use an INSERT INTO .. SELECT option versus an INSERT INTO .. VALUES   option? Give an example of each.&lt;br /&gt;• What does the UPDATE command do?&lt;br /&gt;• Can you change the data type of a column in a table after the table has been&lt;br /&gt;created? If so,which command would you use?&lt;br /&gt;• Will SQL Server 2005 allow you to reduce the size of a column?&lt;br /&gt;• What integer data types are available in SQL Server 2005?&lt;br /&gt;• What is the default value of an integer data type in SQL Server 2005?&lt;br /&gt;• What decimal data types are available in SQL Server 2005?&lt;br /&gt;• What is the difference between a CHAR and a VARCHAR datatype?&lt;br /&gt;• Does Server SQL treat CHAR as a variable-length or fixed-length column?&lt;br /&gt;Do other SQL implementations treat it in the same way?&lt;br /&gt;• If you are going to have too many nulls in a column, what would be the best&lt;br /&gt;data type to use?&lt;br /&gt;• When columns are added to existing tables, what do they initially contain?&lt;br /&gt;• What command would you use to add a column to a table in SQL Server?&lt;br /&gt;• In SQL Server, which data type is used to store large object data types?&lt;br /&gt;• If I do not need to store decimal places, what would be a good numeric data&lt;br /&gt;type to use?&lt;br /&gt;• I I need to store decimal places, but am not worried about rounding errors,&lt;br /&gt;what would be a    good  data type to use?&lt;br /&gt;• Should a column be defined as a FLOAT if it is going to be used as a primary key?&lt;br /&gt;• What is a join? Why do you need a join?&lt;br /&gt;• What is an INNER JOIN?&lt;br /&gt;• Which clause[s] can be used in place of the JOIN in Server SQL?&lt;br /&gt;• What is the Cartesian product?&lt;br /&gt;• What would be the Cartesian product of a table with 15 rows and another table&lt;br /&gt;with 23 rows?&lt;br /&gt;• List some uses of the Cartesian product.&lt;br /&gt;• What is an equi-join?&lt;br /&gt;• What is a non-equi-join? Give an example of an non-equi-join.&lt;br /&gt;• What is a self join? Give an example of a self join.&lt;br /&gt;• What is a LEFT OUTER JOIN?&lt;br /&gt;• What is a RIGHT OUTER JOIN?&lt;br /&gt;• What is a CROSS JOIN?&lt;br /&gt;• What is a FULL OUTER JOIN?&lt;br /&gt;&lt;script type="text/javascript"&gt;&lt;!--google_ad_client = "pub-9487358358284001";/* 468x60, created 1/2/08 */google_ad_slot = "7086889088";google_ad_width = 468;google_ad_height = 60;//--&gt;&lt;/script&gt;&lt;br /&gt;&lt;script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;/script&gt;&lt;br /&gt;• Does Server SQL allow the use of *= to perform outer joins?&lt;br /&gt;• What is the maximum number of rows that a self join can produce?&lt;br /&gt;• For what kinds of joins will the associative property hold?&lt;br /&gt;• What would be the Cartesian product of the two sets {a,b,c} and {c,d,e}?&lt;br /&gt;• What are functions?&lt;br /&gt;• What are aggregate functions? Give examples of aggregate functions.&lt;br /&gt;What is another term for   an aggregate function?&lt;br /&gt;• What are row-level functions? Give examples of row-level functions.&lt;br /&gt;• Is COUNT an aggregate function or a row-level function? Explain why.&lt;br /&gt;Give at least one   example of when the COUNT function may come in handy.&lt;br /&gt;Does the COUNT function take nulls into account?&lt;br /&gt;• Is AVG an aggregate function or a row-level function?&lt;br /&gt;• What is the NULLIF function? Explain.&lt;br /&gt;• How are ties handled in SQL Server?&lt;br /&gt;• How does the DISTINCT function work?&lt;br /&gt;• Are string functions (for example, SUBSTRING, RIGHT, LTRIM) aggregate&lt;br /&gt;functions or row- level functions?&lt;br /&gt;• What is the SUBSTRING function used for?&lt;br /&gt;• What is the CHARINDEX function used for?&lt;br /&gt;• What function would you use to find the leftmost characters in a string?&lt;br /&gt;• What are the LTRIM/RTRIM functions used for?&lt;br /&gt;• What function would produce the output in all lowercase?&lt;br /&gt;• What function would you use to find the length of a string?&lt;br /&gt;• What characters or symbols are most commonly used as wildcard characters in&lt;br /&gt;SQL Server 2005?&lt;br /&gt;• What is the concatenation operator in Server SQL 2005?&lt;br /&gt;• What does the YEAR function do?&lt;br /&gt;• What does the MONTH function do?&lt;br /&gt;• What does the GEtdATE function do?&lt;br /&gt;• What will the following query produce in SQL Server 2005?&lt;br /&gt;o SELECT ('.....'+ names) AS [names]&lt;br /&gt;o FROM Employee&lt;br /&gt;&lt;br /&gt;• Does Server SQL allow an expression like COUNT(DISTINCT column_name)?&lt;br /&gt;• How is the ISNULL function different from the NULLIF function?&lt;br /&gt;• What function would you use to round a value to three decimal places?&lt;br /&gt;• Which functions can the WITH TIES option be used with?&lt;br /&gt;• What clause does the WITH TIES option require?&lt;br /&gt;• What is the default date format in SQL Server 2005?&lt;br /&gt;• How do dates have to be entered in Server SQL 2005?&lt;br /&gt;• What function is used to convert between data types?&lt;br /&gt;• What function is useful for formatting numbers?&lt;br /&gt;• What function is useful for formatting dates?&lt;br /&gt;• Which has precedence, AND or OR?&lt;br /&gt;• Why do we need derived structures?&lt;br /&gt;• What is a view?&lt;br /&gt;• List some advantages of using views.&lt;br /&gt;• List some advantages of using temporary tables.&lt;br /&gt;• Can temporary tables replace views in all cases?&lt;br /&gt;• What is the difference between a view and temporary table?&lt;br /&gt;• What is the difference between a local temporary table and global temporary table?&lt;br /&gt;• If data is changed in a view, is it changed in the original table?&lt;br /&gt;• If data is changed in a temporary table, does it automatically change data in&lt;br /&gt;the original table?&lt;br /&gt;• What happens to local temporary tables after the session has been ended?&lt;br /&gt;• What happens to global temporary table after the session has been ended?&lt;br /&gt;• Which type of temporary table has a system-generated suffix attached to it?&lt;br /&gt;What does this    suffix mean?&lt;br /&gt;• Why are inline views helpful?&lt;br /&gt;• In SQL Server, is the ORDER BY clause allowed during the creation of a view?&lt;br /&gt;• Is SELECT INTO allowed in a view? Why or why not?&lt;br /&gt;• Where is the data stored in a view?&lt;br /&gt;• How do you delete views?&lt;br /&gt;• How do you delete a temporary table?&lt;br /&gt;• Do you need to delete a local temporary table? Why or why not?&lt;br /&gt;• Which operators have the highest/lowest precedence?&lt;br /&gt;• In SQL Server, if a column of FLOAT data type were divided by a column of REAL&lt;br /&gt;data type,what data type would the resulting column have? (Hint: refer to the&lt;br /&gt;section on Data Type    Preference.)&lt;br /&gt;• Is an ORDER BY clause necessary when you use a DISTINCT? Why or why not?&lt;br /&gt;• What are the major differences between the UNION operation and the JOIN operation?&lt;br /&gt;• What is the major difference between the UNION and the UNION ALL?&lt;br /&gt;• What major set operator does SQL Server 2005 not have? How can these problems&lt;br /&gt;be resolved?&lt;br /&gt;• What does union compatibility mean?&lt;br /&gt;• What data types are union-compatible?&lt;br /&gt;• What is the maximum number of rows that can result from a UNION of two tablesone&lt;br /&gt;with 5 rows and the other with 6 rows?&lt;br /&gt;• How can a UNION be used to implement an outer join? Explain.&lt;br /&gt;• Does SQL Server 2005 support the MINUS operation? How can this be resolved? Give    examples.&lt;br /&gt;• What is a full outer join? Does SQL Server 2005 directly support a full outer join?&lt;br /&gt;• Do you need the same number of columns to perform a union?&lt;br /&gt;• Do you need the same data types to perform a union?&lt;br /&gt;• Do you need the same number of columns to perform a join?&lt;br /&gt;• From the examples given in the chapter, what does the UNION JOIN appear to do?&lt;br /&gt;• If a VARCHAR column were unioned with a CHAR column, what would the resulting&lt;br /&gt;column be?&lt;br /&gt;• What does set compatibility mean?&lt;br /&gt;• What is the maximum number of rows that can result from a INTERSECT of two&lt;br /&gt;tablesone with 5 rows and the other with 6 rows?&lt;br /&gt;• Do you need the same number of columns to perform an INTERSECT operation?&lt;br /&gt;• Do you need the same data types to perform an INTERSECT operation?&lt;br /&gt;• What is a subquery?&lt;br /&gt;• Which part of the query/subquery is considered the inner query, and which part&lt;br /&gt;is considered the  outer query?&lt;br /&gt;• Can a subquery always be done as a join? Why or why not?&lt;br /&gt;• When writing a query that will have a subquery, how do you determine which&lt;br /&gt;table/tables will go in the outer query?&lt;br /&gt;• Which predicate can usually be reformulated into a join?&lt;br /&gt;• When using operators, are many values acceptable from a result of a subquery?&lt;br /&gt;• What can you do to insure a working subquery?&lt;br /&gt;• What do aggregate functions do?&lt;br /&gt;• How does the GROUP BY clause work?&lt;br /&gt;• What is the difference between a GROUP BY and ORDER BY?&lt;br /&gt;• What is the HAVING clause used for?&lt;br /&gt;• Can the WHERE clause always be considered a substitute for the HAVING clause? Why or why    not?&lt;br /&gt;• Do functions of functions have to be handled in a special way in Server SQL 2005?&lt;br /&gt;• Will nulls in grouped columns be included in a result set?&lt;br /&gt;• How do aggregate functions treat nulls?&lt;br /&gt;• Does the sequence of the columns in a GROUP BY clause have an effect on the end result?&lt;br /&gt;• When would it not make sense to use the GROUP BY and DISTINCT functions together?&lt;br /&gt;• Is GROUP BY affected by nulls?&lt;br /&gt;• Which comes first in a SELECT statement, an ORDER BY or GROUP BY? Why?&lt;br /&gt;• The GROUP BY and ________________ clauses are used together.&lt;br /&gt;• What is a noncorrelated subquery?&lt;br /&gt;• Which type of subquery can be executed on its own?&lt;br /&gt;• Which part of a query is evaluated first, the query or the subquery?&lt;br /&gt;• What are correlated subqueries?&lt;br /&gt;• What does the EXISTS predicate do?&lt;br /&gt;• What are considered universal qualifiers?&lt;br /&gt;• Is correlation necessary when we use EXISTS? Why?&lt;br /&gt;• Explain how the "for all" type SQL query involves a double-nested correlated subquery using    the NOT EXISTS predicate.&lt;br /&gt;• What is an index?&lt;br /&gt;• Does an index slow down updates on indexed columns?&lt;br /&gt;• What is a constraint?&lt;br /&gt;• How many indexes does SQL Server 2005 allow you to have on a table?&lt;br /&gt;• What command would you use to create an index?&lt;br /&gt;• Is there a difference between an index and a constraint?&lt;br /&gt;• What is the default ordering that will be created by an index (ascending or descending)?&lt;br /&gt;• When can the UNIQUE option be used?&lt;br /&gt;• What does the IGNORE NULL option do?&lt;br /&gt;• How do you delete an index?&lt;br /&gt;• What does the NOT NULL constraint do?&lt;br /&gt;• What command must you use to include the NOT NULL constraint after a table has already    been created?&lt;br /&gt;• When a PRIMARY KEY constraint is included in a table, what other constraints does this    imply?&lt;br /&gt;• What is a concatenated primary key?&lt;br /&gt;• How are the UNIQUE and PRIMARY KEY constraints different?&lt;br /&gt;• What is a referential integrity constraint? What two keys does the referential integrity     constraint usually include?&lt;br /&gt;• What is a foreign key?&lt;br /&gt;• What does the ON DELETE CASCADE option do?&lt;br /&gt;• What does the ON UPDATE NO ACTION do?&lt;br /&gt;• Can you use the ON DELETE and ON UPDATE in the same constraint?&lt;br /&gt;&lt;br /&gt;&lt;script src="http://digg.com/tools/diggthis.js" type="text/javascript"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-6687333537634855076?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/6687333537634855076/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2008/03/sql-server-2005-interview-questions-for.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/6687333537634855076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/6687333537634855076'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2008/03/sql-server-2005-interview-questions-for.html' title='SQL Server 2005 -Interview Questions for Biginners'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33995476.post-2560170967505542130</id><published>2008-06-07T00:22:00.000-07:00</published><updated>2008-07-07T22:40:25.702-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Interview Questions'/><title type='text'>Oracle Interview Questions and Answers : SQL</title><content type='html'> &lt;br /&gt;1.      To see current user name&lt;br /&gt;    Sql&gt; show user;&lt;br /&gt;&lt;br /&gt;2.      Change SQL prompt name&lt;br /&gt;     SQL&gt; set sqlprompt “Manimara &gt; “&lt;br /&gt;     Manimara &gt;&lt;br /&gt;     Manimara &gt;&lt;br /&gt;&lt;br /&gt;3.      Switch to DOS prompt&lt;br /&gt;     SQL&gt; host&lt;br /&gt;&lt;br /&gt;4.      How do I eliminate the duplicate rows ?&lt;br /&gt;     SQL&gt; delete from table_name where rowid not in (select max(rowid)&lt;br /&gt;     from  table group by  duplicate_values_field_name);&lt;br /&gt;     or&lt;br /&gt;     SQL&gt; delete duplicate_values_field_name dv from table_name ta where&lt;br /&gt;                rowid &lt;(select min(rowid)  from table_name tb where ta.dv=tb.dv);        &lt;p&gt;-----&gt;Get answers to all your Questions at---&gt;&lt;a href="http://webdeveloperscorner.blogspot.com/"&gt;WebDeveloper's Corner&lt;/a&gt;&lt;-----   &lt;p&gt;13.  Display the number value in Words                           &lt;br /&gt;         SQL&gt; select sal, (to_char(to_date(sal,'j'), 'jsp')) from emp;&lt;br /&gt;&lt;br /&gt;14.  Display Odd/ Even number of records      &lt;br /&gt;      Odd number of records:     &lt;br /&gt;      select * from emp where (rowid,1) in (select rowid, mod(rownum,2) from emp);      &lt;br /&gt;      1      &lt;br /&gt;      3      &lt;br /&gt;      5     &lt;br /&gt;     Even number of records:     &lt;br /&gt;    select * from emp where (rowid,0) in (select rowid, mod(rownum,2) from emp)      &lt;br /&gt;      2      &lt;br /&gt;      4     &lt;br /&gt;      6&lt;br /&gt;&lt;br /&gt;15.  Which date function returns number value?        &lt;br /&gt;     months_between&lt;br /&gt;&lt;br /&gt;16.  Any three PL/SQL Exceptions?       &lt;br /&gt;     Too_many_rows, No_Data_Found, Value_Error, Zero_Error, Others&lt;br /&gt;&lt;br /&gt;17.  What are PL/SQL Cursor Exceptions?       &lt;br /&gt;     Cursor_Already_Open, Invalid_Cursor&lt;br /&gt;&lt;br /&gt;18.  Other way to replace query result null value with a text       &lt;br /&gt;       SQL&gt; Set NULL ‘N/A’     to reset SQL&gt; Set NULL ‘’&lt;br /&gt;&lt;br /&gt;19.   What are the more common pseudo-columns?&lt;br /&gt;      SYSDATE, USER , UID, CURVAL, NEXTVAL, ROWID, ROWNUM&lt;br /&gt;&lt;br /&gt;20.   What is the output of SIGN function?&lt;br /&gt;      1 for positive value, 0 for Zero, -1 for Negative value.&lt;br /&gt;&lt;br /&gt;21.  What is the maximum number of triggers, can apply to a single table?&lt;br /&gt;       12 triggers.&lt;br /&gt;&lt;br /&gt;21.  How would you determine the time zone under which a database was operating?&lt;br /&gt;       select DBTIMEZONE from dual;&lt;br /&gt;&lt;br /&gt;22.  Explain the use of setting GLOBAL_NAMES equal to TRUE.&lt;br /&gt;       Setting GLOBAL_NAMES dictates how you might connect to a database. This&lt;br /&gt;       variable is either TRUE or FALSE and if it is set to TRUE it enforces database&lt;br /&gt;       links to have the same name as the remote database to which they are linking.&lt;br /&gt;&lt;br /&gt;23.  What command would you use to encrypt a PL/SQL application?&lt;br /&gt;       WRAP&lt;br /&gt;&lt;br /&gt;24.  Explain the difference between a FUNCTION, PROCEDURE and PACKAGE.&lt;br /&gt;       A function and procedure are the same in that they are intended to be a&lt;br /&gt;      collection of PL/SQL code that carries a single task. While a procedure does&lt;br /&gt;      not have to return any values to the calling application, a function will return&lt;br /&gt;      a single value. A package on the other hand is a collection of functions and&lt;br /&gt;      procedures that are grouped together based on their commonality to a&lt;br /&gt;      business function or application.&lt;br /&gt;&lt;br /&gt;25.  Explain the use of table functions.&lt;br /&gt;      Table functions are designed to return a set of rows through PL/SQL logic&lt;br /&gt;      but are intended to be used as a normal table or view in a SQL statement.&lt;br /&gt;      They are also used to pipeline information in an ETL process.&lt;br /&gt;&lt;br /&gt;26.  Name three advisory statistics you can collect.&lt;br /&gt;       Buffer Cache Advice, Segment Level Statistics, &amp;amp; Timed Statistics&lt;br /&gt;&lt;br /&gt;27.  Where in the Oracle directory tree structure are audit traces placed?&lt;br /&gt;       In unix $ORACLE_HOME/rdbms/audit, in Windows the event viewer&lt;br /&gt;&lt;br /&gt;28.  Explain materialized views and how they are used.&lt;br /&gt;       Materialized views are objects that are reduced sets of information that&lt;br /&gt;       have been summarized, grouped, or aggregated from base tables. They&lt;br /&gt;       are typically used in data warehouse or decision support systems.&lt;br /&gt;&lt;br /&gt;29.  When a user process fails, what background process cleans up after it?&lt;br /&gt;       PMON&lt;br /&gt;&lt;br /&gt;30.  What background process refreshes materialized views?&lt;br /&gt;       The Job Queue Processes.&lt;br /&gt;&lt;br /&gt;31.  How would you determine what sessions are connected and what resources they&lt;br /&gt;      are waiting for?&lt;br /&gt;      Use of V$SESSION and V$SESSION_WAIT&lt;br /&gt;&lt;br /&gt;32.  Describe what redo logs are.&lt;br /&gt;       Redo logs are logical and physical structures that are designed to hold all&lt;br /&gt;       the changes made to a database and are intended to aid in the recovery&lt;br /&gt;       of a database.&lt;br /&gt;&lt;br /&gt;33.  How would you force a log switch?&lt;br /&gt;       ALTER SYSTEM SWITCH LOGFILE;&lt;br /&gt;&lt;br /&gt;34.  Give two methods you could use to determine what DDL changes have been made.&lt;br /&gt;      You could use Logminer or Streams&lt;br /&gt;&lt;br /&gt;35.  What does coalescing a tablespace do?&lt;br /&gt;      Coalescing is only valid for dictionary-managed tablespaces and&lt;br /&gt;      de-fragments space  by combining neighboring free extents into large&lt;br /&gt;      single extents.&lt;br /&gt;&lt;br /&gt;36.  What is the difference between a TEMPORARY tablespace and a PERMANENT&lt;br /&gt;      tablespace?&lt;br /&gt;      A temporary tablespace is used for temporary objects such as sort&lt;br /&gt;     structures while permanent tablespaces are used to store those&lt;br /&gt;     objects meant to be used as the true  objects of the database.&lt;br /&gt;&lt;br /&gt;37.  Name a tablespace automatically created when you create a database.&lt;br /&gt;       The SYSTEM tablespace.&lt;br /&gt;&lt;br /&gt;38.  When creating a user, what permissions must you grant to allow them&lt;br /&gt;       to connect to the database?&lt;br /&gt;      Grant the CONNECT to the user.&lt;br /&gt;&lt;br /&gt;39.  How do you add a data file to a tablespace?&lt;br /&gt;        ALTER TABLESPACE &lt;tablespace _name=""&gt; ADD&lt;br /&gt;           DATAFILE &lt;datafile _name=""&gt; SIZE &lt;size&gt;&lt;br /&gt;&lt;br /&gt;40.  How do you resize a data file?&lt;br /&gt;       ALTER DATABASE DATAFILE &lt;datafile _name=""&gt; RESIZE &lt;new _size=""&gt;;&lt;br /&gt;&lt;br /&gt;41.  What view would you use to look at the size of a data file?&lt;br /&gt;       DBA_DATA_FILES&lt;br /&gt;&lt;br /&gt;42.  What view would you use to determine free space in a tablespace?&lt;br /&gt;       DBA_FREE_SPACE&lt;br /&gt;&lt;br /&gt;43.  How would you determine who has added a row to a table?&lt;br /&gt;       Turn on fine grain auditing for the table.&lt;br /&gt;&lt;br /&gt;44.  How can you rebuild an index?&lt;br /&gt;       ALTER INDEX &lt;index _name=""&gt; REBUILD;&lt;br /&gt;&lt;br /&gt;45.  Explain what partitioning is and what its benefit is.&lt;br /&gt;      Partitioning is a method of taking large tables and indexes and splitting them into&lt;br /&gt;      smaller, more manageable pieces.&lt;br /&gt;&lt;br /&gt;46.  You have just compiled a PL/SQL package but got errors, how would you view&lt;br /&gt;       the errors?&lt;br /&gt;       SHOW ERRORS&lt;br /&gt;&lt;br /&gt;47.  How can you gather statistics on a table?&lt;br /&gt;       The ANALYZE command.&lt;br /&gt;&lt;br /&gt;48.  How can you enable a trace for a session?&lt;br /&gt;       Use the DBMS_SESSION.SET_SQL_TRACE or&lt;br /&gt;       Use ALTER SESSION SET SQL_TRACE = TRUE;&lt;br /&gt;&lt;br /&gt;49.  What is the difference between the SQL*Loader and IMPORT utilities?&lt;br /&gt;       These two Oracle utilities are used for loading data into the database.&lt;br /&gt;       The difference  is that the import utility relies on the data being&lt;br /&gt;       produced by another Oracle utility EXPORT while the SQL*Loader&lt;br /&gt;       utility allows data to be loaded that has been produced  by other&lt;br /&gt;       utilities from different data sources just so long as it conforms to ASCII&lt;br /&gt;       formatted or delimited files.&lt;br /&gt;&lt;br /&gt;50.  Name two files used for network connection to a database.&lt;br /&gt;      TNSNAMES.ORA and SQLNET.ORA&lt;br /&gt;      &lt;br /&gt;&lt;br /&gt;&lt;script src="http://digg.com/tools/diggthis.js" type="text/javascript"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-2560170967505542130?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/2560170967505542130/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2008/03/oracle-interview-questions-and-answers.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/2560170967505542130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/2560170967505542130'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2008/03/oracle-interview-questions-and-answers.html' title='Oracle Interview Questions and Answers : SQL'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33995476.post-57880083831654905</id><published>2008-06-06T02:27:00.000-07:00</published><updated>2008-07-01T21:39:21.325-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='Interview Questions'/><title type='text'>ASP.Net Interview Questions</title><content type='html'>&lt;strong&gt;1. Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process.&lt;/strong&gt; inetinfo.exe is theMicrosoft IIS server running, handling ASP.NET requests among other things.When an ASP.NET request is received (usually a file with .aspx extension),the ISAPI filter aspnet_isapi.dll takes care of it by passing the request tothe actual worker process aspnet_wp.exe.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2. What’s the difference between Response.Write() andResponse.Output.Write()?&lt;/strong&gt; The latter one allows you to write formattedoutput.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;3. What methods are fired during the page load? Init()&lt;/strong&gt; - when the pageis instantiated, Load() - when the page is loaded into server memory,PreRender() - the brief moment before the page is displayed to the user asHTML, Unload() - when page finishes loading.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;4. Where does the Web page belong in the .NET Framework class hierarchy?&lt;/strong&gt;System.Web.UI.Page&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;5. Where do you store the information about the user’s locale?&lt;/strong&gt; System.Web.UI.Page.Culture&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;6. What’s the difference between Codebehind="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"? &lt;/strong&gt;CodeBehind is relevant to Visual Studio.NET only.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;7. What’s a bubbled event?&lt;/strong&gt; When you have a complex control, like DataGrid, writing an event processing routine for each object (cell, button, row, etc.) is quite tedious. The controls can bubble up their eventhandlers, allowing the main DataGrid event handler to take care of its constituents.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;8. Suppose you want a certain ASP.NET function executed on MouseOver overa certain button. Where do you add an event handler?&lt;/strong&gt; It’s the Attributesproperty, the Add function inside that property. So btnSubmit.Attributes.Add("onMouseOver","someClientCode();")&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;9. What data type does the RangeValidator control support?&lt;/strong&gt; Integer,String and Date.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;10. Explain the differences between Server-side and Client-side code&lt;/strong&gt;? Server-side code runs on the server. Client-side code runs in the clients’ browser.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;11. What type of code (server or client) is found in a Code-Behind class?&lt;/strong&gt; Server-side code.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;12. Should validation (did the user enter a real date) occur server-side or client-side? Why?&lt;/strong&gt; Client-side. This reduces an additional request to the server to validate the users input.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;13. What does the "EnableViewState" property do? Why would I want it on or off?&lt;/strong&gt; It enables the viewstate on the page. It allows the page to save the users input on a form.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;14. What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?&lt;/strong&gt; Server.Transfer is used to post a form to another page. Response.Redirect is used to redirect the user to another page or site.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;15. Can you explain the difference between an ADO.NET Dataset and an ADO Recordset? &lt;/strong&gt;&lt;br /&gt;· A DataSet can represent an entire relational database in memory, complete with tables, relations, and views.&lt;br /&gt;· A DataSet is designed to work without any continuing connection to the original data source.&lt;br /&gt;· Data in a DataSet is bulk-loaded, rather than being loaded on demand.&lt;br /&gt;· There's no concept of cursor types in a DataSet.&lt;br /&gt;· DataSets have no current record pointer You can use For Each loops to move through the data.&lt;br /&gt;· You can store many edits in a DataSet, and write them to the original data source in a single operation.&lt;br /&gt;· Though the DataSet is universal, other objects in ADO.NET come in different versions for different data sources.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;16. Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?&lt;/strong&gt; This is where you can set the specific variables for the Application and Session objects.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;17. If I’m developing an application that must accommodate multiple security levels though secure login and my ASP.NET web application is spanned across three web-servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users?&lt;/strong&gt; Maintain the login state security through a database.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;18. Can you explain what inheritance is and an example of when you might use it?&lt;/strong&gt; When you want to inherit (use the functionality of) another class. Base Class Employee. A Manager class could be derived from the Employee base class.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;19. Whats an assembly?&lt;/strong&gt; Assemblies are the building blocks of the .NET framework. &lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconassembliesoverview.asp"&gt;Overview of assemblies from MSDN&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;20. Describe the difference between inline and code behind?&lt;/strong&gt; Inline code written along side the html in a page. Code-behind is code written in a separate file and referenced by the .aspx page.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;21. Explain what a diffgram is, and a good use for one?&lt;/strong&gt; The DiffGram is one of the two XML formats that you can use to render DataSet object contents to XML. For reading database data to an XML file to be sent to a Web Service.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;22. Whats MSIL, and why should my developers need an appreciation of it if at all?&lt;/strong&gt; &lt;strong&gt;MSIL&lt;/strong&gt; is the Microsoft Intermediate Language. All .NET compatible languages will get converted to &lt;strong&gt;MSIL&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;23. Which method do you invoke on the DataAdapter control to load your generated dataset with data&lt;/strong&gt;? The .Fill() method&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;24. Can you edit data in the Repeater control?&lt;/strong&gt; No, it just reads the information from its data source&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;25. Which template must you provide, in order to display data in a Repeater control? &lt;/strong&gt;ItemTemplate&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;26. How can you provide an alternating color scheme in a Repeater control? &lt;/strong&gt;Use the AlternatingItemTemplate&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;27. What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?&lt;/strong&gt; You must set the DataSource property and call the DataBind method.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;28. What base class do all Web Forms inherit from?&lt;/strong&gt; The Page class.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;29. Name two properties common in every validation control?&lt;/strong&gt; ControlToValidate property and Text property.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;30. What tags do you need to add within the asp:datagrid tags to bind columns manually?&lt;/strong&gt; Set AutoGenerateColumns Property to false on the datagrid tag&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;31. What tag do you use to add a hyperlink column to the DataGrid? &lt;/strong&gt;&lt;br /&gt;?&gt;?&gt;?&gt;&lt;asp:hyperlinkcolumn&gt;&lt;br /&gt;&lt;strong&gt;32. What is the transport protocol you use to call a Web service? &lt;/strong&gt;SOAP is the preferred protocol.&lt;br /&gt;&lt;strong&gt;33. True or False: A Web service can only be written in .NET?&lt;/strong&gt; False&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;34. What does WSDL stand for?&lt;/strong&gt; (Web Services Description Language)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;35. Where on the Internet would you look for Web services?&lt;/strong&gt; (&lt;a href="http://www.uddi.org/"&gt;http://www.uddi.org/&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;36. Which property on a Combo Box do you set with a column name, prior to setting the&lt;/strong&gt; &lt;strong&gt;DataSource, to display data in the combo box?&lt;/strong&gt; DataTextField property&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;37. Which control would you use if you needed to make sure the values in two different controls matched?&lt;/strong&gt; CompareValidator Control&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;38. True or False: To test a Web service you must create a windows application or Web application to consume this service? False, the webservice comes with a test page and it provides HTTP-GET method to test.How many classes can a single .NET DLL contain?&lt;/strong&gt; It can contain many classes.&lt;br /&gt;&lt;/asp:hyperlinkcolumn&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is Assembly name and name space?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;An assembly is a logical unit of code. Physically it may exist as dll or an exe. which can contain one or more files and they can be any file types like image files, text files etc. along with DLLs or EXEs.When you compile your source code by default the exe/dll which is generated is actually an assemblyand every assembly file contains information about itself which is called as Assembly Manifest.Namespace is an abstract container providing context for the items it holds and allows disambiguation of items having the same name (residing in different namespaces. It can also be said as a context for identifiers. So under a namespace you can have multiple assemblies.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;what is capacity of dataset?&lt;/strong&gt;&lt;br /&gt;DataSet is logical represantation of database so it can store as much as database.&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;What is deployment? How do you deploy .Net and Java applications&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Deployment - It is the procedure to deploy Web Application on the Server. You can deploy .Net application by simply Xcopy and create virtual directory for the application on server.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Where this DataSet is Stored?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Dataset is an in-memory representation of a database. Its stored no where but in memory. Goes off when GC stats after a littl sleep.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How different are interface and abstract class in .Net?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;When a class is not provided with full functionalitythen it is declared as abstract.it doesn't support instance creation as well as it cannot be overridable to child class.interface is a colection of methods only without functionality.interface is 90% same as abstract class.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How does vs.net 2005 support biztalkserver?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;if you install biztalk server it provides Biztalk Project in the project types like webproject, windows project, console project. We use rest of the products of the Biztalk like adapters and all those thing and use them in .net.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;what is marshling?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Marshaling performs the necessary conversions in data formats between managed and unmanaged code.CLR allows managed code to interoperate with unmanaged code usining COM Marshaler(Component of CLR).&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;A DataSet can represent an entire relational database in memory, complete with tables, relations, and views.&lt;br /&gt;&lt;br /&gt;A DataSet is designed to work without any continuing connection to the original data source.&lt;br /&gt;&lt;br /&gt;Data in a DataSet is bulk-loaded, rather than being loaded on demand.&lt;br /&gt;&lt;br /&gt;There's no concept of cursor types in a DataSet.&lt;br /&gt;&lt;br /&gt;DataSets have no current record pointer You can use For Each loops to move through the data.&lt;br /&gt;&lt;br /&gt;You can store many edits in a DataSet, and write them to the original data source in a single operation.&lt;br /&gt;&lt;br /&gt;Though the DataSet is universal, other objects in ADO.NET come in different versions for different data sources.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;In .NET Compact Framework, can I free memory explicitly without waiting for garbage collector to free the memory?&lt;/strong&gt;&lt;br /&gt;.NET Compact Framework come with CLR which perform automatic garbage collector to free the memory without using destector(perform garbage collector when is declear)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-57880083831654905?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/57880083831654905/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2006/11/aspnet-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/57880083831654905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/57880083831654905'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2006/11/aspnet-interview-questions.html' title='ASP.Net Interview Questions'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33995476.post-3314408345739914084</id><published>2008-05-05T23:01:00.000-07:00</published><updated>2008-06-09T02:41:58.649-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C# Interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='Interview Questions'/><title type='text'>C# Interview questions</title><content type='html'>&lt;strong&gt;&lt;span&gt;General Questions:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Does C# support multiple-inheritance?&lt;/strong&gt; No. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Who is a protected class-level variable available to?&lt;/strong&gt; It is available to any sub-class (a class inheriting this class). &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Are private class-level variables inherited?&lt;/strong&gt; Yes, but they are not accessible. Although they are not visible or accessible via the class interface, they are inherited. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Describe the accessibility modifier “protected internal”.&lt;/strong&gt; It is available to classes that are within the same assembly and derived from the specified base class. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What’s the top .NET class that everything is derived from?&lt;/strong&gt; System.Object. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What does the term immutable mean?&lt;/strong&gt;The data value may not be changed. Note: The variable value may be changed, but the original immutable data value was discarded and a new data value was created in memory. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What’s the difference between System.String and System.Text.StringBuilder classes?&lt;/strong&gt;System.String is immutable. System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What’s the advantage of using System.Text.StringBuilder over System.String?&lt;/strong&gt;StringBuilder is more efficient in cases where there is a large amount of string manipulation. Strings are immutable, so each time a string is changed, a new instance in memory is created. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Can you store multiple data types in System.Array?&lt;/strong&gt;No. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What’s the difference between the System.Array.CopyTo() and System.Array.Clone()?&lt;/strong&gt;The Clone() method returns a new array (a shallow copy) object containing all the elements in the original array. The CopyTo() method copies the elements into another existing array. Both perform a shallow copy. A shallow copy means the contents (each array element) contains references to the same object as the elements in the original array. A deep copy (which neither of these methods performs) would create a new instance of each element's object, resulting in a different, yet identacle object. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;How can you sort the elements of the array in descending order?&lt;/strong&gt;By calling Sort() and then Reverse() methods. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What’s the .NET collection class that allows an element to be accessed using a unique key?&lt;/strong&gt;HashTable. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What class is underneath the SortedList class?&lt;/strong&gt;A sorted HashTable. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Will the finally block get executed if an exception has not occurred?&lt;/strong&gt;­Yes. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What’s the C# syntax to catch any possible exception?&lt;/strong&gt;A catch block that catches the exception of type System.Exception. You can also omit the parameter data type in this case and just write catch {}. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Can multiple catch blocks be executed for a single try statement?&lt;/strong&gt;No. Once the proper catch block processed, control is transferred to the finally block (if there are any).&lt;br /&gt;Explain the three services model commonly know as a three-tier application.Presentation (UI), Business (logic and underlying code) and Data (from storage or other sources).&lt;br /&gt;Class Questions&lt;/li&gt;&lt;li&gt;&lt;strong&gt;What is the syntax to inherit from a class in C#?&lt;/strong&gt; Place a colon and then the name of the base class.Example: class MyNewClass : MyBaseClass &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Can you prevent your class from being inherited by another class?&lt;/strong&gt; Yes. The keyword “sealed” will prevent the class from being inherited. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Can you allow a class to be inherited, but prevent the method from being over-ridden?&lt;/strong&gt;Yes. Just leave the class public and make the method sealed. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What’s an abstract class?&lt;/strong&gt;A class that cannot be instantiated. An abstract class is a class that must be inherited and have the methods overridden. An abstract class is essentially a blueprint for a class without any implementation. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;When do you absolutely have to declare a class as abstract?&lt;/strong&gt;1. When the class itself is inherited from an abstract class, but not all base abstract methods have been overridden. 2. When at least one of the methods in the class is abstract. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What is an interface class?&lt;/strong&gt;Interfaces, like classes, define a set of properties, methods, and events. But unlike classes, interfaces do not provide implementation. They are implemented by classes, and defined as separate entities from classes. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Why can’t you specify the accessibility modifier for methods inside the interface?&lt;/strong&gt;They all must be public, and are therefore public by default. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Can you inherit multiple interfaces?&lt;/strong&gt;Yes. .NET does support multiple interfaces. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What happens if you inherit multiple interfaces and they have conflicting method names?&lt;/strong&gt;It’s up to you to implement the method inside your own class, so implementation is left entirely up to you. This might cause a problem on a higher-level scale if similarly named methods from different interfaces expect different data, but as far as compiler cares you’re okay. To Do: Investigate &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What’s the difference between an interface and abstract class?&lt;/strong&gt;In an interface class, all methods are abstract - there is no implementation. In an abstract class some methods can be concrete. In an interface class, no accessibility modifiers are allowed. An abstract class may have accessibility modifiers. What is the difference between a Struct and a Class?Structs are value-type variables and are thus saved on the stack, additional overhead but faster retrieval. Another difference is that structs cannot inherit. &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;&lt;span&gt;Method and Property Questions&lt;/span&gt;&lt;/strong&gt; :&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;What’s the implicit name of the parameter that gets passed into the set method/property of a class?&lt;/strong&gt; Value. The data type of the value parameter is defined by whatever data type the property is declared as. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What does the keyword “virtual” declare for a method or property?&lt;/strong&gt; The method or property can be overridden. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;How is method overriding different from method overloading?&lt;/strong&gt; When overriding a method, you change the behavior of the method for the derived class. Overloading a method simply involves having another method with the same name within the class. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Can you declare an override method to be static if the original method is not static?&lt;/strong&gt; No. The signature of the virtual method must remain the same. (Note: Only the keyword virtual is changed to keyword override) &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What are the different ways a method can be overloaded&lt;/strong&gt;? Different parameter data types, different number of parameters, different order of parameters. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;If a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?&lt;/strong&gt;Yes, just place a colon, and then keyword base (parameter list to invoke the appropriate constructor) in the overloaded constructor definition inside the inherited class. &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;&lt;span&gt;Events and Delegates:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;What’s a delegate?&lt;/strong&gt; A delegate object encapsulates a reference to a method. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What’s a multicast delegate?&lt;/strong&gt; A delegate that has multiple handlers assigned to it. Each assigned handler (method) is called.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;&lt;!--&lt;br /&gt;google_ad_client = "pub-9487358358284001";&lt;br /&gt;/* 250x250, created 6/9/08 */&lt;br /&gt;google_ad_slot = "7800573341";&lt;br /&gt;google_ad_width = 250;&lt;br /&gt;google_ad_height = 250;&lt;br /&gt;google_cpa_choice = ""; // on file&lt;br /&gt;//--&gt;&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;script type="text/javascript"&lt;br /&gt;src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;br /&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-3314408345739914084?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/3314408345739914084/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2006/11/c-interview-questions.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/3314408345739914084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/3314408345739914084'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2006/11/c-interview-questions.html' title='C# Interview questions'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33995476.post-2576276792889241120</id><published>2008-05-04T21:43:00.000-07:00</published><updated>2008-06-02T05:53:35.150-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>SQL Server Interview Questions</title><content type='html'>&lt;ul&gt;&lt;li&gt;&lt;strong&gt;What is normalization?&lt;/strong&gt; - Well a relational database is basically composed of tables that contain related data. So the Process of organizing this data into tables is actually referred to as normalization. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What is a Stored Procedure?&lt;/strong&gt; - Its nothing but a set of T-SQL statements combined to perform a single task of several tasks. Its basically like a Macro so when you invoke the Stored procedure, you actually run a set of statements. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Can you give an example of Stored Procedure?&lt;/strong&gt; - sp_helpdb , sp_who2, sp_renamedb are a set of system defined stored procedures. We can also have user defined stored procedures which can be called in similar way. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What is a trigger?&lt;/strong&gt; - Triggers are basically used to implement business rules. Triggers is also similar to stored procedures. The difference is that it can be activated when data is added or edited or deleted from a table in a database. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What is a view?&lt;/strong&gt; - If we have several tables in a db and we want to view only specific columns from specific tables we can go for views. It would also suffice the needs of security some times allowing specfic users to see only specific columns based on the permission that we can configure on the view. Views also reduce the effort that is required for writing queries to access specific columns every time. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What is an Index?&lt;/strong&gt; - When queries are run against a db, an index on that db basically helps in the way the data is sorted to process the query for faster and data retrievals are much faster when we have an index. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What are the types of indexes available with SQL Server?&lt;/strong&gt; - There are basically two types of indexes that we use with the SQL Server. Clustered and the Non-Clustered.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;What is the basic difference between clustered and a non-clustered index?&lt;/strong&gt; - The difference is that, Clustered index is unique for any given table and we can have only one clustered index on a table. The leaf level of a clustered index is the actual data and the data is resorted in case of clustered index. Whereas in case of non-clustered index the leaf level is actually a pointer to the data in rows so we can have as many non-clustered indexes as we can on the db. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What are cursors?&lt;/strong&gt; - Well cursors help us to do an operation on a set of data that we retreive by commands such as Select columns from table. For example : If we have duplicate records in a table we can remove it by declaring a cursor which would check the records during retreival one by one and remove rows which have duplicate values. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;When do we use the UPDATE_STATISTICS command?&lt;/strong&gt; - This command is basically used when we do a large processing of data. If we do a large amount of deletions any modification or Bulk Copy into the tables, we need to basically update the indexes to take these changes into account. UPDATE_STATISTICS updates the indexes on these tables accordingly. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Which TCP/IP port does SQL Server run on?&lt;/strong&gt; - SQL Server runs on port 1433 but we can also change it for better security. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;From where can you change the default port?&lt;/strong&gt; - From the Network Utility TCP/IP properties –&gt; Port number.both on client and the server. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Can you tell me the difference between DELETE &amp;amp; TRUNCATE commands?&lt;/strong&gt; - Delete command removes the rows from a table based on the condition that we provide with a WHERE clause. Truncate will actually remove all the rows from a table and there will be no data in the table after we run the truncate command. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Can we use Truncate command on a table which is referenced by FOREIGN KEY?&lt;/strong&gt; - No. We cannot use Truncate command on a table with Foreign Key because of referential integrity. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What is the use of DBCC commands?&lt;/strong&gt; - DBCC stands for database consistency checker. We use these commands to check the consistency of the databases, i.e., maintenance, validation task and status checks. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Can you give me some DBCC command options?(&lt;/strong&gt;Database consistency check) - DBCC CHECKDB - Ensures that tables in the db and the indexes are correctly linked.and DBCC CHECKALLOC - To check that all pages in a db are correctly allocated. DBCC SQLPERF - It gives report on current usage of transaction log in percentage. DBCC CHECKFILEGROUP - Checks all tables file group for any damage. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What command do we use to rename a db?&lt;/strong&gt; - sp_renamedb ‘oldname’ , ‘newname’&lt;br /&gt;Well sometimes sp_reanmedb may not work you know because if some one is using the db it will not accept this command so what do you think you can do in such cases? - In such cases we can first bring to db to single user using sp_dboptions and then we can rename that db and then we can rerun the sp_dboptions command to remove the single user mode. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What is the difference between a HAVING CLAUSE and a WHERE CLAUSE?&lt;/strong&gt; - Having Clause is basically used only with the GROUP BY function in a query. WHERE Clause is applied to each row before they are part of the GROUP BY function in a query. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What do you mean by COLLATION?&lt;/strong&gt; - Collation is basically the sort order. There are three types of sort order Dictionary case sensitive, Dictonary - case insensitive and Binary. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What is a Join in SQL Server?&lt;/strong&gt; - Join actually puts data from two or more tables into a single result set. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Can you explain the types of Joins that we can have with Sql Server?&lt;/strong&gt; - There are three types of joins: Inner Join, Outer Join, Cross Join &lt;/li&gt;&lt;li&gt;&lt;strong&gt;When do you use SQL Profiler?&lt;/strong&gt; - SQL Profiler utility allows us to basically track connections to the SQL Server and also determine activities such as which SQL Scripts are running, failed jobs etc.. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What is a Linked Server?&lt;/strong&gt; - Linked Servers is a concept in SQL Server by which we can add other SQL Server to a Group and query both the SQL Server dbs using T-SQL Statements. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Can you link only other SQL Servers or any database servers such as Oracle?&lt;/strong&gt; - We can link any server provided we have the OLE-DB provider from Microsoft to allow a link. For Oracle we have a OLE-DB provider for oracle that microsoft provides to add it as a linked server to the sql server group. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Which stored procedure will you be running to add a linked server?&lt;/strong&gt; - sp_addlinkedserver, sp_addlinkedsrvlogin &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What are the OS services that the SQL Server installation adds?&lt;/strong&gt; - MS SQL SERVER SERVICE, SQL AGENT SERVICE, DTC (Distribution transac co-ordinator) &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Can you explain the role of each service?&lt;/strong&gt; - SQL SERVER - is for running the databases SQL AGENT - is for automation such as Jobs, DB Maintanance, Backups DTC - Is for linking and connecting to other SQL Servers &lt;/li&gt;&lt;li&gt;&lt;strong&gt;How do you troubleshoot SQL Server if its running very slow?&lt;/strong&gt; - First check the processor and memory usage to see that processor is not above 80% utilization and memory not above 40-45% utilization then check the disk utilization using Performance Monitor, Secondly, use SQL Profiler to check for the users and current SQL activities and jobs running which might be a problem. Third would be to run UPDATE_STATISTICS command to update the indexes &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Lets say due to N/W or Security issues client is not able to connect to server or vice versa. How do you troubleshoot?&lt;/strong&gt; - First I will look to ensure that port settings are proper on server and client Network utility for connections. ODBC is properly configured at client end for connection ——Makepipe &amp;amp; readpipe are utilities to check for connection. Makepipe is run on Server and readpipe on client to check for any connection issues. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What are the authentication modes in SQL Server?&lt;/strong&gt; - Windows mode and mixed mode (SQL &amp;amp; Windows). &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Where do you think the users names and passwords will be stored in sql server?&lt;/strong&gt; - They get stored in master db in the sysxlogins table. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What is log shipping? Can we do logshipping with SQL Server 7.0&lt;/strong&gt; - Logshipping is a new feature of SQL Server 2000. We should have two SQL Server - Enterprise Editions. From Enterprise Manager we can configure the logshipping. In logshipping the transactional log file from one server is automatically updated into the backup database on the other server. If one server fails, the other server will have the same db and we can use this as the DR (disaster recovery) plan. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Let us say the SQL Server crashed and you are rebuilding the databases including the master database what procedure to you follow?&lt;/strong&gt; - For restoring the master db we have to stop the SQL Server first and then from command line we can type SQLSERVER –m which will basically bring it into the maintenance mode after which we can restore the master db. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Let us say master db itself has no backup. Now you have to rebuild the db so what kind of action do you take?&lt;/strong&gt; &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What is BCP? When do we use it?&lt;/strong&gt; - BulkCopy is a tool used to copy huge amount of data from tables and views. But it won’t copy the structures of the same. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What should we do to copy the tables, schema and views from one SQL Server to another?&lt;/strong&gt; - We have to write some DTS packages for it. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What are the different types of joins and what dies each do? What are the four main query statements?&lt;/strong&gt; &lt;/li&gt;&lt;/ul&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src="http://digg.com/tools/diggthis.js" type="text/javascript"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-2576276792889241120?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/2576276792889241120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2006/11/sql-server-interview-questions.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/2576276792889241120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/2576276792889241120'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2006/11/sql-server-interview-questions.html' title='SQL Server Interview Questions'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33995476.post-7350228777988803571</id><published>2008-03-18T21:48:00.000-07:00</published><updated>2008-03-18T21:51:20.272-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Covering Letter'/><title type='text'>Covering Letter</title><content type='html'>A cover letter is used to introduce yourself and your resume.When you&lt;br /&gt;send a resume through email,the email content is your cover letter and&lt;br /&gt;the resume is attached.&lt;br /&gt;Below is an example of a cover letter.&lt;br /&gt;&lt;br /&gt;-----------------------------------------------------------------------&lt;br /&gt;Dear Mr. Johnson,&lt;br /&gt;&lt;br /&gt;I am responding to a job posting from Monster.com regarding the Software&lt;br /&gt;Engineer position. I was very excited to see this job posting because the&lt;br /&gt;description closely matches my skillset. Please find enclosed my resume&lt;br /&gt;showing my education, experience, and background.&lt;br /&gt;&lt;br /&gt;I have over 5 years experience working as a software engineer for Amazon.com.&lt;br /&gt;I also have 2 years of experience owning and leading projects. Most recently,&lt;br /&gt;I organized the development of a new web service that increased efficiency&lt;br /&gt;by 40%.&lt;br /&gt;&lt;br /&gt;I have excelled as a software engineer because I enjoy learning many new&lt;br /&gt;technologies. This field is always changing and it gives me the opportunity&lt;br /&gt;to broaden my knowledge. Finally, my friendly personality and willingness&lt;br /&gt;to share ideas will ensure that I will not only blend smoothly into your&lt;br /&gt;dynamic environment, but to make it better as well.&lt;br /&gt;&lt;br /&gt;If you would like to schedule an interview, please contact me anytime.&lt;br /&gt;&lt;br /&gt;Thank you for your time and consideration.&lt;br /&gt;&lt;br /&gt;Sincerely,&lt;br /&gt;&lt;br /&gt;Kavya&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-7350228777988803571?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/7350228777988803571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2008/03/covering-letter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/7350228777988803571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/7350228777988803571'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2008/03/covering-letter.html' title='Covering Letter'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33995476.post-6283825449265398342</id><published>2008-03-08T03:27:00.000-08:00</published><updated>2008-03-12T00:31:34.106-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.Net Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='C# Interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net Interview Questions'/><title type='text'>.Net Interview Questions</title><content type='html'>&lt;strong&gt;      ASP.Net Questions&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Q. Explain the differences between Server-side and Client-side code?&lt;br /&gt;A. Server-side code executes on the server. Client-side code executes in&lt;br /&gt;     the context of the clients' browser.&lt;br /&gt;&lt;br /&gt;Q. What are some ways to manage state in an ASP.Net application?&lt;br /&gt;A. Session objects, Application objects, ViewState, cookies, hidden form fields.&lt;br /&gt;&lt;br /&gt;Q. What does the "EnableViewState" property do? Why would I want it on or off?&lt;br /&gt;A. It allows page objects to save their state in a Base64 encoded string in the page&lt;br /&gt;     HTML. One should only have it enabled when needed because it adds to the&lt;br /&gt;     page size and can get fairly large for complex pages with many controls.&lt;br /&gt;    (It takes longer to download the page).&lt;br /&gt;&lt;br /&gt;Q. What is the difference between Server.Transfer and Response.Redirect? Why&lt;br /&gt;      would I choose one over the other?&lt;br /&gt;A. Server.Transfer transfers excution directly to another page. Response.Redirect&lt;br /&gt;     sends a response to the client and directs the client (the browser) to load the&lt;br /&gt;    new page (it causes a roundtrip). If you don't need to execute code on the client,&lt;br /&gt;     Transfer is more efficient.&lt;br /&gt;&lt;br /&gt;Q. How can I maintain Session state in a Web Farm or Web Garden?&lt;br /&gt;A. Use a State Server or SQL Server to store the session state.&lt;br /&gt;&lt;br /&gt;Q. What base class do all Web Forms inherit from?&lt;br /&gt;A. The Page class.&lt;br /&gt;&lt;br /&gt;Q. What does WSDL stand for? What does it do?&lt;br /&gt;A.(Web Services Description Language). It describes the interfaces and&lt;br /&gt;     other information of a web service.&lt;br /&gt;&lt;br /&gt;Q. Which  WebForm Validator control would you use if you needed to make&lt;br /&gt;      sure the values in two different WebForm controls matched?&lt;br /&gt;A. CompareValidator Control&lt;br /&gt;&lt;br /&gt;Q. What property must you set, and what method must you call in your code,&lt;br /&gt;      in order to bind the data from some data source to the Repeater control?&lt;br /&gt;A. You must set the DataSource property and call the DataBind method.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;      C# Questions&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;Q. Can you explain what inheritance is and an example of when you might use it?&lt;br /&gt;A. Inheritance allows us to extend the functionality of a base class. It is an "Is a"&lt;br /&gt;     type of relationship rather than a "Uses" type of relationship (a dalmation IS A&lt;br /&gt;     dog which IS A canine which IS A mammal - dalmations inherist from dog which&lt;br /&gt;     inherits from canine which inherits from mammal). All child classes retain the&lt;br /&gt;     properties and methods of their parent classes but may override them. When you&lt;br /&gt;     want to inherit (use the functionality of) another class. Base Class Employee.&lt;br /&gt;     A Manager class could be derived from the Employee base class.&lt;br /&gt;&lt;br /&gt;Q. Does C# support multiple-inheritance?&lt;br /&gt;A. No, use interfaces instead.&lt;br /&gt;&lt;br /&gt;Q. Can you prevent your class from being inherited by another class?&lt;br /&gt;A. Yes.  The keyword “sealed” will prevent the class from being inherited.&lt;br /&gt;&lt;br /&gt;Q. What does the keyword “virtual” declare for a method or property?&lt;br /&gt;A. The method or property can be overridden.&lt;br /&gt;&lt;br /&gt;Q. What's the top .NET class that everything is derived from?&lt;br /&gt;A. System.Object.&lt;br /&gt;&lt;br /&gt;Q. What does it mean that a String is immutable?&lt;br /&gt;A. Strings cannot be altered. When you alter a string (by adding to it for example),&lt;br /&gt;     you are actually creating a new string.&lt;br /&gt;&lt;br /&gt;Q. If I have to alter a string many times, such as mutliple concatenations,&lt;br /&gt;      what class should I use?&lt;br /&gt;A. StringBuilder. It is not immutable and is very efficient.&lt;br /&gt;&lt;br /&gt;Q. In a Try - Catch - Finally block, will the finally block execute if an exception&lt;br /&gt;      has not occurred? If an Exception has occurred?&lt;br /&gt;A. Yes and yes.&lt;br /&gt;&lt;br /&gt;Q. Whats MSIL, and why should developers need an appreciation of it, if at all?&lt;br /&gt;A. MSIL is the Microsoft Intermediate Language. All .NET compatible&lt;br /&gt;      languages will get converted to MSIL.&lt;br /&gt;&lt;br /&gt;Q. Explain the three tier or n-Tier model.&lt;br /&gt;A. Presentation (UI), business (logic and underlying code) and data&lt;br /&gt;     (from storage or other sources).&lt;br /&gt;&lt;br /&gt;Q. What is SOA?&lt;br /&gt;A. Service Oriented Architecture. In SOA you create an abstract layer that&lt;br /&gt;     your applications use to access various "services" and can aggregate the&lt;br /&gt;     services. These services could be databases, web services, message queues&lt;br /&gt;     or other sources. The Service Layer provides a way to access these services&lt;br /&gt;     that the applications do not need to know how the access is done. For example,&lt;br /&gt;     to get a full customer record, I might need to get data from a SGL Server&lt;br /&gt;     database, a web service and a message queue. The Service layer hides this from&lt;br /&gt;     the calling application. All the application knows is that it asked for a full&lt;br /&gt;     customer record. It doesn't know what system or systems it came from or&lt;br /&gt;      how it was retrieved.&lt;br /&gt;&lt;br /&gt;Q. What is the role of the Data Reader class in ADO.NET connections?&lt;br /&gt;A. It returns a forward-only, read-only view of data from the data source when&lt;br /&gt;     the command is executed.&lt;br /&gt;&lt;br /&gt;Q. Is XML case-sensitive?&lt;br /&gt;A. Yes.&lt;br /&gt;&lt;br /&gt;Q. What is the CLR?&lt;br /&gt;A. Common Language Runtime&lt;br /&gt;&lt;br /&gt;Q. Can you explain some differences between an ADO.NET Dataset and&lt;br /&gt;      an ADO Recordset? (Or describe some features of a Dataset).&lt;br /&gt;A. A DataSet can represent an entire relational database in memory,&lt;br /&gt;    complete with tables, relations, and views.  A DataSet is designed to&lt;br /&gt;    work without any continuing connection to the original data source.  Data in&lt;br /&gt;    a DataSet is bulk-loaded, rather than being loaded on demand.  There's no&lt;br /&gt;    concept of cursor types in a DataSet.  DataSets have no current record pointer&lt;br /&gt;    You can use For Each loops to move through the data.  You can store many&lt;br /&gt;    edits in a DataSet, and write them to the original data source in a single operation.&lt;br /&gt;    Though the DataSet is universal, other objects in ADO.NET come in different&lt;br /&gt;    versions for different data sources&lt;br /&gt;&lt;br /&gt;Q. Name some of the Microsoft Application Blocks. Have you used any?&lt;br /&gt;     Which ones?&lt;br /&gt;A. Examples:&lt;br /&gt;     Exception Management&lt;br /&gt;     Logging&lt;br /&gt;     Data Access&lt;br /&gt;     User Interface&lt;br /&gt;     Caching Application Block for .NET&lt;br /&gt;     Asynchronous Invocation Application Block for .NET&lt;br /&gt;     Configuration Management Application Block for .NET&lt;br /&gt;     (there are others) We use Exception and Data Access&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-6283825449265398342?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/6283825449265398342/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2008/03/net-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/6283825449265398342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/6283825449265398342'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2008/03/net-interview-questions.html' title='.Net Interview Questions'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33995476.post-2674611964598787665</id><published>2008-02-15T00:44:00.000-08:00</published><updated>2008-02-27T00:50:59.817-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AJAX Interview Questions'/><title type='text'>AJAX Interview Questions</title><content type='html'>&lt;strong&gt;What is AJAX?&lt;br /&gt;&lt;br /&gt;Is the server or the client in control in AJAX?&lt;br /&gt;&lt;/strong&gt;&lt;strong&gt;&lt;br /&gt;What is the XMLHttpRequest object?&lt;br /&gt;&lt;br /&gt;How do I get the XMLHttpRequest object?&lt;br /&gt;&lt;br /&gt;How do I abort the current XMLHttpRequest?&lt;/strong&gt;&lt;strong&gt;&lt;br /&gt;&lt;br /&gt;What is the role of Ajax in enhancing user experience?&lt;br /&gt;&lt;br /&gt;How can I call a Java method from Javascript?&lt;br /&gt;&lt;br /&gt;Which browsers support AJAX?&lt;br /&gt;&lt;br /&gt;Is there any way that an AJAX object can get back a record set?&lt;br /&gt;&lt;br /&gt;What are the different frameworks available In AJAX?&lt;br /&gt;&lt;br /&gt;Who invented AJAX?&lt;br /&gt;&lt;br /&gt;Does Java have support for Comet style server-side push?&lt;br /&gt;&lt;br /&gt;Are there any security issues with AJAX?&lt;br /&gt;&lt;br /&gt;Should I use an HTTP GET or POST for my AJAX calls?&lt;br /&gt;&lt;br /&gt;Does AJAX work with Java?         &lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src="http://digg.com/tools/diggthis.js" type="text/javascript"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-2674611964598787665?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/2674611964598787665/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2008/02/ajax-interview-questions.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/2674611964598787665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/2674611964598787665'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2008/02/ajax-interview-questions.html' title='AJAX Interview Questions'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33995476.post-7986755853707806008</id><published>2008-02-05T21:48:00.000-08:00</published><updated>2008-02-05T22:01:34.308-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Interview Questions'/><title type='text'>SQL Server Interview Questions and Answers</title><content type='html'>&lt;strong&gt;What is RDBMS?&lt;/strong&gt;&lt;br /&gt;Relational Data Base Management Systems (RDBMS) are database management systems that maintain data records and indices in tables. Relationships may be created and maintained across and among the data and tables. In a relational database, relationships between data items are expressed by means of tables. Interdependencies among these tables are expressed by data values rather than by pointers. This allows a high degree of data independence. An RDBMS has the capability to recombine the data items from different files, providing powerful tools for data usage.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is normalization?&lt;/strong&gt;&lt;br /&gt;Database normalization is a data design and organization process applied to data structures based on rules that help build relational databases. In relational database design, the process of organizing data to minimize redundancy. Normalization usually involves dividing a database into two or more tables and defining relationships between the tables. The objective is to isolate data so that additions, deletions, and modifications of a field can be made in just one table and then propagated through the rest of the database via the defined relationships.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is Stored Procedure?&lt;/strong&gt;&lt;br /&gt;A stored procedure is a named group of SQL statements that have been previously created and stored in the server database. Stored procedures accept input parameters so that a single procedure can be used over the network by several clients using different input data. And when the procedure is modified, all clients automatically get the new version. Stored procedures reduce network traffic and improve performance. Stored procedures can be used to help ensure the integrity of the database.&lt;br /&gt;e.g. sp_helpdb, sp_renamedb, sp_depends etc.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is Trigger?&lt;/strong&gt;&lt;br /&gt;A trigger is a SQL procedure that initiates an action when an event (INSERT, DELETE or UPDATE) occurs. Triggers are stored in and managed by the DBMS.Triggers are used to maintain the referential integrity of data by changing the data in a systematic fashion. A trigger cannot be called or executed; the DBMS automatically fires the trigger as a result of a data modification to the associated table. Triggers can be viewed as similar to stored procedures in that both consist of procedural logic that is stored at the database level. Stored procedures, however, are not event-drive and are not attached to a specific table as triggers are. Stored procedures are explicitly executed by invoking a CALL to the procedure while triggers are implicitly executed. In addition, triggers can also execute stored procedures.&lt;br /&gt;Nested Trigger: A trigger can also contain INSERT, UPDATE and DELETE logic within itself, so when the trigger is fired because of data modification it can also cause another data modification, thereby firing another trigger. A trigger that contains data modification logic within itself is called a nested trigger.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is View?&lt;/strong&gt;&lt;br /&gt;A simple view can be thought of as a subset of a table. It can be used for retrieving data, as well as updating or deleting rows. Rows updated or deleted in the view are updated or deleted in the table the view was created with. It should also be noted that as data in the original table changes, so does data in the view, as views are the way to look at part of the original table. The results of using a view are not permanently stored in the database. The data accessed through a view is actually constructed using standard T-SQL select command and can come from one to many different base tables or even other views.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is Index?&lt;/strong&gt;&lt;br /&gt;An index is a physical structure containing pointers to the data. Indices are created in an existing table to locate rows more quickly and efficiently. It is possible to create an index on one or more columns of a table, and each index is given a name. The users cannot see the indexes, they are just used to speed up queries. Effective indexes are one of the best ways to improve performance in a database application. A table scan happens when there is no index available to help a query. In a table scan SQL Server examines every row in the table to satisfy the query results. Table scans are sometimes unavoidable, but on large tables, scans have a terrific impact on performance.&lt;br /&gt;&lt;br /&gt;Clustered indexes define the physical sorting of a database table’s rows in the storage media. For this reason, each database table may have only one clustered index.&lt;br /&gt;Non-clustered indexes are created outside of the database table and contain a sorted list of references to the table itself.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the difference between clustered and a non-clustered index?&lt;/strong&gt;&lt;br /&gt;A clustered index is a special type of index that reorders the way records in the table are physically stored. Therefore table can have only one clustered index. The leaf nodes of a clustered index contain the data pages.&lt;br /&gt;&lt;br /&gt;A nonclustered index is a special type of index in which the logical order of the index does not match the physical stored order of the rows on disk. The leaf node of a nonclustered index does not consist of the data pages. Instead, the leaf nodes contain index rows.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What are the different index configurations a table can have?&lt;/strong&gt;&lt;br /&gt;A table can have one of the following index configurations:&lt;br /&gt;&lt;br /&gt;No indexes&lt;br /&gt;A clustered index&lt;br /&gt;A clustered index and many nonclustered indexes&lt;br /&gt;A nonclustered index&lt;br /&gt;Many nonclustered indexes&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is cursors?&lt;/strong&gt;&lt;br /&gt;Cursor is a database object used by applications to manipulate data in a set on a row-by-row basis, instead of the typical SQL commands that operate on all the rows in the set at one time.&lt;br /&gt;&lt;br /&gt;In order to work with a cursor we need to perform some steps in the following order:&lt;br /&gt;&lt;br /&gt;Declare cursor&lt;br /&gt;Open cursor&lt;br /&gt;Fetch row from the cursor&lt;br /&gt;Process fetched row&lt;br /&gt;Close cursor&lt;br /&gt;Deallocate cursor&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the use of DBCC commands?&lt;/strong&gt;&lt;br /&gt;DBCC stands for database consistency checker. We use these commands to check the consistency of the databases, i.e., maintenance, validation task and status checks.&lt;br /&gt;E.g. DBCC CHECKDB - Ensures that tables in the db and the indexes are correctly linked.&lt;br /&gt;DBCC CHECKALLOC - To check that all pages in a db are correctly allocated.&lt;br /&gt;DBCC CHECKFILEGROUP - Checks all tables file group for any damage.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is a Linked Server?&lt;/strong&gt;&lt;br /&gt;Linked Servers is a concept in SQL Server by which we can add other SQL Server to a Group and query both the SQL Server dbs using T-SQL Statements. With a linked server, you can create very clean, easy to follow, SQL statements that allow remote data to be retrieved, joined and combined with local data.&lt;br /&gt;Storped Procedure sp_addlinkedserver, sp_addlinkedsrvlogin will be used add new Linked Server.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is Collation?&lt;/strong&gt;&lt;br /&gt;Collation refers to a set of rules that determine how data is sorted and compared. Character data is sorted using rules that define the correct character sequence, with options for specifying case-sensitivity, accent marks, kana character types and character width.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What are different type of Collation Sensitivity?&lt;/strong&gt;&lt;br /&gt;Case sensitivity&lt;br /&gt;A and a, B and b, etc.&lt;br /&gt;&lt;br /&gt;Accent sensitivity&lt;br /&gt;a and á, o and ó, etc.&lt;br /&gt;&lt;br /&gt;Kana Sensitivity&lt;br /&gt;When Japanese kana characters Hiragana and Katakana are treated differently, it is called Kana sensitive.&lt;br /&gt;&lt;br /&gt;Width sensitivity&lt;br /&gt;When a single-byte character (half-width) and the same character when represented as a double-byte character (full-width) are treated differently then it is width sensitive.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What’s the difference between a primary key and a unique key?&lt;/strong&gt;&lt;br /&gt;Both primary key and unique enforce uniqueness of the column on which they are defined. But by default primary key creates a clustered index on the column, where are unique creates a nonclustered index by default. Another major difference is that, primary key doesn’t allow NULLs, but unique key allows one NULL only.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How to implement one-to-one, one-to-many and many-to-many relationships while designing tables?&lt;/strong&gt;&lt;br /&gt;One-to-One relationship can be implemented as a single table and rarely as two tables with primary and foreign key relationships.&lt;br /&gt;One-to-Many relationships are implemented by splitting the data into two tables with primary key and foreign key relationships.&lt;br /&gt;Many-to-Many relationships are implemented using a junction table with the keys from both the tables forming the composite primary key of the junction table.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is a NOLOCK?&lt;/strong&gt;&lt;br /&gt;Using the NOLOCK query optimiser hint is generally considered good practice in order to improve concurrency on a busy system. When the NOLOCK hint is included in a SELECT statement, no locks are taken when data is read. The result is a Dirty Read, which means that another process could be updating the data at the exact time you are reading it. There are no guarantees that your query will retrieve the most recent data. The advantage to performance is that your reading of data will not block updates from taking place, and updates will not block your reading of data. SELECT statements take Shared (Read) locks. This means that multiple SELECT statements are allowed simultaneous access, but other processes are blocked from modifying the data. The updates will queue until all the reads have completed, and reads requested after the update will wait for the updates to complete. The result to your system is delay(blocking).&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is difference between DELETE &amp;amp; TRUNCATE commands?&lt;/strong&gt;&lt;br /&gt;Delete command removes the rows from a table based on the condition that we provide with a WHERE clause. Truncate will actually remove all the rows from a table and there will be no data in the table after we run the truncate command.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;TRUNCATE&lt;/strong&gt;&lt;br /&gt;TRUNCATE is faster and uses fewer system and transaction log resources than DELETE.&lt;br /&gt;TRUNCATE removes the data by deallocating the data pages used to store the table’s data, and only the page deallocations are recorded in the transaction log.&lt;br /&gt;TRUNCATE removes all rows from a table, but the table structure and its columns, constraints, indexes and so on remain. The counter used by an identity for new rows is reset to the seed for the column.&lt;br /&gt;You cannot use TRUNCATE TABLE on a table referenced by a FOREIGN KEY constraint.&lt;br /&gt;Because TRUNCATE TABLE is not logged, it cannot activate a trigger.&lt;br /&gt;TRUNCATE can not be Rolled back using logs.&lt;br /&gt;TRUNCATE is DDL Command.&lt;br /&gt;TRUNCATE Resets identity of the table.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;DELETE&lt;/strong&gt;&lt;br /&gt;DELETE removes rows one at a time and records an entry in the transaction log for each deleted row.&lt;br /&gt;If you want to retain the identity counter, use DELETE instead. If you want to remove table definition and its data, use the DROP TABLE statement.&lt;br /&gt;DELETE Can be used with or without a WHERE clause&lt;br /&gt;DELETE Activates Triggers.&lt;br /&gt;DELETE Can be Rolled back using logs.&lt;br /&gt;DELETE is DML Command.&lt;br /&gt;DELETE does not reset identity of the table.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Difference between Function and Stored Procedure?&lt;/strong&gt;&lt;br /&gt;UDF can be used in the SQL statements anywhere in the WHERE/HAVING/SELECT section where as Stored procedures cannot be.&lt;br /&gt;UDFs that return tables can be treated as another rowset. This can be used in JOINs with other tables.&lt;br /&gt;Inline UDF’s can be though of as views that take parameters and can be used in JOINs and other Rowset operations.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;When is the use of UPDATE_STATISTICS command?&lt;/strong&gt;&lt;br /&gt;This command is basically used when a large processing of data has occurred. If a large amount of deletions any modification or Bulk Copy into the tables has occurred, it has to update the indexes to take these changes into account. UPDATE_STATISTICS updates the indexes on these tables accordingly.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What types of Joins are possible with Sql Server?&lt;/strong&gt;&lt;br /&gt;Joins are used in queries to explain how different tables are related. Joins also let you select data from a table depending upon data from another table.&lt;br /&gt;Types of joins: INNER JOINs, OUTER JOINs, CROSS JOINs. OUTER JOINs are further classified as LEFT OUTER JOINS, RIGHT OUTER JOINS and FULL OUTER JOINS.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the difference between a HAVING CLAUSE and a WHERE CLAUSE?&lt;/strong&gt;&lt;br /&gt;Specifies a search condition for a group or an aggregate. HAVING can be used only with the SELECT statement. HAVING is typically used in a GROUP BY clause. When GROUP BY is not used, HAVING behaves like a WHERE clause. Having Clause is basically used only with the GROUP BY function in a query. WHERE Clause is applied to each row before they are part of the GROUP BY function in a query. HAVING criteria is applied after the the grouping of rows has occurred.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is sub-query? Explain properties of sub-query.&lt;/strong&gt;&lt;br /&gt;Sub-queries are often referred to as sub-selects, as they allow a SELECT statement to be executed arbitrarily within the body of another SQL statement. A sub-query is executed by enclosing it in a set of parentheses. Sub-queries are generally used to return a single row as an atomic value, though they may be used to compare values against multiple rows with the IN keyword.&lt;br /&gt;&lt;br /&gt;A subquery is a SELECT statement that is nested within another T-SQL statement. A subquery SELECT statement if executed independently of the T-SQL statement, in which it is nested, will return a result set. Meaning a subquery SELECT statement can standalone and is not depended on the statement in which it is nested. A subquery SELECT statement can return any number of values, and can be found in, the column list of a SELECT statement, a FROM, GROUP BY, HAVING, and/or ORDER BY clauses of a T-SQL statement. A Subquery can also be used as a parameter to a function call. Basically a subquery can be used anywhere an expression can be used.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Properties of Sub-Query&lt;/strong&gt;&lt;br /&gt;A subquery must be enclosed in the parenthesis.&lt;br /&gt;A subquery must be put in the right hand of the comparison operator, and&lt;br /&gt;A subquery cannot contain a ORDER-BY clause.&lt;br /&gt;A query can contain more than one sub-queries.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What are types of sub-queries?&lt;/strong&gt;&lt;br /&gt;Single-row subquery, where the subquery returns only one row.&lt;br /&gt;Multiple-row subquery, where the subquery returns multiple rows,.and&lt;br /&gt;Multiple column subquery, where the subquery returns multiple columns.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is User Defined Functions?&lt;/strong&gt;&lt;br /&gt;User-Defined Functions allow to define its own T-SQL functions that can accept 0 or more parameters and return a single scalar data value or a table data type.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What kind of User-Defined Functions can be created?&lt;/strong&gt;&lt;br /&gt;There are three types of User-Defined functions in SQL Server 2000 and they are Scalar, Inline Table-Valued and Multi-statement Table-valued.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Scalar User-Defined Function&lt;/strong&gt;&lt;br /&gt;A Scalar user-defined function returns one of the scalar data types. Text, ntext, image and timestamp data types are not supported. These are the type of user-defined functions that most developers are used to in other programming languages. You pass in 0 to many parameters and you get a return value.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Inline Table-Value User-Defined Function&lt;/strong&gt;&lt;br /&gt;An Inline Table-Value user-defined function returns a table data type and is an exceptional alternative to a view as the user-defined function can pass parameters into a T-SQL select command and in essence provide us with a parameterized, non-updateable view of the underlying tables.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Multi-statement Table-Value User-Defined Function&lt;/strong&gt;&lt;br /&gt;A Multi-Statement Table-Value user-defined function returns a table and is also an exceptional alternative to a view as the function can support multiple T-SQL statements to build the final result where the view is limited to a single SELECT statement. Also, the ability to pass parameters into a T-SQL select command or a group of them gives us the capability to in essence create a parameterized, non-updateable view of the data in the underlying tables. Within the create function command you must define the table structure that is being returned. After creating this type of user-defined function, It can be used in the FROM clause of a T-SQL command unlike the behavior found when using a stored procedure which can also return record sets.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Which TCP/IP port does SQL Server run on? How can it be changed?&lt;/strong&gt;&lt;br /&gt;SQL Server runs on port 1433. It can be changed from the Network Utility TCP/IP properties –&gt; Port number.both on client and the server.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What are the authentication modes in SQL Server? How can it be changed?&lt;/strong&gt;&lt;br /&gt;Windows mode and mixed mode (SQL &amp;amp; Windows).&lt;br /&gt;&lt;br /&gt;To change authentication mode in SQL Server click Start, Programs, Microsoft SQL Server and click SQL Enterprise Manager to run SQL Enterprise Manager from the Microsoft SQL Server program group. Select the server then from the Tools menu select SQL Server Configuration Properties, and choose the Security page.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Where are SQL server users names and passwords are stored in sql server?&lt;/strong&gt;&lt;br /&gt;They get stored in master db in the sysxlogins table.&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;Which command using Query Analyzer will give you the version of SQL server and operating system?&lt;/strong&gt;&lt;br /&gt;SELECT  SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition')&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is SQL server agent?&lt;/strong&gt;&lt;br /&gt;SQL Server agent plays an important role in the day-to-day tasks of a database administrator (DBA). It is often overlooked as one of the main tools for SQL Server management. Its purpose is to ease the implementation of tasks for the DBA, with its full-function scheduling engine, which allows you to schedule your own jobs and scripts.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Can a stored procedure call itself or recursive stored procedure? How many level SP nesting possible?&lt;/strong&gt;&lt;br /&gt;Yes. Because Transact-SQL supports recursion, you can write stored procedures that call themselves. Recursion can be defined as a method of problem solving wherein the solution is arrived at by repetitively applying it to subsets of the problem. A common application of recursive logic is to perform numeric computations that lend themselves to repetitive evaluation by the same processing steps. Stored procedures are nested when one stored procedure calls another or executes managed code by referencing a CLR routine, type, or aggregate. You can nest stored procedures and managed code references up to 32 levels.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is @@ERROR?&lt;/strong&gt;&lt;br /&gt;The @@ERROR automatic variable returns the error code of the last Transact-SQL statement. If there was no error, @@ERROR returns zero. Because @@ERROR is reset after each Transact-SQL statement, it must be saved to a variable if it is needed to process it further after checking it.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is Raiseerror?&lt;/strong&gt;&lt;br /&gt;Stored procedures report errors to client applications via the RAISERROR command. RAISERROR doesn’t change the flow of a procedure; it merely displays an error message, sets the @@ERROR automatic variable, and optionally writes the message to the SQL Server error log and the NT application event log.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is log shipping?&lt;/strong&gt;&lt;br /&gt;Log shipping is the process of automating the backup of database and transaction log files on a production SQL server, and then restoring them onto a standby server. Enterprise Editions only supports log shipping. In log shipping the transactional log file from one server is automatically updated into the backup database on the other server. If one server fails, the other server will have the same db can be used this as the Disaster Recovery plan. The key feature of log shipping is that is will automatically backup transaction logs throughout the day and automatically restore them on the standby server at defined interval.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the difference between a local and a global variable?&lt;/strong&gt;&lt;br /&gt;A local temporary table exists only for the duration of a connection or, if defined inside a compound statement, for the duration of the compound statement.&lt;br /&gt;&lt;br /&gt;A global temporary table remains in the database permanently, but the rows exist only within a given connection. When connection are closed, the data in the global temporary table disappears. However, the table definition remains with the database for access when database is opened next time&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What command do we use to rename a db?&lt;/strong&gt;&lt;br /&gt;sp_renamedb ‘oldname’ , ‘newname’&lt;br /&gt;If someone is using db it will not accept sp_renmaedb. In that case first bring db to single user using sp_dboptions. Use sp_renamedb to rename database. Use sp_dboptions to bring database to multi user mode.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is sp_configure commands and set commands?&lt;/strong&gt;&lt;br /&gt;Use sp_configure to display or change server-level settings. To change database-level settings, use ALTER DATABASE. To change settings that affect only the current user session, use the SET statement.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Using query analyzer, name 3 ways to get an accurate count of the number of records in a table?&lt;/strong&gt;&lt;br /&gt;SELECT * FROM table1&lt;br /&gt;SELECT COUNT(*) FROM table1&lt;br /&gt;SELECT rows FROM sysindexes WHERE id = OBJECT_ID(table1) AND indid &lt; 2&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What are primary keys and foreign keys?&lt;/strong&gt;&lt;br /&gt;Primary keys are the unique identifiers for each row. They must contain unique values and cannot be null. Due to their importance in relational databases, Primary keys are the most fundamental of all keys and constraints. A table can have only one Primary key.&lt;br /&gt;Foreign keys are both a method of ensuring data integrity and a manifestation of the relationship between tables.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is data integrity? Explain constraints?&lt;/strong&gt;&lt;br /&gt;Data integrity is an important feature in SQL Server. When used properly, it ensures that data is accurate, correct, and valid. It also acts as a trap for otherwise undetectable bugs within applications.&lt;br /&gt;A &lt;strong&gt;PRIMARY KEY&lt;/strong&gt; constraint is a unique identifier for a row within a database table. Every table should have a primary key constraint to uniquely identify each row and only one primary key constraint can be created for each table. The primary key constraints are used to enforce entity integrity.&lt;br /&gt;&lt;br /&gt;A &lt;strong&gt;UNIQUE&lt;/strong&gt; constraint enforces the uniqueness of the values in a set of columns, so no duplicate values are entered. The unique key constraints are used to enforce entity integrity as the primary key constraints.&lt;br /&gt;&lt;br /&gt;A &lt;strong&gt;FOREIGN KEY&lt;/strong&gt; constraint prevents any actions that would destroy links between tables with the corresponding data values. A foreign key in one table points to a primary key in another table. Foreign keys prevent actions that would leave rows with foreign key values when there are no primary keys with that value. The foreign key constraints are used to enforce referential integrity.&lt;br /&gt;&lt;br /&gt;A &lt;strong&gt;CHECK&lt;/strong&gt; constraint is used to limit the values that can be placed in a column. The check constraints are used to enforce domain integrity.&lt;br /&gt;&lt;br /&gt;A &lt;strong&gt;NOT NULL&lt;/strong&gt; constraint enforces that the column will not accept null values. The not null constraints are used to enforce domain integrity, as the check constraints.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How to get @@error and @@rowcount at the same time?&lt;/strong&gt;&lt;br /&gt;If @@Rowcount is checked after Error checking statement then it will have 0 as the value of @@Recordcount as it would have been reset.&lt;br /&gt;And if @@Recordcount is checked before the error-checking statement then @@Error would get reset. To get @@error and @@rowcount at the same time do both in same statement and store them in local variable. SELECT @RC = @@ROWCOUNT, @ER = @@ERROR&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is Identity?&lt;/strong&gt;&lt;br /&gt;Identity (or AutoNumber) is a column that automatically generates numeric values. A start and increment value can be set, but most DBA leave these at 1. A GUID column also generates numbers, the value of this cannot be controled. Identity/GUID columns do not need to be indexed.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is BCP? When does it used?&lt;/strong&gt;&lt;br /&gt;BulkCopy is a tool used to copy huge amount of data from tables and views. BCP does not copy the structures same as source to destination.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How do you load large data to the SQL server database?&lt;/strong&gt;&lt;br /&gt;BulkCopy is a tool used to copy huge amount of data from tables. BULK INSERT command helps to Imports a data file into a database table or view in a user-specified format.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Can we rewrite subqueries into simple select statements or with joins?&lt;/strong&gt;&lt;br /&gt;Subqueries can often be re-written to use a standard outer join, resulting in faster performance. As we may know, an outer join uses the plus sign (+) operator to tell the database to return all non-matching rows with NULL values. Hence we combine the outer join with a NULL test in the WHERE clause to reproduce the result set without using a sub-query.&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;Can SQL Servers linked to other servers like Oracle?&lt;/strong&gt;&lt;br /&gt;SQL Server can be lined to any server provided it has OLE-DB provider from Microsoft to allow a link. E.g. Oracle has a OLE-DB provider for oracle that Microsoft provides to add it as linked server to SQL Server group.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How to know which index a table is using?&lt;/strong&gt;&lt;br /&gt;SELECT table_name,index_name FROM user_constraints&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How to copy the tables, schema and views from one SQL server to another?&lt;/strong&gt;&lt;br /&gt;Microsoft SQL Server 2000 Data Transformation Services (DTS) is a set of graphical tools and programmable objects that lets user extract, transform, and consolidate data from disparate sources into single or multiple destinations.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is Self Join?&lt;/strong&gt;&lt;br /&gt;This is a particular case when one table joins to itself, with one or two aliases to avoid confusion. A self join can be of any type, as long as the joined tables are the same. A self join is rather unique in that it involves a relationship with only one table. The common example is when company have a hierarchal reporting structure whereby one member of staff reports to another.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is Cross Join?&lt;/strong&gt;&lt;br /&gt;A cross join that does not have a WHERE clause produces the Cartesian product of the tables involved in the join. The size of a Cartesian product result set is the number of rows in the first table multiplied by the number of rows in the second table. The common example is when company wants to combine each product with a pricing table to analyze each product at each price.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Which virtual table does a trigger use?&lt;/strong&gt;&lt;br /&gt;Inserted and Deleted.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;List few advantages of Stored Procedure.&lt;/strong&gt;&lt;br /&gt;Stored procedure can reduced network traffic and latency, boosting application performance.&lt;br /&gt;Stored procedure execution plans can be reused, staying cached in SQL Server’s memory, reducing server overhead.&lt;br /&gt;Stored procedures help promote code reuse.&lt;br /&gt;Stored procedures can encapsulate logic. You can change stored procedure code without affecting clients.&lt;br /&gt;Stored procedures provide better security to your data.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-7986755853707806008?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/7986755853707806008/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2008/02/sql-server-interview-questions-and.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/7986755853707806008'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/7986755853707806008'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2008/02/sql-server-interview-questions-and.html' title='SQL Server Interview Questions and Answers'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33995476.post-8406988088900067708</id><published>2008-02-02T01:19:00.000-08:00</published><updated>2008-02-27T00:52:15.614-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JSP Interview Questions'/><title type='text'>JSP interview questions</title><content type='html'>&lt;ul&gt;&lt;li&gt;Can you make use of a ServletOutputStream object from within a JSP page?&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Can a JSP page instantiate a serialized bean?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is the page directive is used to prevent a JSP page from automatically creating a session?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do you prevent the Creation of a Session in a JSP Page and why?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do I include static files within a JSP page?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How can I implement a thread-safe JSP page?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do I mix JSP and SSI #include?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Can a JSP page process HTML FORM data?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What JSP lifecycle methods can I override?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do I perform browser redirection from a JSP page?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Is there a way to reference the “this” variable within a JSP page?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Can I stop JSP execution while in the midst of processing a request?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do I use comments within a JSP page?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do I prevent the output of my JSP or Servlet pages from being cached by the browser?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How does JSP handle run-time exceptions?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do I use a scriptlet to initialize a newly instantiated bean?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How can I enable session tracking for JSP pages if the browser has disabled cookies?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How can I declare methods within my JSP page?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How can I set a cookie and delete a cookie from within a JSP page?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Is there a way I can set the inactivity lease period on a per-session basis?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How does a servlet communicate with a JSP page?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do I have the JSP-generated servlet subclass my own custom servlet class, instead of the default?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do you pass control from one JSP page to another?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do you restrict page errors display in the JSP page?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do you call stored procedures from JSP?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do you connect to the database from JSP?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is Declaration?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is difference between scriptlet and expression?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is jsp:use bean. What are the scope attributes &amp;amp; difference between these attributes?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What are the implicit objects in JSP &amp;amp; differences between them?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What are Custom tags. Why do you need Custom tags. How do you create Custom tag?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is the difference between include directive &amp;amp; jsp:include action?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What are advantages of JSP?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is JSP?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Can a single JSP page be considered as a J2EE application?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How to call EJB from JSP.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is the architecture of JSP?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is the difference between servlet session and jsp session?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Why should we setContentType() in servlet ?what is the use of that method?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;When jsp is compiled into servlet, where the servlet is actually stored(storage location)?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How to generate BAR &amp;amp; PIE Graphs using JSP code…?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is the diff. b/n declaring members in and declaraing in jspinit() method ?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How to check the value in the text field is not a number&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is the difference between , pagedirective include, action tag include ?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What are the default objects provided by JSP container? Other than page, request, session and context objects.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is the default scope of jsp tags?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;When many Users are browsing the same application at the same time and they click the “Submit” button will many objects be created for each and every User?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is the difference between Difference between doGet() and doPost()?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do we perform redirect action without using response.sendRedirect(” “);&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;A] Is the response.sendRedirect ends the existing session? B] If I logged in to a site ( say a.com) &amp;amp; then in same browser window I type the url for another site (say b.com), then does my session gets ended on first site ( a. com ) ?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How to overwrite the init and destroy method in a jsp page.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Where do we use hidden variables and url rewriting? and wat is the difference between them?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is the difference between session and cookie ?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How to pass java script array to jsp page?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is the difference betweeen JSP forward and servlet forward methods?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Where can we find the compiled file of jsp in the directory struture.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How we abort jsp page from a servlet&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is difference between getAttribute() and getParameter()?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is the diff. b/w PAGE,APPLICATION and SESSION implicit objects of JSP?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Wat is the difference between and in jsp..wen translate into servlet..wer it is stored in servlet..can we create global variables in jsp..if yes then how??&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How can i restrict the user from Clicking of Back button in any browser&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;In one class i stored the key and values in the hashmap.so using key value i have to check wheter the value for key is correct or not.so how to retreive the key and values in jsp page&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is the differnce between application server and web server&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is use of implict Objects?why the container is given those one?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How to delete cookies in JSP?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;In Oracle table some fields are “null”.By default it will show as “null” in JSP page text box.But i dont want that. I want as blank textbox.What i can do for that?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;In Internet explorer if we give a jsp , How the server will know it has to execute?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How the jsp changes will be effected in servlet file after converting?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;When to use struts technology? What type of applications are developed using struts frame work?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is the need of taglibraries?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Explain online banking system using java.that means i need architecture of online banking system.please sir i want full details&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Text in textarea cant be copy by anyone while it is running in the browser (i.e,the text cant be copy and then paste on the other page) give me suggestion?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How can i clear values in sessions. if i open a jsp page it is containing previous values. then i need to open a new page then only i am getting a fresh page&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What data is stored in the variable appname when we give the folowing statement String appname=(”manager”.equalsIgnoreCAse(request.getContextPath()))?”/manager”:”/portal”;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Web browser concept using jsp&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Why we can’t implement interface in JSP? Why we can only extend classes in JSP?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How can we implement logoutpage using jsp ..? and Is there any method to force the browser to show the same page again and again after logout..?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How to Upload a textfile from JSP to Servlet&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;My html form contains an INPUT “text” element that accepts Date, i want to catch that date and want to query it using JSP? In short, how can i use that HTML form element with Prepared Statements in JSP?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Types of indexing used in oracle applications ? and when and how we decide to implement indexing to database ?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is the need of implicit objects?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;When we design some login form how we manage security for those forms?which technology used for that purpose?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How Do you implement interface in JSP?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How can initialize interface in JSP?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do u maintain a Session?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is the differences between JSP LifeCycle and Servlet LifeCycle?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Can I call an interface in a JSP?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is the Difference between sendRedirect() and Forward?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;I want to place two buttons one for save and one for delete.i am using DispatchAction as controller,how can i find which button i am pressing and how to diffrentiate?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is the difference betweeen a statis and dynamic include?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How can my JSP communicate with java class file&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;I want to accomplish the following scenario: 1) user submits a jpg/gif file from an html form (using in the form, the user can browse to a file of their choice) 2) upload the jpg/gif file through a combination of Java and JSP’s 3) put the jpg/gif into a database on a server and/or into a folder on my local system.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How to pop up a jsp page?refreshing every two seconds.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is difference between scriptlet and expression&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Can you make use of a ServletOutputStream object from within a JSP page?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Can a JSP page instantiate a serialized bean?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is the page directive is used to prevent a JSP page from automatically creating a session?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do you prevent the Creation of a Session in a JSP Page and why?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do I include static files within a JSP page?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How can I implement a thread-safe JSP page?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do I mix JSP and SSI #include?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Can a JSP page process HTML FORM data?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What JSP lifecycle methods can I override?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do I perform browser redirection from a JSP page?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Is there a way to reference the “this” variable within a JSP page?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Can I stop JSP execution while in the midst of processing a request?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do I use comments within a JSP page?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do I prevent the output of my JSP or Servlet pages from being cached by the browser?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How does JSP handle run-time exceptions?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do I use a scriptlet to initialize a newly instantiated bean?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How can I enable session tracking for JSP pages if the browser has disabled cookies?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How can I declare methods within my JSP page?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How can I set a cookie and delete a cookie from within a JSP page?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Is there a way I can set the inactivity lease period on a per-session basis?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How does a servlet communicate with a JSP page?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do I have the JSP-generated servlet subclass my own custom servlet class, instead of the default?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do you pass control from one JSP page to another?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do you restrict page errors display in the JSP page?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do you call stored procedures from JSP?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How do you connect to the database from JSP?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src="http://digg.com/tools/diggthis.js" type="text/javascript"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-8406988088900067708?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/8406988088900067708/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2008/02/jsp-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/8406988088900067708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/8406988088900067708'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2008/02/jsp-interview-questions.html' title='JSP interview questions'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33995476.post-8030536956279414285</id><published>2008-01-17T02:59:00.000-08:00</published><updated>2008-02-27T00:52:36.319-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP Interview Questions'/><title type='text'>PHP Interview Questions</title><content type='html'>1. What is the closing tag used by a PHP-driven web page?&lt;br /&gt;&lt;br /&gt;A. /&gt;&lt;br /&gt;B. #&gt;&lt;br /&gt;C. ?&gt;&lt;br /&gt;D. .&gt;&lt;br /&gt;&lt;br /&gt;2. Which PHP conditional operator means the values are equal AND of the same data type?&lt;br /&gt;&lt;br /&gt;A. ==&lt;br /&gt;B. ||&lt;br /&gt;C. ===&lt;br /&gt;D. ==?&lt;br /&gt;&lt;br /&gt;3. Which of the following statements is true regarding variables in PHP (choose two)?&lt;br /&gt;&lt;br /&gt;A. Variable names in PHP are case sensitive.&lt;br /&gt;B. Variable names in PHP are not case sensitive.&lt;br /&gt;C. PHP variables need to be declared before they can be used.&lt;br /&gt;D. PHP variables do not need to be declared before they can be used.&lt;br /&gt;&lt;br /&gt;4. You are evaluating a script written by a previous employee. That script contains a require statement that causes the script to exit when an error occurs. You want to change this so the script will generate a warning when such an error occurs, but keep on running. What should you replace require with?&lt;br /&gt;&lt;br /&gt;A. involve&lt;br /&gt;B. need&lt;br /&gt;C. include&lt;br /&gt;D. call_for&lt;br /&gt;&lt;br /&gt;5. Which of the following does not represent a comment in a PHP script?&lt;br /&gt;&lt;br /&gt;A. // This is a comment&lt;br /&gt;B. ?&gt;?&gt;?&gt;?&gt;?&gt;?&gt;?&gt;?&gt;&lt;br /&gt;C. # This is a comment&lt;br /&gt;D. /* This is a comment */&lt;br /&gt;&lt;br /&gt;6. Which escape character in PHP renders a linefeed?&lt;br /&gt;&lt;br /&gt;A. \n&lt;br /&gt;B. \r&lt;br /&gt;C. \t&lt;br /&gt;D. \\&lt;br /&gt;&lt;br /&gt;7. What file is used to configure global PHP settings? ______________ (Fill in the blank.)&lt;br /&gt;&lt;br /&gt;8. If the value of $AU is currently 7, what is its value as a result of the command $AU++;&lt;br /&gt;&lt;br /&gt;A. 8&lt;br /&gt;B. 9&lt;br /&gt;C. 14&lt;br /&gt;D. 49&lt;br /&gt;&lt;br /&gt;9. Which printf type specifier is used for a floating point value?&lt;br /&gt;&lt;br /&gt;A. d&lt;br /&gt;B. f&lt;br /&gt;C. s&lt;br /&gt;D. u&lt;br /&gt;&lt;br /&gt;10. Which PHP logical operator is used to see if both a and b are true?&lt;br /&gt;&lt;br /&gt;A. a &amp;amp; b&lt;br /&gt;B. a &amp;amp;&amp;amp; b&lt;br /&gt;C. a | b&lt;br /&gt;D. a || b&lt;br /&gt;&lt;br /&gt;11. If an array holds 100 entries, which identifier signifies the first entry?&lt;br /&gt;&lt;br /&gt;A. 100&lt;br /&gt;B. 99&lt;br /&gt;C. 1&lt;br /&gt;D. 0&lt;br /&gt;&lt;br /&gt;12. What function must be called to send the random number generator before array_rand()?&lt;br /&gt;&lt;br /&gt;A. limit()&lt;br /&gt;B. scope()&lt;br /&gt;C. srand()&lt;br /&gt;D. hinum()&lt;br /&gt;&lt;br /&gt;13. Which two choices below represent the default order resulting from a sort utilizing asort()?&lt;br /&gt;&lt;br /&gt;A. A-Z&lt;br /&gt;B. Z-A&lt;br /&gt;C. 0-9&lt;br /&gt;D. 9-0&lt;br /&gt;&lt;br /&gt;14. Which of the following is not true for variable names?&lt;br /&gt;&lt;br /&gt;A. They can contain an underscore character&lt;br /&gt;B. They can begin with a numeric character&lt;br /&gt;C. They can begin with an alpha character&lt;br /&gt;D. They can contain alphanumeric characters&lt;br /&gt;&lt;br /&gt;15. What is the opening tag used on a PHP-driven web page?&lt;br /&gt;&lt;br /&gt;A. ?&gt;?&gt;?&gt;?&gt;?&gt;?&gt;?&gt;?&gt;&lt;br /&gt;D. &lt;&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Answers&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1. The closing tag used by PHP is ?&gt;. Answer: C.&lt;br /&gt;&lt;br /&gt;2. The PHP conditional operator of three equal signs (===) means the values are equal and of the same data type. Answer: C.&lt;br /&gt;&lt;br /&gt;3. PHP variable names are case sensitive and variables do not need to be declared before they can be used. Answer: A and D.&lt;br /&gt;&lt;br /&gt;4. The include instruction will create a warning, but allow the script to continue running when an error is encountered. Answer: C.&lt;br /&gt;&lt;br /&gt;5. There are at least three ways to create comments in a PHP script, and &lt;comment is="" not="" one="" of="" br=""&gt;&lt;br /&gt;6. The \n escape character in PHP renders a linefeed. Answer: A.&lt;br /&gt;&lt;br /&gt;7. The global configuration file is php.ini.&lt;br /&gt;&lt;br /&gt;8. The command $AU++; increments the variable by one – changing it from 7 to 8. Answer: A.&lt;br /&gt;&lt;br /&gt;9. The printf type specifier f is used for a floating point value. Answer: B.&lt;br /&gt;&lt;br /&gt;10. The PHP logical operator to use to see if both a and b are true would be a &amp;amp;&amp;amp; b. Answer: B.&lt;br /&gt;&lt;br /&gt;11. The first entry is 0, the second is 1, and the numbers increment from there. Answer: D.&lt;br /&gt;&lt;br /&gt;12. The srand() function must be called to send the random number generator before array_rand(). Answer: C.&lt;br /&gt;&lt;br /&gt;13. The default order resulting from a sort utilizing asort() is alphabetic (A-Z) and lowest to highest (0-9). Answer: A and C.&lt;br /&gt;&lt;br /&gt;14. Variable names cannot begin with a numeric character. Answer: B.&lt;br /&gt;&lt;br /&gt;15. The opening tag used by PHP is ?&gt;?&gt;?&gt;?&gt;?&gt;?&gt;?&gt;?&gt;&lt;br /&gt;16. Curly braces are used to separate blocks of statements within a control structure. Answer: C.&lt;br /&gt;&lt;br /&gt;17. The settype function can be used to assign a data type to a variable. Answer: C.&lt;br /&gt;&lt;br /&gt;18. The REMOTE_ADDR HTTP variable contains the IP address of the machine making a request. Answer: D.&lt;br /&gt;&lt;br /&gt;19. The POST method should be used for a form as described. Answer: A.&lt;br /&gt;&lt;br /&gt;20. If the result is not a whole number, it is assigned the double data type If it is a whole number, integer is assigned. Answer: B.&lt;br /&gt;&lt;br /&gt;21. The r+ mode of the fopen() function opens a file for reading or writing, maintains exiting content, and places the file pointer at the beginning of the file. Answer: C.&lt;br /&gt;&lt;br /&gt;22. The copy() function can be used to copy a file. Answer: A.&lt;br /&gt;&lt;br /&gt;23. To set a cookie to expire 24 hours from now, compute the number of seconds and use the time() function: $cookie_expire = time() +86400. Answer: C.&lt;br /&gt;&lt;br /&gt;24. The semicolon character (;) is used as a statement terminator to indicate the end of a PHP command. Answer: D.&lt;br /&gt;&lt;br /&gt;25. The command $days = array(); will initialize the $days array. Answer: B.&lt;br /&gt;&lt;br /&gt;26. The file_exists() function can be used to see if a file by the given name is already in existence. Answer: D.&lt;br /&gt;&lt;br /&gt;27. The value of $_COOKIE[user] is equal to what was set in the cookie. Answer: C.&lt;br /&gt;&lt;br /&gt;28. The array_merge() function should be used to combine two or more existing arrays. Answer: B.&lt;br /&gt;&lt;br /&gt;29. The function to use is session_start()&lt;br /&gt;&lt;br /&gt;30. After opening a file with the fopen() function, fclose() is used to close the file pointer. Answer: A.&lt;br /&gt;&lt;br /&gt;31. The gettype function can be used to show the data type for a variable. Answer: B.&lt;br /&gt;&lt;br /&gt;32. The rmdir() function removes a directory from a file system. Answer: A.&lt;br /&gt;&lt;br /&gt;33. sleep() accepts seconds and usleep() accepts milliseconds. Answer: B.&lt;br /&gt;&lt;br /&gt;34. The sizeof() function can tell how many elements are in an array Answer: D.&lt;br /&gt;&lt;br /&gt;35. Information about a session, by default, is configured in the PHP configuration file to be saved beneath /tmp. Answer: C.&lt;br /&gt;&lt;br /&gt;36. $_ENV contains variables provided to a script by means of the server environment. Answer: D.&lt;br /&gt;&lt;br /&gt;37. The unlink() function can be used to delete a file. Answer: C.&lt;br /&gt;&lt;br /&gt;38. The unset function can be used to destroy a variable. Answer: D.&lt;br /&gt;&lt;br /&gt;39. The "a" mode of the fopen() function opens a file for writing and places the file pointer at the end of the file. Answer: B.&lt;br /&gt;&lt;br /&gt;40. The HTTP_USER_AGENT HTTP variable contains the browser type, and browser version, among other values. Answer: D.&lt;br /&gt;&lt;br /&gt;41. This operation subtracts 150 from the existing value. Answer: C.&lt;br /&gt;&lt;br /&gt;42. Parentheses are used to enclose conditional expressions. Answer: B.&lt;br /&gt;&lt;br /&gt;43. The Boolean PHP data type can be either TRUE or FALSE. Answer: C.&lt;br /&gt;&lt;br /&gt;44. $_FILES contains variables provided to a script by means of file uploads. Answer: A.&lt;br /&gt;&lt;br /&gt;45. The RAND_MAX constant identifies the highest random number that a system can generate. Answer: D.&lt;br /&gt;&lt;br /&gt;46. PHP provides support for POSIX through functions of the ereg class. Answer: B.&lt;br /&gt;&lt;br /&gt;47. From a Boolean standpoint, every zero value in PHP is considered false. Answer: B.&lt;br /&gt;&lt;br /&gt;48. The arsort() function places results in the opposite order of asort(). Answer: A.&lt;br /&gt;&lt;br /&gt;49. The printf type specifier s is used for a string. Answer: C.&lt;br /&gt;&lt;br /&gt;50. The != PHP conditional operator means not equal to. Answer: A.&lt;br /&gt;&lt;br /&gt;&lt;script src="http://digg.com/tools/diggthis.js" type="text/javascript"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-8030536956279414285?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/8030536956279414285/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2008/01/php-interview-questions.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/8030536956279414285'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/8030536956279414285'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2008/01/php-interview-questions.html' title='PHP Interview Questions'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33995476.post-3486896408162336742</id><published>2008-01-17T02:36:00.000-08:00</published><updated>2008-02-27T00:52:52.289-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net Interview Questions'/><title type='text'>Tough ASP.NET interview questions</title><content type='html'>&lt;ul&gt;&lt;li&gt;Describe the difference between a Thread and a Process?&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is a Windows Service and how does its lifecycle differ from a “standard” EXE?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is the maximum amount of memory any single process on Windows can address? Is this different than the maximum virtual memory for the system? How would this affect a system design?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is the difference between an EXE and a DLL?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is strong-typing versus weak-typing? Which is preferred? Why?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What’s wrong with a line like this? DateTime.Parse(myString&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What are PDBs? Where must they be located for debugging to work?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is cyclomatic complexity and why is it important?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Write a standard lock() plus double check to create a critical section around a variable access.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is FullTrust? Do GAC’ed assemblies have FullTrust?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What benefit does your code receive if you decorate it with attributes demanding specific Security permissions?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What does this do? gacutil /l | find /i “about”&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What does this do? sn -t foo.dll&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What ports must be open for DCOM over a firewall? What is the purpose of Port 135?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Contrast OOP and SOA. What are tenets of each&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How does the XmlSerializer work? What ACL permissions does a process using it require?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Why is catch(Exception) almost always a bad idea?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is the difference between Debug.Write and Trace.Write? When should each be used?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is the difference between a Debug and Release build? Is there a significant speed difference? Why or why not?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Does JITting occur per-assembly or per-method? How does this affect the working set?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Contrast the use of an abstract base class against an interface?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is the difference between a.Equals(b) and a == b?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;In the context of a comparison, what is object identity versus object equivalence?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;How would one do a deep copy in .NET?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Explain current thinking around IClonable.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;What is boxing?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Is string a value type or a reference type?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src="http://digg.com/tools/diggthis.js" type="text/javascript"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-3486896408162336742?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/3486896408162336742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2008/01/tough-aspnet-interview-questions.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/3486896408162336742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/3486896408162336742'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2008/01/tough-aspnet-interview-questions.html' title='Tough ASP.NET interview questions'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33995476.post-9213686875757647116</id><published>2006-11-18T21:52:00.000-08:00</published><updated>2008-01-09T02:24:18.241-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.Net Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net Interview Questions'/><title type='text'>.Net And ASP.Net Questions</title><content type='html'>&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Explain the .NET architecture.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How many languages .NET is supporting now?&lt;/strong&gt; - When .NET was introduced it came with several languages. VB.NET, C#, COBOL and Perl, etc. The site DotNetLanguages.Net &lt;a href="http://www.dotnetlanguages.net/DNL/Resources.aspx"&gt;says 44 languages are supported&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How is .NET able to support multiple languages? &lt;/strong&gt;- a language should comply with the Common Language Runtime standard to become a .NET language. In .NET, code is compiled to Microsoft Intermediate Language (MSIL for short). This is called as Managed Code. This Managed code is run in .NET environment. So after compilation to this IL the language is not a barrier. A code can call or use a function written in another language.&lt;br /&gt;&lt;a id="more-176"&gt;&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;How ASP .NET different from ASP?&lt;/strong&gt; - Scripting is separated from the HTML, Code is compiled as a DLL, these DLLs can be executed on the server.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Resource Files: How to use the resource files, how to know which language to use?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is smart navigation?&lt;/strong&gt; - The cursor position is maintained when the page gets refreshed due to the server side validation and the page gets refreshed.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is view state?&lt;/strong&gt; - The web is stateless. But in ASP.NET, the state of a page is maintained in the in the page itself automatically. How? The values are encrypted and saved in hidden controls. this is done automatically by the ASP.NET. This can be switched off / on for a single control&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Explain the life cycle of an ASP .NET page.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How do you validate the controls in an ASP .NET page?&lt;/strong&gt; - Using special validation controls that are meant for this. We have Range Validator, Email Validator.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Can the validation be done in the server side? Or this can be done only in the Client side?&lt;/strong&gt; - Client side is done by default. Server side validation is also possible. We can switch off the client side and server side can be done.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How to manage pagination in a page?&lt;/strong&gt; - Using pagination option in DataGrid control. We have to set the number of records for a page, then it takes care of pagination by itself.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is ADO .NET and what is difference between ADO and ADO.NET?&lt;/strong&gt; - ADO.NET is stateless mechanism. I can treat the ADO.Net as a separate in-memory database where in I can use relationships between the tables and select insert and updates to the database. I can update the actual database as a batch.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-9213686875757647116?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/9213686875757647116/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2006/11/net-and-aspnet-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/9213686875757647116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/9213686875757647116'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2006/11/net-and-aspnet-questions.html' title='.Net And ASP.Net Questions'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33995476.post-489050485613644315</id><published>2006-11-18T21:33:00.000-08:00</published><updated>2008-02-27T00:54:15.181-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript Interview Questions'/><title type='text'>JavaScript Interview Questions</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;What’s relationship between JavaScript and ECMAScript?&lt;/strong&gt; - ECMAScript is yet another name for JavaScript (other names include LiveScript). The current JavaScript that you see supported in browsers is ECMAScript revision 3. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What are JavaScript types?&lt;/strong&gt; - Number, String, Boolean, Function, Object, Null, Undefined. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;How do you convert numbers between different bases in JavaScript?&lt;/strong&gt; - Use the parseInt() function, that takes a string as the first parameter, and the base as a second parameter. So to convert hexadecimal 3F to decimal, use parseInt ("3F", 16); &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What does isNaN function do?&lt;/strong&gt; - Return true if the argument is not a number. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What is negative infinity?&lt;/strong&gt; - It’s a number in JavaScript, derived by dividing negative number by zero. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What boolean operators does JavaScript support?&lt;/strong&gt; - &amp;&amp;amp;, and ! &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What does "1"+2+4 evaluate to?&lt;/strong&gt; - Since 1 is a string, everything is a string, so the result is 124. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;How about 2+5+"8"?&lt;/strong&gt; - Since 2 and 5 are integers, this is number arithmetic, since 8 is a string, it’s concatenation, so 78 is the result. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What looping structures are there in JavaScript?&lt;/strong&gt; - for, while, do-while loops, but no foreach. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;How do you create a new object in JavaScript?&lt;/strong&gt; - var obj = new Object(); or var obj = {}; &lt;/li&gt;&lt;li&gt;&lt;strong&gt;How do you assign object properties?&lt;/strong&gt; - obj["age"] = 17 or obj.age = 17. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What’s a way to append a value to an array?&lt;/strong&gt; - arr[arr.length] = value; &lt;/li&gt;&lt;li&gt;&lt;strong&gt;What is this keyword?&lt;/strong&gt; - It refers to the current object. &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src="http://digg.com/tools/diggthis.js" type="text/javascript"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-489050485613644315?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/489050485613644315/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2006/11/javascript-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/489050485613644315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/489050485613644315'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2006/11/javascript-interview-questions.html' title='JavaScript Interview Questions'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33995476.post-1362979947398197061</id><published>2006-11-18T02:16:00.000-08:00</published><updated>2008-01-09T02:26:57.427-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.Net Interview Questions'/><title type='text'>.Net Questions</title><content type='html'>&lt;ul&gt;&lt;li&gt;Differences between DLL and EXE? &lt;/li&gt;&lt;li&gt;Can an assembly have EXE? &lt;/li&gt;&lt;li&gt;Can a DLL be changed to an EXE? &lt;/li&gt;&lt;li&gt;Compare &amp; contrast rich client (smart clients or Windows-based) &amp;amp; browser-based Web application &lt;/li&gt;&lt;li&gt;Compare Client server application with n-Tier application &lt;/li&gt;&lt;li&gt;Can a try block have more than one catch block? &lt;/li&gt;&lt;li&gt;Can a try block have nested try blocks? &lt;/li&gt;&lt;li&gt;How do you load an assembly at runtime? &lt;/li&gt;&lt;li&gt;If I am writing in a language like VB or C++, what are the procedures to be followed to support .NET? &lt;/li&gt;&lt;li&gt;How do you view the methods and members of a DLL?&lt;br /&gt;What is shadowing? &lt;/li&gt;&lt;li&gt;What are the collections you’ve used? &lt;/li&gt;&lt;li&gt;What is the base class of .NET? &lt;/li&gt;&lt;li&gt;Explain assemblies. &lt;/li&gt;&lt;li&gt;Name some of the languages .NET support? &lt;/li&gt;&lt;li&gt;ADO.NET features? Benefits? Drawbacks? &lt;/li&gt;&lt;li&gt;How many types of exception handlers are there in .NET? &lt;/li&gt;&lt;li&gt;Difference between Panel and GroupBox classes? &lt;/li&gt;&lt;li&gt;What is the base class of Button control? &lt;/li&gt;&lt;li&gt;What is Response object? How is it related to ASP’s Response object? &lt;/li&gt;&lt;li&gt;What is IIS? Have you used it? &lt;/li&gt;&lt;li&gt;Main differences between ASP and ASP.NET. &lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-1362979947398197061?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/1362979947398197061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2006/11/net-questions.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/1362979947398197061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/1362979947398197061'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2006/11/net-questions.html' title='.Net Questions'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33995476.post-9045307515373896874</id><published>2006-11-13T21:41:00.000-08:00</published><updated>2008-02-27T00:54:31.321-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ADO Interview Questions'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP Interview Questions'/><title type='text'>ASP, ADO Interview Questions</title><content type='html'>&lt;ul&gt;&lt;li&gt;How many objects are there in ASP? &lt;/li&gt;&lt;li&gt;Which DLL file is needed to be registered for ASP? &lt;/li&gt;&lt;li&gt;If you want to initialize a global variable for an application, which is the right place to declare it? (like form or some other file). &lt;/li&gt;&lt;li&gt;What is diffrence between Server.transfer and Response.redirect. &lt;/li&gt;&lt;li&gt;Is there any inbuilt paging(for example shoping cart. which will show next 10 records without refreshing) in ASP? How will you do pating. &lt;/li&gt;&lt;li&gt;What does Server.MapPath do? &lt;/li&gt;&lt;li&gt;Name at least three methods of response object other than Redirect. &lt;/li&gt;&lt;li&gt;Name at least two methods of response object other than Transfer. &lt;/li&gt;&lt;li&gt;Tell few programming diffrence between ADO and DAO programming. What is state? &lt;/li&gt;&lt;li&gt;How many types of cookies are there? &lt;/li&gt;&lt;li&gt;Tell few steps for optimizing (for speed and resources) ASP page/application &lt;/li&gt;&lt;li&gt;Why do you use Option Explicit? &lt;/li&gt;&lt;li&gt;What are the commonly used data types in VBScript? &lt;/li&gt;&lt;li&gt;What is a session object? &lt;/li&gt;&lt;li&gt;What are the three objects of ADO? &lt;/li&gt;&lt;li&gt;What are the lock-types available in ADO? Explain. &lt;/li&gt;&lt;li&gt;What are the cursor types available in ADO? Explain. &lt;/li&gt;&lt;li&gt;What is a COM component? &lt;/li&gt;&lt;li&gt;How do you register a COM component? &lt;/li&gt;&lt;li&gt;What is a virtual root and how do you create one? &lt;/li&gt;&lt;li&gt;What is a database index, how do you create one, discuss its pros and cons? &lt;/li&gt;&lt;li&gt;How do you use multiple record sets (rs.NextRecordSet)? &lt;/li&gt;&lt;li&gt;As soon as you fetch a record set, what operations would you perform? &lt;/li&gt;&lt;li&gt;Define a transaction. What are ACID properties of a transaction? &lt;/li&gt;&lt;li&gt;How would you remotely administer IIS? &lt;/li&gt;&lt;li&gt;What is RAID? What is it used for? &lt;/li&gt;&lt;li&gt;What is normalization? Explain normalization types. &lt;/li&gt;&lt;li&gt;What is the disadvantage of creating an index in every column of a database table? &lt;/li&gt;&lt;li&gt;What are the uses of source control software? &lt;/li&gt;&lt;li&gt;You have a query that runs slowly, how would you make it better? How would you &lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/scalenet.asp"&gt;make it better in .NET environment&lt;/a&gt;? &lt;/li&gt;&lt;li&gt;What is a bit datatype? What is it used for? &lt;/li&gt;&lt;li&gt;How would you go about securing IIS and MS-SQL Server? &lt;/li&gt;&lt;li&gt;What is the difference between Request(”field”) and Request.Form(”field”)? &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src="http://digg.com/tools/diggthis.js" type="text/javascript"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-9045307515373896874?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/9045307515373896874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2006/11/asp-interview-questions.html#comment-form' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/9045307515373896874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/9045307515373896874'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2006/11/asp-interview-questions.html' title='ASP, ADO Interview Questions'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33995476.post-6104013911212824747</id><published>2006-11-06T21:38:00.000-08:00</published><updated>2008-02-27T00:54:45.168-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB Interview Questions'/><title type='text'>VB Interview Questions</title><content type='html'>&lt;ol&gt;&lt;li&gt;How do you center a form? &lt;/li&gt;&lt;li&gt;Can I send keystrokes to a DOS application? &lt;/li&gt;&lt;li&gt;Convert an RGB value to a long, or a long to RGB. &lt;/li&gt;&lt;li&gt;Implement smooth scrolling for either text, graphics or controls across a form. &lt;/li&gt;&lt;li&gt;Implement some quick and easy encryption (can be something primitive). &lt;/li&gt;&lt;li&gt;4 different types of sorts: advantages and disadvantages. &lt;/li&gt;&lt;li&gt;Compute CRC32 checksum, write a quick piece of code that accepts the packet of data and returns the CRC. &lt;/li&gt;&lt;li&gt;How do you use the Mouse OFF event? &lt;/li&gt;&lt;li&gt;How do I call Windows Help files from a VB program? &lt;/li&gt;&lt;li&gt;How do I create a textbox that lets you insert tabs? &lt;/li&gt;&lt;li&gt;How do I make text box that displays asterisks when the user types in data such as password? &lt;/li&gt;&lt;li&gt;How do I create multi-column combo box? &lt;/li&gt;&lt;li&gt;How do I make a menu popup from a CommandButton? &lt;/li&gt;&lt;li&gt;How to create menus at run time in VB? &lt;/li&gt;&lt;li&gt;Write a generic error handling routine. &lt;/li&gt;&lt;li&gt;How to copy text to the Windows clipboard and from it. &lt;/li&gt;&lt;li&gt;How can I call a Command button without clicking it? &lt;/li&gt;&lt;li&gt;Write a simple app with Encrypt and Decrypt buttons and Textbox where the user can enter text for encryption and decryption. &lt;/li&gt;&lt;li&gt;3 main differences between flexgrid control and dbgrid control &lt;/li&gt;&lt;li&gt;ActiveX and Types of ActiveX Components in VB&lt;br /&gt;Advantage of ActiveX Dll over ActiveX Exe . &lt;/li&gt;&lt;li&gt;Advantages of disconnected recordsets . Benefit of wrapping database calls into MTS transactions 6. Benefits of using 23 MTS &lt;/li&gt;&lt;li&gt;Can database schema be changed with DAO, RDO or ADO? &lt;/li&gt;&lt;li&gt;Can you create a tabletype of recordset in Jet-connected ODBC database engine? &lt;/li&gt;&lt;li&gt;Constructors and destructors &lt;/li&gt;&lt;li&gt;Controls which do not have events &lt;/li&gt;&lt;li&gt;Default property of datacontrol &lt;/li&gt;&lt;li&gt;Define the scope of Public, Private, Friend procedures? &lt;/li&gt;&lt;li&gt;Describe Database Connection pooling relative to MTS &lt;/li&gt;&lt;li&gt;Describe: In of Process vs. Out of Process component. Which is faster? &lt;/li&gt;&lt;li&gt;Difference between a function and a subroutine, Dynaset and Snapshot, early and late binding, image and picture controls, linked object and embedded Object,listbox and combo box,Listindex and Tab index,modal and moduless window, Object and Class, query unload and unload in form, declaration and instantiation of an object? &lt;/li&gt;&lt;li&gt;Draw and explain Sequence Model of DAO &lt;/li&gt;&lt;li&gt;How can objects on different threads communicate with one another? &lt;/li&gt;&lt;li&gt;How can you force new objects to be created on new threads? &lt;/li&gt;&lt;li&gt;How does a DCOM component know where to instantiate itself? &lt;/li&gt;&lt;li&gt;How do I register a component? &lt;/li&gt;&lt;li&gt;How do I set a shortcut key for label? &lt;/li&gt;&lt;li&gt;What kind of components can be used as DCOM servers? &lt;/li&gt;&lt;li&gt;Name of the control used to call a Windows application &lt;/li&gt;&lt;li&gt;Name the four different cursor and locking types in ADO and describe them briefly&lt;br /&gt;Need of zorder method, no of controls in form, Property used to add a menus at runtime, Property used to count number of items in a combobox,resize a label control according to your caption. &lt;/li&gt;&lt;li&gt;Return value of callback function, The need of tabindex property &lt;/li&gt;&lt;li&gt;Thread pool and management of threads within a thread pool &lt;/li&gt;&lt;li&gt;To set the command button for ESC, Which property needs to be changed? &lt;/li&gt;&lt;li&gt;Type Library and what is it’s purpose? &lt;/li&gt;&lt;li&gt;Types of system controls, container objects, combo box &lt;/li&gt;&lt;li&gt;Under the ADO Command Object, what collection is responsible for input to stored procedures? &lt;/li&gt;&lt;li&gt;What are the ADO objects? Explain them. &lt;/li&gt;&lt;li&gt;What are the different compatibility types when we create a COM component? &lt;/li&gt;&lt;li&gt;What do ByVal and ByRef mean and which is the default? &lt;/li&gt;&lt;li&gt;What does Option Explicit refer to? 36. What does the Implements statement do? &lt;/li&gt;&lt;li&gt;What is OLE and DDE? Explain. &lt;/li&gt;&lt;li&gt;What is the difference between Msgbox Statement and MsgboxQ function? &lt;/li&gt;&lt;li&gt;What keyword is associated with raising system level events in VB? &lt;/li&gt;&lt;li&gt;What methods are called from the ObjectContext object to inform MTS that the transaction was successful or unsuccessful? &lt;/li&gt;&lt;li&gt;What types of data access have you used. &lt;/li&gt;&lt;li&gt;What was introduced to Visual Basic to allow the use of Callback Functions? &lt;/li&gt;&lt;li&gt;Which controls can not be placed in MDI? &lt;/li&gt;&lt;li&gt;Which controls have refresh method, clear method &lt;/li&gt;&lt;li&gt;Which Property is used to compress a image in image control? &lt;/li&gt;&lt;li&gt;Which property of menu cannot be set at run time? &lt;/li&gt;&lt;li&gt;Which property of textbox cannot be changed at runtime? &lt;/li&gt;&lt;li&gt;What is the maximum size of a textbox? &lt;/li&gt;&lt;li&gt;Which tool is used to configure the port range and protocols for DCOM communications? &lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src="http://digg.com/tools/diggthis.js" type="text/javascript"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-6104013911212824747?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/6104013911212824747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2006/11/vb-interview-questions.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/6104013911212824747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/6104013911212824747'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2006/11/vb-interview-questions.html' title='VB Interview Questions'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33995476.post-5775910871547341724</id><published>2006-11-05T05:23:00.000-08:00</published><updated>2008-02-27T00:56:33.669-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server Queries'/><title type='text'>SQL Server Queries</title><content type='html'>&lt;p&gt;&lt;strong&gt;Consider the following relational schemas:&lt;/strong&gt;&lt;/p&gt;&lt;strong&gt;&lt;ul&gt;&lt;li&gt;&lt;/strong&gt;employee (person_name, street, city)&lt;/li&gt;&lt;li&gt;company (company_name, city)&lt;/li&gt;&lt;li&gt;works (person_name, company_name, salary)&lt;/li&gt;&lt;li&gt;manages (person_name, manager_name)&lt;/li&gt;&lt;li&gt;Write the following queries in SQL:&lt;/li&gt;&lt;li&gt;Find the names, cities of employees who work in at least one company.&lt;/li&gt;&lt;li&gt;Display the names of all employees who work in at least one company and the city of the company in an ascending order of employee names.&lt;/li&gt;&lt;li&gt;Find the names, cities of employees who work for exactly one company.&lt;/li&gt;&lt;li&gt;Find the names of all employees who earn more than EVERY employee of Small Bank Corporation. Find the names of all employees who earn more than SOME employee of Small Bank Corporation.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br /&gt;Q1) Find the names, cities of employees who work in at least one company.&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;select e.person_name, e.city from employee e where exists (select * from works w &lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;where w.person_name = e.person_name)&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span&gt;Alternative solution:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;select distinct e.person_name, e.city from employee e, works w where &lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;w.person_name = e.person_name &lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;Q2) Display the names of all employees who work in at least one company and the city of the company in an ascending order of employee names.&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;select distinct w.person_name, c.city from works w, company c&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;where c.company_name = w.company_name order by w.person_name asc&lt;/strong&gt;&lt;/em&gt; &lt;/p&gt;&lt;p&gt;Q3) Find the names, cities of employees who work for exactly one company.&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;select e.person_name. e.city from employee e where 1 = (select count(*)&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;from works w where w.person_name = e.person_name)&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;Q4) Find the names of all employees who earn more than EVERY employee of Small Bank Corporation.&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;select w1.person_name from works w1 where w1.salary &gt; all (select w2.salary &lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;from works w2 where w2.company_name = “Small Bank Corporation”)&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span&gt;Alternative solution:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;select w1.person_name from works w1 where w1.salary &gt; select max&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;(w2.salary) from works w2 where w2.company_name = “Small Bank Corporation”)&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;em&gt;&lt;p&gt;&lt;/em&gt;Q5) Find the names of all employees who earn more than SOME employee of Small Bank Corporation.&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;select w1.person_name from works w1 where w1.salary &gt; some (select w2.salary&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;(w2.salary) from works w2 where w2.company_name = “Small Bank Corporation”)&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span&gt;Alternative solution:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;select w1.person_name from works w1where exists (select * from works w2 &lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;where w2.company_name = “Small Bank Corporation” and w1.salary &gt; w2.salary)&lt;br /&gt;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;strong&gt;&lt;span&gt;Consider the following relational schemas:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;strong&gt;&lt;span&gt;&lt;ul&gt;&lt;li&gt;&lt;/span&gt;employee (person_name, street, city)&lt;/li&gt;&lt;li&gt;company (company_name, city)&lt;/li&gt;&lt;li&gt;works (person_name, company_name, salary)&lt;/li&gt;&lt;li&gt;manages (person_name, manager_name)&lt;/li&gt;&lt;li&gt;Write the following queries in SQL:&lt;/li&gt;&lt;li&gt;Find the names of the employees who are not a manager.&lt;/li&gt;&lt;li&gt;Find all cities where employees live or where companies are located.&lt;/li&gt;&lt;li&gt;Find the name of the company located in Hong Kong that has the largest number of employees.&lt;/li&gt;&lt;li&gt;Find the names of those companies whose employees earn a higher salary, on average, than the average salary at First Bank Corporation.&lt;/li&gt;&lt;li&gt;Find the name &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Q6) Find the names of the employees who are not a&lt;br /&gt;manager.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;(select person_name from employee) except (select manager_name&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;from manages)&lt;br /&gt;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;span&gt;&lt;strong&gt;Alternative solutions&lt;/strong&gt; :&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;select person_name from employee where not exists (select * &lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;from manages where employee.person_name = &lt;/em&gt;&lt;em&gt;manages.manager_name)&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;select person_name from employee where person_name not in (select &lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;manager_name from manages)&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;Q7) Find all cities where employees live or where&lt;br /&gt;companies are located.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;(select distinct city from employee) union (select distinct city&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;from company)&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;em&gt;&lt;/em&gt;&lt;p&gt;Q8) Find the name of the company located in Hong Kong that has the largest number of employees.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;select temp.company_name from (select w.company_name, count(distinct &lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;w.person_name) as CNT from works w, company c where w.company_name = &lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;c.company_name and c.city = “Hong Kong” group by w.company_name) as &lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;temp &lt;/strong&gt;&lt;/em&gt;&lt;em&gt;&lt;strong&gt;where temp.CNT = (select max(CNT) from temp)&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/em&gt;Q9) Find the names of those companies whose employees&lt;br /&gt;earn a higher salary, on average, than the average salary at First Bank Corporation.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;select company_name from works group by company_name having avg(salary) &lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;&gt; &lt;/strong&gt;&lt;/em&gt;&lt;em&gt;&lt;strong&gt;(select avg(salary) from works where company_name = “First Bank Corporation”)&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;Q10) Find the name of the company that has the&lt;br /&gt;smallest payroll.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;select company_name from works group by company_name having sum&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;(salary) &lt;= &lt;/strong&gt;&lt;/em&gt;&lt;em&gt;&lt;strong&gt;all &lt;/strong&gt;&lt;/em&gt;&lt;em&gt;&lt;strong&gt;(select sum(salary) from works group by company_name)&lt;br /&gt;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;strong&gt;&lt;span&gt;Alternative solution:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;select temp.company_name from (select company_name, sum(salary) as &lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;payroll &lt;/strong&gt;&lt;/em&gt;&lt;em&gt;&lt;strong&gt;from works group by company_name) as temp where temp.payroll = &lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;(select min &lt;/strong&gt;&lt;/em&gt;&lt;em&gt;&lt;strong&gt;(payroll) &lt;/strong&gt;&lt;/em&gt;&lt;em&gt;&lt;strong&gt;from temp)&lt;br /&gt;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;strong&gt;&lt;span&gt;Retrieve the tuple with the largest value in an attribute&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Using the aggregate function max&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Consider the following relational schema:&lt;br /&gt;&lt;/strong&gt;account(account_id, balance)&lt;br /&gt;&lt;br /&gt;q Write an SQL query to retrieve the ids of those accounts that have the second largest balance.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;1.(a1, 100), (a2, 400), (a3, 500), (a4, 300), (a5, 200), (a6, 400), (a7,100), (a8, 100),&lt;/p&gt;&lt;p&gt;   (a9, 500), (a10, 200)&lt;br /&gt;&lt;br /&gt;Answer 1: &lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;select a1.account_id from account a1 where a1.balance &lt;&gt; (select max(balance)&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;from &lt;/strong&gt;&lt;strong&gt;account) and not exists (select * from account a2 where a1.balance &lt;&gt; &lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;a2.balance &lt;&gt; (select max(balance) from account))&lt;br /&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;Answer 2: &lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;select account_id from account where balance &lt;&gt; (select max(balance) from &lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;account) &lt;/strong&gt;&lt;strong&gt;and balance not in (select distinct a1.balance from account a1, account &lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;a2, account a3 &lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;where a1.balance &lt;&gt; a3.balance)&lt;/em&gt;&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;Answer 3:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;select account_id from account where balance = (select max(balance) from&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;account &lt;/strong&gt;&lt;/em&gt;&lt;em&gt;&lt;strong&gt;where balance &lt;&gt; (select max(balance) from account))&lt;br /&gt;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;Answer 4: &lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;select a1.account_id from account a1, account a2 where a1.balance &lt;&gt; &lt;/em&gt;&lt;/strong&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;a1.account_id having count(distinct a2.balance) = 1&lt;/em&gt;&lt;/strong&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src="http://digg.com/tools/diggthis.js" type="text/javascript"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-5775910871547341724?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/5775910871547341724/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2006/11/sql-server-quries.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/5775910871547341724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/5775910871547341724'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2006/11/sql-server-quries.html' title='SQL Server Queries'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33995476.post-3653928327665696189</id><published>2006-11-02T21:12:00.000-08:00</published><updated>2008-02-27T00:56:49.186-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Interview Questions'/><title type='text'>Oracle Interview Questions</title><content type='html'>&lt;ul&gt;&lt;li&gt;OracleExplain the difference between a hot backup and a cold backup and the benefits associated with each You have just had to restore from backup and do not have any control files. How would you go about bringing up this database?&lt;/li&gt;&lt;li&gt;How do you switch from an init.ora file to a spfile? &lt;/li&gt;&lt;li&gt;Explain the difference between a data block, an extent and a segment.&lt;/li&gt;&lt;li&gt;Give two examples of how you might determine the structure of the table DEPT. Where would you look for errors from the database engine?&lt;/li&gt;&lt;li&gt;Compare and contrast TRUNCATE and DELETE for a table. &lt;/li&gt;&lt;li&gt;Give the reasoning behind using an index.&lt;/li&gt;&lt;li&gt;Give the two types of tables involved in producing a star schema and the type of data they hold. . What type of index should you use on a fact table? . &lt;/li&gt;&lt;li&gt;Give two examples of referential integrity constraints. A table is classified as a parent table and you want to drop and re-create it. How would you do this without affecting the children tables? &lt;/li&gt;&lt;li&gt;Explain the difference between ARCHIVELOG mode and NOARCHIVELOG mode and the benefits and disadvantages to each. &lt;/li&gt;&lt;li&gt;What command would you use to create a backup control file?&lt;/li&gt;&lt;li&gt;Give the stages of instance startup to a usable state where normal users may access it. What column differentiates the V$ views to the GV$ views and how? &lt;/li&gt;&lt;li&gt;How would you go about generating an EXPLAIN plan?&lt;/li&gt;&lt;li&gt;How would you go about increasing the buffer cache hit ratio? &lt;/li&gt;&lt;li&gt;Explain an ORA-01555&lt;/li&gt;&lt;li&gt;Explain the difference between $ORACLE_HOME and $ORACLE_BASE. &lt;/li&gt;&lt;li&gt;How would you determine the time zone under which a database was operating?&lt;/li&gt;&lt;li&gt;Explain the use of setting GLOBAL_NAMES equal to TRUE. &lt;/li&gt;&lt;li&gt;What command would you use to encrypt a PL/SQL application?&lt;/li&gt;&lt;li&gt;Explain the difference between a FUNCTION, PROCEDURE and PACKAGE. &lt;/li&gt;&lt;li&gt;Explain the use of table functions.&lt;/li&gt;&lt;li&gt;Name three advisory statistics you can collect. &lt;/li&gt;&lt;li&gt;Where in the Oracle directory tree structure are audit traces placed? &lt;/li&gt;&lt;li&gt;Explain materialized views and how they are used. &lt;/li&gt;&lt;li&gt;When a user process fails, what background process cleans up after it?&lt;/li&gt;&lt;li&gt;What background process refreshes materialized views? &lt;/li&gt;&lt;li&gt;How would you determine what sessions are connected and what resources they are waiting for?&lt;/li&gt;&lt;li&gt;Describe what redo logs are. &lt;/li&gt;&lt;li&gt;How would you force a log switch?&lt;/li&gt;&lt;li&gt;Give two methods you could use to determine what DDL changes have been made.&lt;/li&gt;&lt;li&gt;What does coalescing a tablespace do?&lt;/li&gt;&lt;li&gt;What is the difference between a TEMPORARY tablespace and a PERMANENT tablespace?&lt;/li&gt;&lt;li&gt;Name a tablespace automatically created when you create a database. &lt;/li&gt;&lt;li&gt;When creating a user, what permissions must you grant to allow them to connect to the database? How do you add a data file to a tablespace? &lt;/li&gt;&lt;li&gt;How do you resize a data file? &lt;/li&gt;&lt;li&gt;What view would you use to look at the size of a data file? &lt;/li&gt;&lt;li&gt;What view would you use to determine free space in a tablespace? &lt;/li&gt;&lt;li&gt;How would you determine who has added a row to a table? &lt;/li&gt;&lt;li&gt;How can you rebuild an index? &lt;/li&gt;&lt;li&gt;Explain what partitioning is and what its benefit is. &lt;/li&gt;&lt;li&gt;You have just compiled a PL/SQL package but got errors, how would you view the errors?&lt;/li&gt;&lt;li&gt;How can you gather statistics on a table? &lt;/li&gt;&lt;li&gt;How can you enable a trace for a session? &lt;/li&gt;&lt;li&gt;What is the difference between the SQL*Loader and IMPORT utilities? &lt;/li&gt;&lt;li&gt;Name two files used for network connection to a database&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src="http://digg.com/tools/diggthis.js" type="text/javascript"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-3653928327665696189?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/3653928327665696189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2006/12/oracle-interview-questions.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/3653928327665696189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/3653928327665696189'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2006/12/oracle-interview-questions.html' title='Oracle Interview Questions'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33995476.post-1983703280561688365</id><published>2006-10-25T21:01:00.000-07:00</published><updated>2008-02-27T00:57:02.549-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C++ Interview Questions'/><title type='text'>C++ Interview Questions</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;ul&gt;&lt;li&gt;How do you decide which integer type to use? &lt;/li&gt;&lt;li&gt;What should the 64-bit integer type on new, 64-bit machines be?&lt;a id="more-69"&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;What’s the best way to declare and define global variables? &lt;/li&gt;&lt;li&gt;What does extern mean in a function declaration? &lt;/li&gt;&lt;li&gt;What’s the auto keyword good for? &lt;/li&gt;&lt;li&gt;I can’t seem to define a linked list node which contains a pointer to itself. &lt;/li&gt;&lt;li&gt;How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters? &lt;/li&gt;&lt;li&gt;How can I declare a function that returns a pointer to a function of its own type? &lt;/li&gt;&lt;li&gt;My compiler is complaining about an invalid redeclaration of a function, but I only define it once and call it once. What’s happening? &lt;/li&gt;&lt;li&gt;What can I safely assume about the initial values of variables which are not explicitly initialized? &lt;/li&gt;&lt;li&gt;Why can’t I initialize a local array with a string? &lt;/li&gt;&lt;li&gt;What is the difference between char a[] = “string”; and char *p = “string”; ? &lt;/li&gt;&lt;li&gt;How do I initialize a pointer to a function? &lt;/li&gt;&lt;li&gt;What is the difference between an ARRAY and a LIST? &lt;/li&gt;&lt;li&gt;What is faster : access the element in an ARRAY or in a LIST? &lt;/li&gt;&lt;li&gt;Define a constructor - what it is and how it might be called (2 methods). &lt;/li&gt;&lt;li&gt;Describe PRIVATE, PROTECTED and PUBLIC – the differences and give examples. &lt;/li&gt;&lt;li&gt;What is a COPY CONSTRUCTOR and when is it called (this is a frequent question !)? &lt;/li&gt;&lt;li&gt;Explain term POLIMORPHISM and give an example using eg. SHAPE object: If I have a base class SHAPE, how would I define DRAW methods for two objects CIRCLE and SQUARE. &lt;/li&gt;&lt;li&gt;What is the word you will use when defining a function in base class to allow this function to be a polimorphic function? &lt;/li&gt;&lt;li&gt;What are 2 ways of exporting a function from a DLL? &lt;/li&gt;&lt;li&gt;You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. new() and malloc() &lt;/li&gt;&lt;li&gt;What is a callback function. Explain in C and C++ and WIN API environment.&lt;br /&gt;(From WINDOWS API area): what is LPARAM and WPARAM?&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src="http://digg.com/tools/diggthis.js" type="text/javascript"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-1983703280561688365?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/1983703280561688365/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2006/11/c-interview-questions_25.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/1983703280561688365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/1983703280561688365'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2006/11/c-interview-questions_25.html' title='C++ Interview Questions'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33995476.post-8001591246627578592</id><published>2006-09-16T00:22:00.000-07:00</published><updated>2006-09-16T00:28:57.965-07:00</updated><title type='text'>Some Interview Questions</title><content type='html'>&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;1) Please tell me a little about yourself ?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Be brief and keep it related to your work life.Give an overview not a life story.Don't talk about your wonderful dog! Again, keep it about your career&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2) Why are you the best candidate for this job?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Remember the skills and strengths you posses that are related to this position.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;3) Can you tell me about your work experience?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Remember your relevant work experience, be positive. Bring up school/work experiences that are related to this position. Especially, talk results!&lt;br /&gt;You want them to think that you will bring the same benefits to their company&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;4) Can you describe your strengths and weaknesses?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Again, your strengths make you the best candidate. Be proud and positive. With your weaknesses&lt;br /&gt;(if you have any) -- be brief and don't be hard on yourself. Make sure it is something with minimal impact on your new career choice. Once you have described a weakness, explain how you will overcome it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;5) What would your supervisors and co-workers say about you?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Think about anything positive that brought the last company results. Do not criticize your last employer! Big NO NO!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;6) Where do you see yourself in five years?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Make sure it is related to your career choice. If it is not, make sure you explain how being offered this position falls into place with your goal. Make sure you are not the only one that would benefit. You must highlight the benefit for the company.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;7) What do you know about our company?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;This is where your research will come in handy. Show that you understand the company. Demonstrate that you understand your duty under this new position and how it fits into the company's mission.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;8) Why should I hire you?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Don't get defensive, don't panic, this is a legitimate question because they are investing money into your labor. Tell them how hiring you will yield results for them. Remember what kind of candidate they are looking for. Why are they looking for this candidate? What do they want? Then tell them they will get exactly what they are looking for when they hire you!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-8001591246627578592?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/8001591246627578592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2006/09/some-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/8001591246627578592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/8001591246627578592'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2006/09/some-interview-questions.html' title='Some Interview Questions'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33995476.post-5140314229834714812</id><published>2006-09-16T00:09:00.000-07:00</published><updated>2008-01-09T02:28:34.945-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Interview Tips'/><title type='text'>Interview Tips</title><content type='html'>&lt;span style="font-size:130%;color:#000000;"&gt;&lt;em&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:130%;color:#000000;"&gt;&lt;em&gt;&lt;strong&gt;Prepare Yourself and Calm Down&lt;/strong&gt;&lt;br /&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;Your big interview is coming up! I know, very scary situation. After all, if you don't make a good impression -- you won't land&lt;br /&gt;that job! There is no quick way to get rid of the anxiety of going to a job interview. The truth is, if the idea of going to an interview makes you nervous, when you get there -- you will also be nervous. However, if you prepare yourself and arm yourself with great interview skills and tools -- you will be able to calm yourself some, instead of going into a frenzy.&lt;br /&gt;Read the areas that you need help with or read the entire page; when you reach the end of this page, you will have a chance to practice.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-size:130%;"&gt;&lt;strong&gt;Be Confident&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;Applying for a job you are qualified for will give you all the confidence you need to calm down and decrease your level of nervousness. If you are applying for your dream job, then find out what skills are required, and go out there and train. When you are prepared, set up an interview, because confidence in your ability to perform a job will carry you through the interview process.&lt;br /&gt;If you are already qualified, remember that as you walk into the interview. In that case, you are there because they need a great employee who is qualified and you are that great employee who is qualified! If you are still nervous, hide it. They cannot tell you are nervous unless you show them you are.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;em&gt;&lt;strong&gt;What is The Purpose of an Interview?&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Contrary to popular belief, an interview is not to find out what is wrong with you. A hiring manager is a person performing the job of finding the best-qualified candidate she/he can. With this in mind, go to your interview realizing that not only do you need a job; but, they also need you. This is a meeting of two people in search of fulfilling each other's need. Feed their need and you will be fine.&lt;br /&gt;Before your interview, find out what it is they need. Study the company and go to their Web site. If you know anyone in the company, ask them to sum up the company's mission. Find out what the ideal candidate is and talk up those qualities during your interview.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;em&gt;&lt;strong&gt;Be Prepared&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Plan to arrive 1/2 hour earlier, and try to announce yourself at least 10 minutes before your time.&lt;br /&gt;Make sure you bring a hard copy of your resume. Also, bring a list of references and always hand them in with your resume, even when not requested.&lt;br /&gt;Perform your research on the company. You must know something about the company and the position before you walk into an interview. Would you hire someone to clean your house who does not sound like they will be careful with your possessions, but they are dedicated and seek a position that will challenge them?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;em&gt;&lt;strong&gt;Be Genuine&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Although you will practice interview questions, they are strictly for warm up! You do not want to sound like a programmed robot. The purpose for practicing is to reassure yourself that you have all the answers, and to practice thinking and responding quickly (just in case you are the type of person that says the first thing that comes to mind). Once you have practiced, you will find that you will instinctively know the answers. Let them flow naturally.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;em&gt;&lt;strong&gt;A New Job is Cause for Celebration!&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-size:130%;"&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;A new job is something to look forward to. This is a wonderful step you are taking and you want to make sure your needs are also met. Therefore, ask questions.&lt;br /&gt;It is best if you have these questions prepared before you get to the interview because you might actually forget them. If a few more come up during the interview then ask those first. It is okay to pull your questions out on a sheet of paper. This will only show the interviewer that you are prepared and you think ahead. If the interviewer does not present the opportunity, wait until the end of the interview and ask for permission to review some questions. Be brief; remember the interviewer might have more appointments lined up. Do not bring up salary, unless the interviewer brings it up. You can wait to discuss salary when they call you back in for the job or a second interview.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-5140314229834714812?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/5140314229834714812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2006/09/free-interview-tips.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/5140314229834714812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/5140314229834714812'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2006/09/free-interview-tips.html' title='Interview Tips'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-33995476.post-115805187468401328</id><published>2006-09-12T01:52:00.000-07:00</published><updated>2008-01-09T02:28:51.790-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Aptitude Questions'/><title type='text'>Aptitude Questions</title><content type='html'>&lt;a href="http://photos1.blogger.com/blogger2/6868/4149/1600/banner13.0.gif"&gt;&lt;/a&gt;&lt;div&gt;&lt;a href="http://www.inboxdollars.com/?r=shibinraj"&gt;&lt;/a&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;1.One of the following is my secret word:AIM DUE MOD OAT TIE.With the list in front of you, if I were to tell you any one of my secret word, then you would be able to tell me the number of vowels in my secret word.Which is my secret word?&lt;br /&gt;Ans.TIE&lt;br /&gt;&lt;br /&gt;2.One of Mr. Horton,his wife,their son,and Mr. Horton's mother is a doctor and another is a lawyer.&lt;br /&gt;a)If the doctor is younger than the lawyer, then the doctor and the lawyer are not blood relatives.&lt;br /&gt;b)If the doctor is a woman, then the doctor and the lawyer are blood relatives.&lt;br /&gt;c)If the lawyer is a man, then the doctor is a man.&lt;br /&gt;Whose occupation you know?&lt;br /&gt;&lt;br /&gt;Ans.Mr. Horton:he is the doctor.&lt;br /&gt;&lt;br /&gt;3.In the following figure:&lt;br /&gt;A D&lt;br /&gt;B G E&lt;br /&gt;C F&lt;br /&gt;Each of the seven digits from 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 is:&lt;br /&gt;a)Represented by a different letter in the figure above.&lt;br /&gt;b)Positioned in the figure above so that A*B*C,B*G*E, and D*E*F are equal.&lt;br /&gt;Which digit does G represent?&lt;br /&gt;&lt;br /&gt;Ans.G represents the digit 2.&lt;br /&gt;4.Mr. and Mrs. Aye and Mr. and Mrs. Bee competed in a chess tournament.Of the three games played:&lt;br /&gt;a)In only the first game werethe two players married to each other.&lt;br /&gt;b)The men won two games and the women won one game.&lt;br /&gt;c)The Ayes won more games than the Bees.&lt;br /&gt;d)Anyone who lost game did not play the subsequent game.&lt;br /&gt;Who did not lose a game?&lt;br /&gt;&lt;br /&gt;Ans.Mrs.Bee did not lose a game.&lt;br /&gt;5.Three piles of chips--pile I consists one chip, pile II consists of chips, and pile III consists of three chips--are to be used in game played by Anita and Brinda.The game requires:&lt;br /&gt;a)That each player in turn take only one chip or all chips from just one pile.&lt;br /&gt;b)That the player who has to take the last chip loses.&lt;br /&gt;c)That Anita now have her turn.&lt;br /&gt;From which pile should Anita draw in order to win?&lt;br /&gt;&lt;br /&gt;Ans.Pile II&lt;br /&gt;6.Of Abdul, Binoy, and Chandini:&lt;br /&gt;a)Each member belongs to the Tee family whose members always tell the truth or to the El family whose members always lie.&lt;br /&gt;b)Abdul says ''Either I belong or Binoy belongs to a different family from the other two."&lt;br /&gt;Whose family do you name of?&lt;br /&gt;&lt;br /&gt;Ans.Binoy's family--El.&lt;br /&gt;9.In a class composed of x girls and y boys what part of the class is composed of girls&lt;br /&gt;A.y/(x + y)&lt;br /&gt;B.x/xy&lt;br /&gt;C.x/(x + y)&lt;br /&gt;D.y/xy&lt;br /&gt;&lt;br /&gt;Ans.C&lt;br /&gt;10.What is the maximum number of half-pint bottles of cream that can be filled with a 4-gallon can of cream(2 pt.=1 qt. and 4 qt.=1 gal)&lt;br /&gt;&lt;br /&gt;A.16&lt;br /&gt;B.24&lt;br /&gt;C.30&lt;br /&gt;D.64&lt;br /&gt;&lt;br /&gt;Ans.D&lt;br /&gt;11.If the operation,^ is defined by the equation x ^ y = 2x + y,what is the value of a in 2 ^ a = a ^ 3&lt;br /&gt;&lt;br /&gt;A.0&lt;br /&gt;B.1&lt;br /&gt;C.-1&lt;br /&gt;D.4&lt;br /&gt;&lt;br /&gt;Ans.B&lt;br /&gt;12.A coffee shop blends 2 kinds of coffee,putting in 2 parts of a 33p. a gm. grade to 1 part of a 24p. a gm.If the mixture is changed to 1 part of the 33p. a gm. to 2 parts of the less expensive grade,how much will the shop save in blending 100 gms.&lt;br /&gt;&lt;br /&gt;A.Rs.90&lt;br /&gt;B.Rs.1.00&lt;br /&gt;C.Rs.3.00&lt;br /&gt;D.Rs.8.00&lt;br /&gt;&lt;br /&gt;Ans.C&lt;br /&gt;13.There are 200 questions on a 3 hr examination.Among these questions are 50 mathematics problems.It is suggested that twice as much time be spent on each maths problem as for each other question.How many minutes should be spent on mathematics problems&lt;br /&gt;&lt;br /&gt;A.36&lt;br /&gt;B.72&lt;br /&gt;C.60&lt;br /&gt;D.100&lt;br /&gt;&lt;br /&gt;Ans.B&lt;br /&gt;14.In a group of 15,7 have studied Latin, 8 have studied Greek, and 3 have not studied either.How many of these studied both Latin and Greek&lt;br /&gt;&lt;br /&gt;A.0&lt;br /&gt;B.3&lt;br /&gt;C.4&lt;br /&gt;D.5&lt;br /&gt;&lt;br /&gt;Ans.B&lt;br /&gt;15.If 13 = 13w/(1-w) ,then (2w)2 =&lt;br /&gt;&lt;br /&gt;A.1/4&lt;br /&gt;B.1/2&lt;br /&gt;C.1&lt;br /&gt;D.2&lt;br /&gt;&lt;br /&gt;Ans.C&lt;br /&gt;16. If a and b are positive integers and (a-b)/3.5 = 4/7, then&lt;br /&gt;(A) b &lt;&gt; a&lt;br /&gt;(C) b = a&lt;br /&gt;(D) b &gt;= a&lt;br /&gt;Ans. A&lt;br /&gt;17. In june a baseball team that played 60 games had won 30% of its game played. After a phenomenal winning streak this team raised its average to 50% .How many games must the team have won in a row to attain this average?&lt;br /&gt;A. 12&lt;br /&gt;B. 20&lt;br /&gt;C. 24&lt;br /&gt;D. 30&lt;br /&gt;Ans. C&lt;br /&gt;18. M men agree to purchase a gift for Rs. D. If three men drop out how much more will each have to contribute towards the purchase of the gift/&lt;br /&gt;A. D/(M-3)&lt;br /&gt;B. MD/3&lt;br /&gt;C. M/(D-3)&lt;br /&gt;D. 3D/(M2-3M)&lt;br /&gt;Ans. D&lt;br /&gt;19. A company contracts to paint 3 houses. Mr.Brown can paint a house in 6 days while Mr.Black would take 8 days and Mr.Blue 12 days. After 8 days Mr.Brown goes on vacation and Mr. Black begins to work for a period of 6 days. How many days will it take Mr.Blue to complete the contract?&lt;br /&gt;A. 7&lt;br /&gt;B. 8&lt;br /&gt;C. 11&lt;br /&gt;D. 12&lt;br /&gt;&lt;br /&gt;Ans.C&lt;br /&gt;20. 2 hours after a freight train leaves Delhi a passenger train leaves the same station travelling in the same direction at an average speed of 16 km/hr. After travelling 4 hrs the passenger train overtakes the freight train. The average speed of the freight train was?&lt;br /&gt;A. 30&lt;br /&gt;B. 40&lt;br /&gt;C.58&lt;br /&gt;D. 60&lt;br /&gt;Ans. B&lt;br /&gt;21. If 9x-3y=12 and 3x-5y=7 then 6x-2y = ?&lt;br /&gt;A.-5&lt;br /&gt;B. 4&lt;br /&gt;C. 2&lt;br /&gt;D. 8&lt;br /&gt;Ans. D&lt;br /&gt;22. There are 5 red shoes, 4 green shoes. If one draw randomly a shoe what is the probability of getting a red shoe&lt;br /&gt;&lt;br /&gt;Ans 5c1/ 9c1&lt;br /&gt;23. What is the selling price of a car? If the cost of the car is Rs.60 and a profit of 10% over selling price is earned&lt;br /&gt;&lt;br /&gt;Ans: Rs 66/-&lt;br /&gt;24. 1/3 of girls , 1/2 of boys go to canteen .What factor and total number of classmates go to canteen.&lt;br /&gt;&lt;br /&gt;Ans: Cannot be determined.&lt;br /&gt;25. The price of a product is reduced by 30% . By what percentage should it be increased to make it 100%&lt;br /&gt;&lt;br /&gt;Ans: 42.857%&lt;br /&gt;26. There is a square of side 6cm . A circle is inscribed inside the square. Find the ratio of the area of circle to square.&lt;br /&gt;Ans. 11/14&lt;br /&gt;27. There are two candles of equal lengths and of different thickness. The thicker one lasts of six hours. The thinner 2 hours less than the thicker one. Ramesh lights the two candles at the same time. When he went to bed he saw the thicker one is twice the length of the thinner one. How long ago did Ramesh light the two candles .&lt;br /&gt;&lt;br /&gt;Ans: 3 hours.&lt;br /&gt;28. If M/N = 6/5,then 3M+2N = ?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;29. If p/q = 5/4 , then 2p+q= ?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;30. If PQRST is a parallelogram what it the ratio of triangle PQS &amp; parallelogram PQRST .&lt;br /&gt;Ans: 1:2&lt;br /&gt;&lt;/div&gt;&lt;div&gt;31. The cost of an item is Rs 12.60. If the profit is 10% over selling price what is the selling price ?&lt;br /&gt;Ans: Rs 13.86/-&lt;br /&gt;32. There are 6 red shoes &amp;amp; 4 green shoes . If two of red shoes are drawn what is the probability of getting red shoes&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: 6c2/10c2&lt;br /&gt;33. To 15 lts of water containing 20% alcohol, we add 5 lts of pure water. What is % alcohol.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans : 15%&lt;br /&gt;34. A worker is paid Rs.20/- for a full days work. He works 1,1/3,2/3,1/8.3/4 days in a week. What is the total amount paid for that worker ?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans : 57.50&lt;br /&gt;35. If the value of x lies between 0 &amp; 1 which of the following is the largest?&lt;br /&gt;(a) x&lt;br /&gt;(b) x2&lt;br /&gt;(c) -x&lt;br /&gt;(d) 1/x&lt;br /&gt;&lt;br /&gt;Ans : (d)&lt;br /&gt;36. If the total distance of a journey is 120 km .If one goes by 60 kmph and comes back at 40kmph what is the average speed during the journey?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: 48kmph&lt;br /&gt;37. A school has 30% students from Maharashtra .Out of these 20% are Bombey students. Find the total percentage of Bombay?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: 6%&lt;br /&gt;38. An equilateral triangle of sides 3 inch each is given. How many equilateral triangles of side 1 inch can be formed from it?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: 9&lt;br /&gt;39. If A/B = 3/5,then 15A = ?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans : 9B&lt;br /&gt;40. Each side of a rectangle is increased by 100% .By what percentage does the area increase?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans : 300%&lt;br /&gt;41. Perimeter of the back wheel = 9 feet, front wheel = 7 feet on a certain distance, the front wheel gets 10 revolutions more than the back wheel .What is the distance?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans : 315 feet.&lt;br /&gt;42. Perimeter of front wheel =30, back wheel = 20. If front wheel revolves 240 times. How many revolutions will the back wheel take?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: 360 times&lt;br /&gt;43. 20% of a 6 litre solution and 60% of 4 litre solution are mixed. What percentage of the mixture of solution&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: 36%&lt;br /&gt;44City A's population is 68000, decreasing at a rate of 80 people per year. City B having population 42000 is increasing at a rate of 120 people per year. In how many years both the cities will have same population?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: 130 years&lt;br /&gt;45Two cars are 15 kms apart. One is turning at a speed of 50kmph and the other at 40kmph . How much time will it take for the two cars to meet?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: 3/2 hours&lt;br /&gt;46A person wants to buy 3 paise and 5 paise stamps costing exactly one rupee. If he buys which of the following number of stamps he won't able to buy 3 paise stamps.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: 9&lt;br /&gt;47There are 12 boys and 15 girls, How many different dancing groups can be formed with 2 boys and 3 girls.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;48Which of the following fractions is less than 1/3&lt;br /&gt;(a) 22/62&lt;br /&gt;(b) 15/46&lt;br /&gt;(c) 2/3&lt;br /&gt;(d) 1&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: (b)&lt;br /&gt;49There are two circles, one circle is inscribed and another circle is circumscribed over a square. What is the ratio of area of inner to outer circle?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: 1 : 2&lt;br /&gt;50Three types of tea the a,b,c costs Rs. 95/kg,100/kg and70/kg respectively.&lt;br /&gt;How many kgs of each should be blended to produce 100 kg of mixture worth Rs.90/kg,&lt;br /&gt;given that the quntities of band c are equal&lt;br /&gt;a)70,15,15&lt;br /&gt;b)50,25,25&lt;br /&gt;c)60,20,20&lt;br /&gt;d)40,30,30&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. (b)&lt;br /&gt;51. in a class, except 18 all are above 50 years.&lt;br /&gt;15 are below 50 years of age. How many people are there&lt;br /&gt;(a) 30&lt;br /&gt;(b) 33&lt;br /&gt;(c) 36&lt;br /&gt;(d) none of these.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. (d)&lt;br /&gt;52. If a boat is moving in upstream with velocity of 14 km/hr and goes downstream with a velocity of 40 km/hr, then what is the speed of the stream ?&lt;br /&gt;&lt;br /&gt;(a) 13 km/hr&lt;br /&gt;(b) 26 km/hr&lt;br /&gt;(c) 34 km/hr&lt;br /&gt;(d) none of these&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. A&lt;br /&gt;53. Find the value of ( 0.75 * 0.75 * 0.75 - 0.001 ) / ( 0.75 * 0.75 - 0.075 + 0.01)&lt;br /&gt;(a) 0.845&lt;br /&gt;(b) 1.908&lt;br /&gt;(c) 2.312&lt;br /&gt;(d) 0.001&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. A&lt;br /&gt;54. A can have a piece of work done in 8 days, B can work three times faster than the A, C can work five times faster than A. How many days will they take to do the work together ?&lt;br /&gt;&lt;br /&gt;(a) 3 days&lt;br /&gt;(b) 8/9 days&lt;br /&gt;(c) 4 days&lt;br /&gt;(d) can't say&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. B&lt;br /&gt;55. A car travels a certain distance taking 7 hrs in forward journey, during the return journey increased speed 12km/hr takes the times 5 hrs.What is the distance travelled&lt;br /&gt;&lt;br /&gt;(a) 210 kms&lt;br /&gt;(b) 30 kms&lt;br /&gt;(c) 20 kms&lt;br /&gt;(c) none of these&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. B&lt;br /&gt;56. Instead of multiplying a number by 7, the number is divided by 7. What is the percentage of error obtained ?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;57. Find (7x + 4y ) / (x-2y) if x/2y = 3/2 ?&lt;br /&gt;(a) 6&lt;br /&gt;(b) 8&lt;br /&gt;(c) 7&lt;br /&gt;(d) data insufficient&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. C&lt;br /&gt;58. A man buys 12 lts of liquid which contains 20% of the liquid and the rest is water. He then mixes it with 10 lts of another mixture with 30% of liquid.What is the % of water in the new mixture?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;59. If a man buys 1 lt of milk for Rs.12 and mixes it with 20% water and sells it for Rs.15, then what is the percentage of gain?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;60. Pipe A can fill a tank in 30 mins and Pipe B can fill it in 28 mins.If 3/4th of the tank is filled by Pipe B alone and both are opened, how much time is required by both the pipes to fill the tank completely ?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;61. If on an item a company gives 25% discount, they earn 25% profit. If they now give 10% discount then what is the profit percentage.&lt;br /&gt;(a) 40%&lt;br /&gt;(b) 55%&lt;br /&gt;(c) 35%&lt;br /&gt;(d) 30%&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. D&lt;br /&gt;62. A certain number of men can finish a piece of work in 10 days. If however there were 10 men less it will take 10 days more for the work to be finished. How many men were there originally?&lt;br /&gt;(a) 110 men&lt;br /&gt;(b) 130 men&lt;br /&gt;(c) 100 men&lt;br /&gt;(d) none of these&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. A&lt;br /&gt;63. In simple interest what sum amounts of Rs.1120/- in 4 years and Rs.1200/- in 5 years ?&lt;br /&gt;(a) Rs. 500&lt;br /&gt;(b) Rs. 600&lt;br /&gt;(c) Rs. 800&lt;br /&gt;(d) Rs. 900&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. C&lt;br /&gt;64. If a sum of money compound annually amounts of thrice itself in 3 years. In how many years will it become 9 times itself.&lt;br /&gt;(a) 6&lt;br /&gt;(b) 8&lt;br /&gt;(c) 10&lt;br /&gt;(d) 12&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans A&lt;br /&gt;65. Two trains move in the same direction at 50 kmph and 32 kmph respectively. A man in the slower train&lt;br /&gt;observes the 15 seconds elapse before the faster train completely passes by him.&lt;br /&gt;What is the length of faster train ?&lt;br /&gt;(a) 100m&lt;br /&gt;(b) 75m&lt;br /&gt;(c) 120m&lt;br /&gt;(d) 50m&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans B&lt;br /&gt;66. How many mashes are there in 1 squrare meter of wire gauge if each mesh&lt;br /&gt;is 8mm long and 5mm wide ?&lt;br /&gt;(a) 2500&lt;br /&gt;(b) 25000&lt;br /&gt;(c) 250&lt;br /&gt;(d) 250000&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans B&lt;br /&gt;67. x% of y is y% of ?&lt;br /&gt;(a) x/y&lt;br /&gt;(b) 2y&lt;br /&gt;(c) x&lt;br /&gt;(d) can't be determined&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. C&lt;br /&gt;68. The price of sugar increases by 20%, by what % should a housewife reduce the consumption of sugar so that expenditure on sugar can be same as before ?&lt;br /&gt;(a) 15%&lt;br /&gt;(b) 16.66%&lt;br /&gt;(c) 12%&lt;br /&gt;(d) 9%&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans B&lt;br /&gt;69. A man spends half of his salary on household expenses, 1/4th for rent, 1/5th for travel expenses, the man deposits the rest in a bank. If his monthly deposits in the bank amount 50, what is his monthly salary ?&lt;br /&gt;(a) Rs.500&lt;br /&gt;(b) Rs.1500&lt;br /&gt;(c) Rs.1000&lt;br /&gt;(d) Rs. 900&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans C&lt;br /&gt;70. The population of a city increases @ 4% p.a. There is an additional annual increase of 4% of the population due to the influx of job seekers, find the % increase in population after 2 years ?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;71. The ratio of the number of boys and girls in a school is 3:2 Out of these 10% the boys and &lt;/div&gt;&lt;div&gt;25% of girls are scholarship holders. % of students who are not scholarship holders.?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;72. 15 men take 21 days of 8 hrs. each to do a piece of work. How many days of 6 hrs. each would it take for 21 women if 3 women do as much work as 2 men?&lt;br /&gt;(a) 30&lt;br /&gt;(b) 20&lt;br /&gt;(c) 19&lt;br /&gt;(d) 29&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. A&lt;br /&gt;73. A cylinder is 6 cms in diameter and 6 cms in height. If spheres of the same size are made from the material obtained, what is the diameter of each sphere?&lt;br /&gt;(a) 5 cms&lt;br /&gt;(b) 2 cms&lt;br /&gt;(c) 3 cms&lt;br /&gt;(d) 4 cms&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans C&lt;br /&gt;74. A rectangular plank (2)1/2 meters wide can be placed so that it is on either side of the diagonal of a square shown below.(Figure is not available)What is the area of the plank?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans :7*(2)1/2&lt;br /&gt;75. The difference b/w the compound interest payble half yearly and the simple interest on a&lt;br /&gt;certain sum lent out at 10% p.a for 1 year is Rs 25. What is the sum?&lt;br /&gt;(a) Rs. 15000&lt;br /&gt;(b) Rs. 12000&lt;br /&gt;(c) Rs. 10000&lt;br /&gt;(d) none of these&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans C&lt;br /&gt;76. What is the smallest number by which 2880 must be divided in order to make it into a&lt;br /&gt;perfect square ?&lt;br /&gt;(a) 3&lt;br /&gt;(b) 4&lt;br /&gt;(c) 5&lt;br /&gt;(d) 6&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. C&lt;br /&gt;77. A father is 30 years older than his son however he will be only thrice as old as the son after 5 years&lt;br /&gt;what is father's present age ?&lt;br /&gt;(a) 40 yrs&lt;br /&gt;(b) 30 yrs&lt;br /&gt;(c) 50 yrs&lt;br /&gt;(d) none of these&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. A&lt;br /&gt;78. An article sold at a profit of 20% if both the cost price and selling price would be Rs.20/- the profit would be 10% more. What is the cost price of that article?&lt;br /&gt;29. If an item costs Rs.3 in '99 and Rs.203 in '00.What is the % increase in price?&lt;br /&gt;(a) 200/3 %&lt;br /&gt;(b) 200/6 %&lt;br /&gt;(c) 100%&lt;br /&gt;(d) none of these&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. A&lt;br /&gt;80. 5 men or 8 women do equal amount of work in a day. a job requires 3 men and 5 women to finish the job in 10 days how many woman are required to finish the job in 14 days.&lt;br /&gt;a) 10&lt;br /&gt;b) 7&lt;br /&gt;c) 6&lt;br /&gt;d) 12&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans 7&lt;br /&gt;81. A simple interest amount of rs 5000 for six month is rs 200. what is the anual rate of interest?&lt;br /&gt;a) 10%&lt;br /&gt;b) 6%&lt;br /&gt;c) 8%&lt;br /&gt;d) 9%&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans 8%&lt;br /&gt;82. In objective test a correct ans score 4 marks and on a wrong ans 2 marks are ---. a student score 480 marks from 150 question. how many ans were correct?&lt;br /&gt;a) 120&lt;br /&gt;b) 130&lt;br /&gt;c) 110&lt;br /&gt;d) 150&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans130.&lt;br /&gt;83. An artical sold at amount of 50% the net sale price is rs 425 .what is the list price of the artical?&lt;br /&gt;a) 500&lt;br /&gt;b) 488&lt;br /&gt;c) 480&lt;br /&gt;d) 510&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans 500&lt;br /&gt;84. A man leaves office daily at 7pm A driver with car comes from his home to pick him from office and bring back home&lt;br /&gt;One day he gets free at 5:30 and instead of waiting for driver he starts walking towards home.&lt;br /&gt;In the way he meets the car and returns home on car He reaches home 20 minutes earlier than usual.&lt;br /&gt;In how much time does the man reach home usually??&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. 1hr 20min&lt;br /&gt;85. A works thrice as much as B. If A takes 60 days less than B to do a work then find the number of days it would take to complete the work if both work together?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. 22½days&lt;br /&gt;86. How many 1's are there in the binary form of 8*1024 + 3*64 + 3&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. 4&lt;br /&gt;87. In a digital circuit which was to implement (A B) + (A)XOR(B), the designer implements (A B) (A)XOR(B)&lt;br /&gt;What is the probability of error in it ?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;88. A boy has Rs 2. He wins or loses Re 1 at a time If he wins he gets Re 1 and if he loses the game he loses Re 1.&lt;br /&gt;He can loose only 5 times. He is out of the game if he earns Rs 5.&lt;br /&gt;Find the number of ways in which this is possible?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. 16&lt;br /&gt;89. If there are 1024*1280 pixels on a screen and each pixel can have around 16 million colors&lt;br /&gt;Find the memory required for this?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. 4MB&lt;br /&gt;90. On a particular day A and B decide that they would either speak the truth or will lie.&lt;br /&gt;C asks A whether he is speaking truth or lying?&lt;br /&gt;He answers and B listens to what he said. C then asks B what A has said B says "A says that he is a liar"&lt;br /&gt;What is B speaking ?&lt;br /&gt;(a) Truth&lt;br /&gt;(b) Lie&lt;br /&gt;(c) Truth when A lies&lt;br /&gt;(d) Cannot be determined&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. (b)&lt;br /&gt;91. What is the angle between the two hands of a clock when time is 8:30&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. 75(approx)&lt;br /&gt;92. A student is ranked 13th from right and 8th from left. How many students are there in totality ?&lt;br /&gt;&lt;/div&gt;&lt;div&gt;93. A man walks east and turns right and then from there to his left and then 45degrees to&lt;br /&gt;his right.In which direction did he go&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. North west&lt;br /&gt;94. A student gets 70% in one subject, 80% in the other. To get an overall of 75% how much should get in third subject.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;95. A man shows his friend a woman sitting in a park and says that she the daughter of my grandmother's only son.&lt;br /&gt;What is the relation between the two&lt;br /&gt;&lt;br /&gt;Ans. Daughter&lt;br /&gt;96. How many squares with sides 1/2 inch long are needed to cover a rectangle that is 4 ft long and 6 ft wide&lt;br /&gt;(a) 24&lt;br /&gt;(b) 96&lt;br /&gt;(c) 3456&lt;br /&gt;(d) 13824&lt;br /&gt;(e) 14266&lt;br /&gt;&lt;/div&gt;&lt;div&gt;97. If a=2/3b , b=2/3c, and c=2/3d what part of d is b/&lt;br /&gt;(a) 8/27&lt;br /&gt;(b) 4/9&lt;br /&gt;(c) 2/3&lt;br /&gt;(d) 75%&lt;br /&gt;(e) 4/3&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. (b)&lt;br /&gt;2598Successive discounts of 20% and 15% are equal to a single discount of&lt;br /&gt;(a) 30%&lt;br /&gt;(b) 32%&lt;br /&gt;(c) 34%&lt;br /&gt;(d) 35%&lt;br /&gt;(e) 36&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. (b)&lt;br /&gt;99. The petrol tank of an automobile can hold g liters.If a liters was removed when the tank was full, what part of the full tank was removed?&lt;br /&gt;(a)g-a&lt;br /&gt;(b)g/a&lt;br /&gt;(c) a/g&lt;br /&gt;(d) (g-a)/a&lt;br /&gt;(e) (g-a)/g&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. (c)&lt;br /&gt;100. If x/y=4 and y is not '0' what % of x is 2x-y&lt;br /&gt;(a)150%&lt;br /&gt;(b)175%&lt;br /&gt;(c)200%&lt;br /&gt;(d)250%&lt;br /&gt;&lt;br /&gt;Ans. (b)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:180%;"&gt;Aptitude Questions(2)&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;1.If 2x-y=4 then 6x-3y=?&lt;br /&gt;(a)15&lt;br /&gt;(b)12&lt;br /&gt;(c)18&lt;br /&gt;(d)10&lt;br /&gt;&lt;br /&gt;Ans. (b)&lt;br /&gt;2.If x=y=2z and xyz=256 then what is the value of x?&lt;br /&gt;&lt;br /&gt;(a)12&lt;br /&gt;(b)8&lt;br /&gt;(c)16&lt;br /&gt;(d)6&lt;br /&gt;&lt;br /&gt;Ans. (b)&lt;br /&gt;3. (1/10)18 - (1/10)20 = ?&lt;br /&gt;(a) 99/1020&lt;br /&gt;(b) 99/10&lt;br /&gt;(c) 0.9&lt;br /&gt;(d) none of these&lt;br /&gt;Ans. (a)&lt;br /&gt;4.Pipe A can fill in 20 minutes and Pipe B in 30 mins and Pipe C can empty the same in 40 mins.If all of them work together, find the time taken to fill the tank&lt;br /&gt;(a) 17 1/7 mins&lt;br /&gt;(b) 20 mins&lt;br /&gt;(c) 8 mins&lt;br /&gt;(d) none of these&lt;br /&gt;Ans. (a)&lt;br /&gt;5. Thirty men take 20 days to complete a job working 9 hours a day.How many hour a day should 40 men work to complete the job?&lt;br /&gt;(a) 8 hrs&lt;br /&gt;(b) 7 1/2 hrs&lt;br /&gt;(c) 7 hrs&lt;br /&gt;(d) 9 hrs&lt;br /&gt;Ans. (b)&lt;br /&gt;6. Find the smallest number in a GP whose sum is 38 and product 1728&lt;br /&gt;(a) 12&lt;br /&gt;(b) 20&lt;br /&gt;(c) 8&lt;br /&gt;(d) none of these&lt;br /&gt;Ans. (c)&lt;br /&gt;7. A boat travels 20 kms upstream in 6 hrs and 18 kms downstream in 4 hrs.Find the speed of the boat in still water and the speed of the water current?&lt;br /&gt;(a) 1/2 kmph&lt;br /&gt;(b) 7/12 kmph&lt;br /&gt;(c) 5 kmph&lt;br /&gt;(d) none of these&lt;br /&gt;Ans. (b)&lt;br /&gt;8. A goat is tied to one corner of a square plot of side 12m by a rope 7m long.Find the area it can graze?&lt;br /&gt;(a) 38.5 sq.m&lt;br /&gt;(b) 155 sq.m&lt;br /&gt;(c) 144 sq.m&lt;br /&gt;(d) 19.25 sq.m&lt;br /&gt;Ans. (a)&lt;br /&gt;9. Mr. Shah decided to walk down the escalator of a tube station. He found that if he walks down 26 steps, he requires 30 seconds to reach the bottom. However, if he steps down 34 stairs he would only require 18 seconds to get to the bottom. If the time is measured from the moment the top step begins to descend to the time he steps off the last step at the bottom, find out the height of the stair way in steps?&lt;br /&gt;Ans.46 steps.&lt;br /&gt;10. The average age of 10 members of a committee is the same as it was 4 years ago, because an old member has been replaced by a young member. Find how much younger is the new member ?&lt;br /&gt;Ans.40 years.&lt;br /&gt;11. Three containers A, B and C have volumes a, b, and c respectively; and container A is full of water while the other two are empty. If from container A water is poured into container B which becomes 1/3 full, and into container C which becomes 1/2 full, how much water is left in container A?&lt;br /&gt;12. ABCE is an isosceles trapezoid and ACDE is a rectangle. AB = 10 and EC = 20. What is the length of AE?&lt;br /&gt;Ans. AE = 10.&lt;br /&gt;13. In the given figure, PA and PB are tangents to the circle at A and B respectively and the chord BC is parallel to tangent PA. If AC = 6 cm, and length of the tangent AP is 9 cm, then what is the length of the chord BC?&lt;br /&gt;Ans. BC = 4 cm.&lt;br /&gt;15 Three cards are drawn at random from an ordinary pack of cards. Find the probability that they will consist of a king, a queen and an ace.&lt;br /&gt;Ans. 64/2210.&lt;br /&gt;16. A number of cats got together and decided to kill between them 999919 mice. Every cat killed an equal number of mice. Each cat killed more mice than there were cats. How many cats do you think there were ?&lt;br /&gt;Ans. 991.&lt;br /&gt;17. If Log2 x - 5 Log x + 6 = 0, then what would the value / values of x be?&lt;br /&gt;Ans. x = e2 or e3.&lt;br /&gt;18. The square of a two digit number is divided by half the number. After 36 is added to the quotient, this sum is then divided by 2. The digits of the resulting number are the same as those in the original number, but they are in reverse order. The ten's place of the original number is equal to twice the difference between its digits. What is the number?&lt;br /&gt;Ans. 46&lt;br /&gt;19.Can you tender a one rupee note in such a manner that there shall be total 50 coins but none of them would be 2 paise coins.?&lt;br /&gt;Ans. 45 one paisa coins, 2 five paise coins, 2 ten paise coins, and 1 twenty-five paise coins.&lt;br /&gt;20.A monkey starts climbing up a tree 20ft. tall. Each hour, it hops 3ft. and slips back 2ft. How much time would it take the monkey to reach the top?&lt;br /&gt;Ans.18 hours.&lt;br /&gt;21. What is the missing number in this series? 8 2 14 6 11 ? 14 6 18 12&lt;br /&gt;Ans. 9&lt;br /&gt;22. A certain type of mixture is prepared by mixing brand A at Rs.9 a kg. with brand B at Rs.4 a kg. If the mixture is worth Rs.7 a kg., how many kgs. of brand A are needed to make 40kgs. of the mixture?&lt;br /&gt;Ans. Brand A needed is 24kgs.&lt;br /&gt;23. A wizard named Nepo says "I am only three times my son's age. My father is 40 years more than twice my age. Together the three of us are a mere 1240 years old." How old is Nepo?&lt;br /&gt;Ans. 360 years old.&lt;br /&gt;24. One dog tells the other that there are two dogs in front of me. The other one also shouts that he too had two behind him. How many are they?&lt;br /&gt;Ans. Three.&lt;br /&gt;25. A man ate 100 bananas in five days, each day eating 6 more than the previous day. How many bananas did he eat on the first day?&lt;br /&gt;Ans. Eight.&lt;br /&gt;26. If it takes five minutes to boil one egg, how long will it take to boil four eggs?&lt;br /&gt;Ans. Five minutes.&lt;br /&gt;27. The minute hand of a clock overtakes the hour hand at intervals of 64 minutes of correct time. How much a day does the clock gain or lose?&lt;br /&gt;Ans. 32 8/11 minutes.&lt;br /&gt;28. Solve for x and y: 1/x - 1/y = 1/3, 1/x2 + 1/y2 = 5/9.&lt;br /&gt;Ans. x = 3/2 or -3 and y = 3 or -3/2.&lt;br /&gt;29. Daal is now being sold at Rs. 20 a kg. During last month its rate was Rs. 16 per kg. By how much percent should a family reduce its consumption so as to keep the expenditure fixed?&lt;br /&gt;Ans. 20 %.&lt;br /&gt;30. Find the least value of 3x + 4y if x2y3 = 6.&lt;br /&gt;Ans. 10.&lt;br /&gt;31. Can you find out what day of the week was January 12, 1979?&lt;br /&gt;Ans. Friday.&lt;br /&gt;32. A garrison of 3300 men has provisions for 32 days, when given at a rate of 850 grams per head. At the end of 7 days a reinforcement arrives and it was found that now the provisions will last 8 days less, when given at the rate of 825 grams per head. How, many more men can it feed?&lt;br /&gt;Ans. 1700 men.&lt;br /&gt;33. From 5 different green balls, four different blue balls and three different red balls, how many combinations of balls can be chosen taking at least one green and one blue ball?&lt;br /&gt;Ans. 3720.&lt;br /&gt;34. Three pipes, A, B, &amp; C are attached to a tank. A &amp;amp; B can fill it in 20 &amp; 30 minutes respectively while C can empty it in 15 minutes. If A, B &amp;amp; C are kept open successively for 1 minute each, how soon will the tank be filled?&lt;br /&gt;Ans. 167 minutes.&lt;br /&gt;35. A person walking 5/6 of his usual rate is 40 minutes late. What is his usual time? Ans. 3 hours 20 minutes.&lt;br /&gt;&lt;br /&gt;36.For a motorist there are three ways going from City A to City C. By way of bridge the distance is 20 miles and toll is $0.75. A tunnel between the two cities is a distance of 10 miles and toll is $1.00 for the vehicle and driver and $0.10 for each passenger. A two-lane highway without toll goes east for 30 miles to city B and then 20 miles in a northwest direction to City C.&lt;br /&gt;&lt;br /&gt;1. Which is the shortest route from B to C&lt;br /&gt;(a) Directly on toll free highway to City C&lt;br /&gt;(b) The bridge&lt;br /&gt;(c) The Tunnel&lt;br /&gt;(d) The bridge or the tunnel&lt;br /&gt;(e) The bridge only if traffic is heavy on the toll free highway&lt;br /&gt;&lt;br /&gt;Ans. (a)&lt;br /&gt;2. The most economical way of going from City A to City B, in terms of toll and distance is to use the&lt;br /&gt;(a) tunnel&lt;br /&gt;(b) bridge&lt;br /&gt;(c) bridge or tunnel&lt;br /&gt;(d) toll free highway&lt;br /&gt;(e) bridge and highway&lt;br /&gt;&lt;br /&gt;Ans. (a)&lt;br /&gt;3. Jim usually drives alone from City C to City A every working day. His firm deducts a percentage of employee pay for lateness. Which factor would most influence his choice of the bridge or the tunnel ?&lt;br /&gt;(a) Whether his wife goes with him&lt;br /&gt;(b) scenic beauty on the route&lt;br /&gt;(c) Traffic conditions on the road, bridge and tunnel&lt;br /&gt;(d) saving $0.25 in tolls&lt;br /&gt;(e) price of gasoline consumed in covering additional 10 miles on the bridge&lt;br /&gt;&lt;br /&gt;Ans. (a)&lt;br /&gt;4. In choosing between the use of the bridge and the tunnel the chief factor(s) would be:&lt;br /&gt;I. Traffic and road conditions&lt;br /&gt;II. Number of passengers in the car&lt;br /&gt;III. Location of one's homes in the center or outskirts of one of the cities&lt;br /&gt;IV. Desire to save $0.25&lt;br /&gt;(a) I only&lt;br /&gt;(b) II only&lt;br /&gt;(c) II and III only&lt;br /&gt;(d) III and IV only&lt;br /&gt;(e) I and II only&lt;br /&gt;&lt;br /&gt;Ans. (a)&lt;br /&gt;37.The letters A, B, C, D, E, F and G, not necessarily in that order, stand for seven consecutive integers from 1 to 10&lt;br /&gt;D is 3 less than A&lt;br /&gt;B is the middle term&lt;br /&gt;F is as much less than B as C is greater than D&lt;br /&gt;G is greater than F&lt;br /&gt;&lt;br /&gt;1. The fifth integer is&lt;br /&gt;(a) A&lt;br /&gt;(b) C&lt;br /&gt;(c) D&lt;br /&gt;(d) E&lt;br /&gt;(e) F&lt;br /&gt;&lt;br /&gt;Ans. (a)&lt;br /&gt;2. A is as much greater than F as which integer is less than G&lt;br /&gt;(a) A&lt;br /&gt;(b) B&lt;br /&gt;(c) C&lt;br /&gt;(d) D&lt;br /&gt;(e) E&lt;br /&gt;&lt;br /&gt;Ans. (a)&lt;br /&gt;3. If A = 7, the sum of E and G is&lt;br /&gt;(a) 8&lt;br /&gt;(b) 10&lt;br /&gt;(c) 12&lt;br /&gt;(d) 14&lt;br /&gt;(e) 16&lt;br /&gt;&lt;br /&gt;Ans. (a)&lt;br /&gt;4. A - F = ?&lt;br /&gt;(a) 1&lt;br /&gt;(b) 2&lt;br /&gt;(c) 3&lt;br /&gt;(d) 4&lt;br /&gt;(e) Cannot be determined&lt;br /&gt;&lt;br /&gt;Ans. (a)&lt;br /&gt;5. An integer T is as much greater than C as C is greater than E. T can be written as A + E. What is D?&lt;br /&gt;(a) 2&lt;br /&gt;(b) 3&lt;br /&gt;(c) 4&lt;br /&gt;(d) 5&lt;br /&gt;(e) Cannot be determined&lt;br /&gt;&lt;br /&gt;Ans. (a)&lt;br /&gt;6. The greatest possible value of C is how much greater than the smallest possible value of D?&lt;br /&gt;(a) 2&lt;br /&gt;(b) 3&lt;br /&gt;(c) 4&lt;br /&gt;(d) 5&lt;br /&gt;(e) 6&lt;br /&gt;&lt;br /&gt;Ans. (a)&lt;br /&gt;38.&lt;br /&gt;1. All G's are H's&lt;br /&gt;2. All G's are J's or K's&lt;br /&gt;3. All J's and K's are G's&lt;br /&gt;4. All L's are K's&lt;br /&gt;5. All N's are M's&lt;br /&gt;6. No M's are G's&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. If no P's are K's, which of the following must be true?&lt;br /&gt;&lt;br /&gt;(a) All P's are J's&lt;br /&gt;(b) No P is a G&lt;br /&gt;(c) No P is an H&lt;br /&gt;(d) If any P is an H it is a G&lt;br /&gt;(e) If any P is a G it is a J&lt;br /&gt;&lt;br /&gt;Ans. (a)&lt;br /&gt;2. Which of the following can be logically deduced from the conditions stated?&lt;br /&gt;&lt;br /&gt;(a) No M's are H's&lt;br /&gt;(b) No M's that are not N's are H's&lt;br /&gt;(c) No H's are M's&lt;br /&gt;(d) Some M's are H's&lt;br /&gt;(e) All M's are H's&lt;br /&gt;&lt;br /&gt;Ans. (a)&lt;br /&gt;3. Which of the following is inconsistent with one or more of the conditions?&lt;br /&gt;&lt;br /&gt;(a) All H's are G's&lt;br /&gt;(b) All H's that are not G's are M's&lt;br /&gt;(c) Some H's are both M's and G's&lt;br /&gt;(d) No M's are H's&lt;br /&gt;(e) All M's are H's&lt;br /&gt;&lt;br /&gt;Ans. (a)&lt;br /&gt;4. The statement "No L's are J's" is&lt;br /&gt;I. Logically deducible from the conditions stated&lt;br /&gt;II. Consistent with but not deducible from the conditions stated&lt;br /&gt;III. Deducible from the stated conditions together with the additional statement "No J's are K's"&lt;br /&gt;&lt;br /&gt;(a) I only&lt;br /&gt;(b) II only&lt;br /&gt;(c) III only&lt;br /&gt;(d) II and III only&lt;br /&gt;(e) Neither I, II nor III&lt;br /&gt;&lt;br /&gt;Ans. (a)&lt;br /&gt;39.In country X, democratic, conservative and justice parties have fought three civil wars in twenty years. TO restore stability an agreement is reached to rotate the top offices President, Prime Minister and Army Chief among the parties so that each party controls one and only one office at all times. The three top office holders must each have two deputies, one from each of the other parties. Each deputy must choose a staff composed of equally members of his or her chiefs party and member of the third party.&lt;br /&gt;&lt;br /&gt;1. When Justice party holds one of the top offices, which of the following cannot be true&lt;br /&gt;&lt;br /&gt;(a) Some of the staff members within that office are justice party members&lt;br /&gt;(b) Some of the staff members within that office are democratic party members&lt;br /&gt;(c) Two of the deputies within the other offices are justice party members&lt;br /&gt;(d) Two of the deputies within the other offices are conservative party members&lt;br /&gt;(e) Some of the staff members within the other offices are justice party members.&lt;br /&gt;&lt;br /&gt;Ans. (a)&lt;br /&gt;2. When the democratic party holds presidency, the staff of the prime minister's deputies are composed&lt;br /&gt;I. One-fourth of democratic party members&lt;br /&gt;II. One-half of justice party members and one-fourth of conservative party members&lt;br /&gt;III. One-half of conservative party members and one-fourth of justice party members.&lt;br /&gt;&lt;br /&gt;(a) I only&lt;br /&gt;(b) I and II only&lt;br /&gt;(c) II or III but not both&lt;br /&gt;(d) I and II or I and III&lt;br /&gt;(e) None of these&lt;br /&gt;&lt;br /&gt;Ans. (a)&lt;br /&gt;3. Which of the following is allowable under the rules as stated:&lt;br /&gt;&lt;br /&gt;(a) More than half of the staff within a given office belonging to a single party&lt;br /&gt;(b) Half of the staff within a given office belonging to a single party&lt;br /&gt;(c) Any person having a member of the same party as his or her immediate superior&lt;br /&gt;(d) Half the total number of staff members in all three offices belonging to a single party&lt;br /&gt;(e) Half the staff members in a given office belonging to parties different from the party of the top office holder in that office.&lt;br /&gt;&lt;br /&gt;Ans. (a)&lt;br /&gt;4. The office of the Army Chief passes from Conservative to Justice party. Which of the following must be fired.&lt;br /&gt;&lt;br /&gt;(a) The democratic deputy and all staff members belonging to Justice party&lt;br /&gt;(b) Justice party deputy and all his or hers staff members&lt;br /&gt;(c) Justice party deputy and half of his Conservative staff members in the chief of staff office&lt;br /&gt;(d) The Conservative deputy and all of his or her staff members belonging to Conservative party&lt;br /&gt;(e) No deputies and all staff members belonging to conservative parties.&lt;br /&gt;&lt;br /&gt;Ans. (a)&lt;br /&gt;40.In recommendations to the board of trustees a tuition increase of $500 per year, the president of the university said "There were no student demonstrations over the previous increases of $300 last year and $200 the year before". If the president's statement is accurate then which of the following can be validly inferred from the information given:&lt;br /&gt;I. Most students in previous years felt that the increases were justified because of increased operating costs.&lt;br /&gt;II. Student apathy was responsible for the failure of students to protest the previous tuition increases.&lt;br /&gt;III. Students are not likely to demonstrate over new tuition increases.&lt;br /&gt;&lt;br /&gt;(a) I only&lt;br /&gt;(b) II only&lt;br /&gt;(c) I or II but not both&lt;br /&gt;(d) I, II and III&lt;br /&gt;(e) None&lt;br /&gt;&lt;br /&gt;Ans. (a)&lt;br /&gt;41. The office staff of XYZ corporation presently consists of three bookeepers--A, B, C and 5 secretaries D, E, F, G, H. The management is planning to open a new office in another city using 2 bookeepers and 3 secretaries of the present staff . To do so they plan to seperate certain individuals who don't function well together. The following guidelines were established to set up the new office&lt;br /&gt;I. Bookeepers A and C are constantly finding fault with one another and should not be sent together to the new office as a team&lt;br /&gt;II. C and E function well alone but not as a team , they should be seperated&lt;br /&gt;III. D and G have not been on speaking terms and shouldn't go together&lt;br /&gt;IV Since D and F have been competing for promotion they shouldn't be a team&lt;br /&gt;1.If A is to be moved as one of the bookeepers,which of the following cannot be a possible working unit.&lt;br /&gt;&lt;br /&gt;A.ABDEH&lt;br /&gt;B.ABDGH&lt;br /&gt;C.ABEFH&lt;br /&gt;D.ABEGH&lt;br /&gt;&lt;br /&gt;Ans.B&lt;br /&gt;2.If C and F are moved to the new office,how many combinations are possible&lt;br /&gt;A.1&lt;br /&gt;B.2&lt;br /&gt;C.3&lt;br /&gt;D.4&lt;br /&gt;&lt;br /&gt;Ans.A&lt;br /&gt;3.If C is sent to the new office,which member of the staff cannot go with C&lt;br /&gt;&lt;br /&gt;A.B&lt;br /&gt;B.D&lt;br /&gt;C.F&lt;br /&gt;D.G&lt;br /&gt;&lt;br /&gt;Ans.B&lt;br /&gt;4.Under the guidelines developed,which of the following must go to the new office&lt;br /&gt;&lt;br /&gt;A.B&lt;br /&gt;B.D&lt;br /&gt;C.E&lt;br /&gt;D.G&lt;br /&gt;&lt;br /&gt;Ans.A&lt;br /&gt;5.If D goes to the new office,which of the following is/are true&lt;br /&gt;&lt;br /&gt;I.C cannot go&lt;br /&gt;II.A cannot go&lt;br /&gt;III.H must also go&lt;br /&gt;&lt;br /&gt;A.I only&lt;br /&gt;B.II only&lt;br /&gt;C.I and II only&lt;br /&gt;D.I and III only&lt;br /&gt;&lt;br /&gt;Ans.D&lt;br /&gt;42.After months of talent searching for an administrative assistant to the president of the college the field of applicants has been narrowed down to 5--A, B, C, D, E .It was announced that the finalist would be chosen after a series of all-day group personal interviews were held.The examining committee agreed upon the following procedure&lt;br /&gt;&lt;br /&gt;I.The interviews will be held once a week&lt;br /&gt;II.3 candidates will appear at any all-day interview session&lt;br /&gt;III.Each candidate will appear at least once&lt;br /&gt;IV.If it becomes necessary to call applicants for additonal interviews, no more 1 such applicant should be asked to appear the next week&lt;br /&gt;V.Because of a detail in the written applications,it was agreed that whenever candidate B appears, A should also be present.&lt;br /&gt;VI.Because of travel difficulties it was agreed that C will appear for only 1 interview.&lt;br /&gt;1.At the first interview the following candidates appear A,B,D.Which of the follwing combinations can be called for the interview to be held next week.&lt;br /&gt;&lt;br /&gt;A.BCD&lt;br /&gt;B.CDE&lt;br /&gt;C.ABE&lt;br /&gt;D.ABC&lt;br /&gt;&lt;br /&gt;Ans.B&lt;br /&gt;2.Which of the following is a possible sequence of combinations for interviews in 2 successive weeks&lt;br /&gt;&lt;br /&gt;A.ABC;BDE&lt;br /&gt;B.ABD;ABE&lt;br /&gt;C.ADE;ABC&lt;br /&gt;D.BDE;ACD&lt;br /&gt;&lt;br /&gt;Ans.C&lt;br /&gt;3.If A ,B and D appear for the interview and D is called for additional interview the following week,which 2 candidates may be asked to appear with D?&lt;br /&gt;&lt;br /&gt;I. A&lt;br /&gt;II B&lt;br /&gt;III.C&lt;br /&gt;IV.E&lt;br /&gt;A.I and II&lt;br /&gt;B.I and III only&lt;br /&gt;C.II and III only&lt;br /&gt;D.III and IV only&lt;br /&gt;&lt;br /&gt;Ans.D&lt;br /&gt;4.Which of the following correctly state(s) the procedure followed by the search committee&lt;br /&gt;&lt;br /&gt;I.After the second interview all applicants have appeared at least once&lt;br /&gt;II.The committee sees each applicant a second time&lt;br /&gt;III.If a third session,it is possible for all applicants to appear at least twice&lt;br /&gt;&lt;br /&gt;A.I only&lt;br /&gt;B.II only&lt;br /&gt;C.III only&lt;br /&gt;D.Both I and II&lt;br /&gt;&lt;br /&gt;Ans.A&lt;br /&gt;43. A certain city is served by subway lines A,B and C and numbers 1 2 and 3&lt;br /&gt;When it snows , morning service on B is delayed&lt;br /&gt;When it rains or snows , service on A, 2 and 3 are delayed both in the morning and afternoon&lt;br /&gt;When temp. falls below 30 degrees farenheit afternoon service is cancelled in either the A line or the 3 line,&lt;br /&gt;but not both.&lt;br /&gt;When the temperature rises over 90 degrees farenheit, the afternoon service is cancelled in either the line C or the&lt;br /&gt;3 line but not both.&lt;br /&gt;When the service on the A line is delayed or cancelled, service on the C line which connects the A line, is delayed.&lt;br /&gt;When service on the 3 line is cancelled, service on the B line which connects the 3 line is delayed.&lt;br /&gt;Q1. On Jan 10th, with the temperature at 15 degree farenheit, it snows all day. On how many lines will service be&lt;br /&gt;affected, including both morning and afternoon.&lt;br /&gt;(A) 2&lt;br /&gt;(B) 3&lt;br /&gt;(C) 4&lt;br /&gt;(D) 5&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. D&lt;br /&gt;Q2. On Aug 15th with the temperature at 97 degrees farenheit it begins to rain at 1 PM. What is the minimum number&lt;br /&gt;of lines on which service will be affected?&lt;br /&gt;(A) 2&lt;br /&gt;(B) 3&lt;br /&gt;(C) 4&lt;br /&gt;(D) 5&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. C&lt;br /&gt;Q3. On which of the following occasions would service be on the greatest number of lines disrupted.&lt;br /&gt;(A) A snowy afternoon with the temperature at 45 degree farenheit&lt;br /&gt;(B) A snowy morning with the temperature at 45 degree farenheit&lt;br /&gt;(C) A rainy afternoon with the temperature at 45 degree farenheit&lt;br /&gt;(D) A rainy afternoon with the temperature at 95 degree farenheit&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. B&lt;br /&gt;44. In a certain society, there are two marriage groups, red and brown. No marriage is permitted within a group. On marriage, males become part of their wives groups; women remain in their own group. Children belong to the same group as their parents. Widowers and divorced males revert to the group of their birth. Marriage to more than one person at the same time and marriage to a direct descendant are forbidden&lt;br /&gt;Q1. A brown female could have had&lt;br /&gt;I. A grandfather born Red&lt;br /&gt;II. A grandmother born Red&lt;br /&gt;III Two grandfathers born Brown&lt;br /&gt;(A) I only&lt;br /&gt;(B) III only&lt;br /&gt;(C) I, II and III&lt;br /&gt;(D) I and II only&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. D&lt;br /&gt;Q2. A male born into the brown group may have&lt;br /&gt;(A) An uncle in either group&lt;br /&gt;(B) A brown daughter&lt;br /&gt;(C) A brown son&lt;br /&gt;(D) A son-in-law born into red group&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. A&lt;br /&gt;Q3. Which of the following is not permitted under the rules as stated.&lt;br /&gt;(A) A brown male marrying his father's sister&lt;br /&gt;(B) A red female marrying her mother's brother&lt;br /&gt;(C) A widower marrying his wife's sister&lt;br /&gt;(D) A widow marrying her divorced daughter's ex-husband&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. B&lt;br /&gt;Q4. If widowers and divorced males retained their group they had upon marrying which of the following would be permissible ( Assume that no previous marriage occurred)&lt;br /&gt;(A) A woman marrying her dead sister's husband&lt;br /&gt;(B) A woman marrying her divorced daughter's ex-husband&lt;br /&gt;(C) A widower marrying his brother's daughter&lt;br /&gt;(D) A woman marrying her mother's brother who is a widower.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. D&lt;br /&gt;Q5. I. All G's are H's&lt;br /&gt;II. All G's are J's or K's&lt;br /&gt;III All J's and K's are G's&lt;br /&gt;IV All L's are K's&lt;br /&gt;V All N's are M's&lt;br /&gt;VI No M's are G's&lt;br /&gt;&lt;/div&gt;&lt;div&gt;45. There are six steps that lead from the first to the second floor. No two people can be on the same step&lt;br /&gt;Mr. A is two steps below Mr. C&lt;br /&gt;Mr. B is a step next to Mr. D&lt;br /&gt;Only one step is vacant ( No one standing on that step )&lt;br /&gt;Denote the first step by step 1 and second step by step 2 etc.&lt;br /&gt;1. If Mr. A is on the first step, Which of the following is true?&lt;br /&gt;(a) Mr. B is on the second step&lt;br /&gt;(b) Mr. C is on the fourth step.&lt;br /&gt;(c) A person Mr. E, could be on the third step&lt;br /&gt;(d) Mr. D is on higher step than Mr. C.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: (d)&lt;br /&gt;2. If Mr. E was on the third step &amp; Mr. B was on a higher step than Mr. E which step must be vacant&lt;br /&gt;(a) step 1&lt;br /&gt;(b) step 2&lt;br /&gt;(c) step 4&lt;br /&gt;(d) step 5&lt;br /&gt;(e) step 6&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: (a)&lt;br /&gt;3. If Mr. B was on step 1, which step could A be on?&lt;br /&gt;(a) 2&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;e only&lt;br /&gt;(b) 3&amp;5 only&lt;br /&gt;(c) 3&amp;amp;4 only&lt;br /&gt;(d) 4&amp;5 only&lt;br /&gt;(e) 2&amp;amp;4 only&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: (c)&lt;br /&gt;4. If there were two steps between the step that A was standing and the step that B was standing on, and A was on a higher step than D , A must be on step&lt;br /&gt;(a) 2&lt;br /&gt;(b) 3&lt;br /&gt;(c) 4&lt;br /&gt;(d) 5&lt;br /&gt;(e) 6&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: (c)&lt;br /&gt;5. Which of the following is false&lt;br /&gt;i. B&amp;D can be both on odd-numbered steps in one configuration&lt;br /&gt;ii. In a particular configuration A and C must either both an odd numbered steps or both an even-numbered steps&lt;br /&gt;iii. A person E can be on a step next to the vacant step.&lt;br /&gt;(a) i only&lt;br /&gt;(b) ii only&lt;br /&gt;(c) iii only&lt;br /&gt;(d) both i and iii&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: (c)&lt;br /&gt;46. Six swimmers A, B, C, D, E, F compete in a race. The outcome is as follows.&lt;br /&gt;i. B does not win.&lt;br /&gt;ii. Only two swimmers separate E &amp;amp; D&lt;br /&gt;iii. A is behind D &amp; E&lt;br /&gt;iv. B is ahead of E , with one swimmer intervening&lt;br /&gt;v. F is a head of D&lt;br /&gt;1. Who stood fifth in the race ?&lt;br /&gt;(a) A&lt;br /&gt;(b) B&lt;br /&gt;(c) C&lt;br /&gt;(d) D&lt;br /&gt;(e) E&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: (e)&lt;br /&gt;2. How many swimmers seperate A and F ?&lt;br /&gt;(a) 1&lt;br /&gt;(b) 2&lt;br /&gt;(c) 3&lt;br /&gt;(d) 4&lt;br /&gt;(e) cannot be determined&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: (d)&lt;br /&gt;3. The swimmer between C &amp;amp; E is&lt;br /&gt;(a) none&lt;br /&gt;(b) F&lt;br /&gt;(c) D&lt;br /&gt;(d) B&lt;br /&gt;(e) A&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: (a)&lt;br /&gt;4. If the end of the race, swimmer D is disqualified by the Judges then swimmer B finishes in which place&lt;br /&gt;(a) 1&lt;br /&gt;(b) 2&lt;br /&gt;(c) 3&lt;br /&gt;(d) 4&lt;br /&gt;(e) 5&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: (b)&lt;br /&gt;47. Five houses lettered A,B,C,D, &amp; E are built in a row next to each other. The houses are lined up in the order A,B,C,D, &amp;amp; E. Each of the five houses has a colored chimney. The roof and chimney of each housemust be painted as follows.&lt;br /&gt;i. The roof must be painted either green,red ,or yellow.&lt;br /&gt;ii. The chimney must be painted either white, black, or red.&lt;br /&gt;iii. No house may have the same color chimney as the color of roof.&lt;br /&gt;iv. No house may use any of the same colors that the every next house uses.&lt;br /&gt;v. House E has a green roof.&lt;br /&gt;vi. House B has a red roof and a black chimney&lt;br /&gt;1. Which of the following is true ?&lt;br /&gt;(a) At least two houses have black chimney.&lt;br /&gt;(b) At least two houses have red roofs.&lt;br /&gt;(c) At least two houses have white chimneys&lt;br /&gt;(d) At least two houses have green roofs&lt;br /&gt;(e) At least two houses have yellow roofs&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: (c)&lt;br /&gt;2. Which must be false ?&lt;br /&gt;(a) House A has a yellow roof&lt;br /&gt;(b) House A &amp; C have different color chimney&lt;br /&gt;(c) House D has a black chimney&lt;br /&gt;(d) House E has a white chimney&lt;br /&gt;(e) House B&amp;amp;D have the same color roof.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: (b)&lt;br /&gt;3. If house C has a yellow roof. Which must be true.&lt;br /&gt;(a) House E has a white chimney&lt;br /&gt;(b) House E has a black chimney&lt;br /&gt;(c) House E has a red chimney&lt;br /&gt;(d) House D has a red chimney&lt;br /&gt;(e) House C has a black chimney&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: (a)&lt;br /&gt;4. Which possible combinations of roof &amp; chimney can house&lt;br /&gt;I. A red roof 7 a black chimney&lt;br /&gt;II. A yellow roof &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp; a red chimney&lt;br /&gt;III. A yellow roof &amp; a black chimney&lt;br /&gt;&lt;br /&gt;(a) I only&lt;br /&gt;(b) II only&lt;br /&gt;(c) III only&lt;br /&gt;(d) I &amp;amp; II only&lt;br /&gt;(e) I&amp;II&amp;amp;III&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: (e)&lt;br /&gt;48. Find x+2y&lt;br /&gt;(i). x+y=10&lt;br /&gt;(ii). 2x+4y=20&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: (b)&lt;br /&gt;49. Is angle BAC is a right angle&lt;br /&gt;(i) AB=2BC&lt;br /&gt;(2) BC=1.5AC&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: (e)&lt;br /&gt;50. Is x greater than y&lt;br /&gt;(i) x=2k&lt;br /&gt;(ii) k=2y&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans: (e)&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/33995476-115805187468401328?l=free-interviewtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://free-interviewtips.blogspot.com/feeds/115805187468401328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://free-interviewtips.blogspot.com/2006/09/aptitude-questions.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/115805187468401328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/33995476/posts/default/115805187468401328'/><link rel='alternate' type='text/html' href='http://free-interviewtips.blogspot.com/2006/09/aptitude-questions.html' title='Aptitude Questions'/><author><name>Shibin Raj</name><uri>http://www.blogger.com/profile/07823163582851428440</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
