Tuesday, January 18, 2011

C APPS

Predict the output or error(s) for the following:
1. struct aaa{
struct aaa *prev;
int i;
struct aaa *next;
};
main()
{
struct aaa abc,def,ghi,jkl;
int x=100;
abc.i=0;abc.prev=&jkl;
abc.next=&def;
def.i=1;def.prev=&abc;def.next=&ghi;
ghi.i=2;ghi.prev=&def;
ghi.next=&jkl;
jkl.i=3;jkl.prev=&ghi;jkl.next=&abc;
x=abc.next->next->prev->next->i;
printf("%d",x);
}

Answer:
2

Explanation:
above all statements form a double circular linked list;
abc.next->next->prev->next->i
this one points to "ghi" node the value of at particular node is 2.

2. struct point
{
int x;
int y;
};
struct point origin,*pp;
main()
{
pp=&origin;
printf("origin is(%d%d)\n",(*pp).x,(*pp).y);
printf("origin is (%d%d)\n",pp->x,pp->y);
}

Answer:
origin is(0,0)
origin is(0,0)

Explanation:
pp is a pointer to structure. we can access the elements of the structure either with arrow mark or with indirection operator.
Note:
Since structure point is globally declared x & y are initialized as zeroes

3. main()
{
int i=_l_abc(10);
printf("%d\n",--i);
}
int _l_abc(int i)
{
return(i++);
}

Answer:
9

Explanation:
return(i++) it will first return i and then increments. i.e. 10 will be returned.

4. main()
{
char *p;
int *q;
long *r;
p=q=r=0;
p++;
q++;
r++;
printf("%p...%p...%p",p,q,r);
}

Answer:
0001...0002...0004

Explanation:
++ operator when applied to pointers increments address according to their corresponding data-types.

5. main()
{
char c=' ',x,convert(z);
getc(c);
if((c>='a') && (c<='z'))
x=convert(c);
printf("%c",x);
}
convert(z)
{
return z-32;
}

Answer:
Compiler error

Explanation:
declaration of convert and format of getc() are wrong.

6. main(int argc, char **argv)
{
printf("enter the character");
getchar();
sum(argv[1],argv[2]);
}
sum(num1,num2)
int num1,num2;
{
return num1+num2;
}

Answer:
Compiler error.

Explanation:
argv[1] & argv[2] are strings. They are passed to the function sum without converting it to integer values.

7. # include
int one_d[]={1,2,3};
main()
{
int *ptr;
ptr=one_d;
ptr+=3;
printf("%d",*ptr);
}

Answer:
garbage value

Explanation:
ptr pointer is pointing to out of the array range of one_d.

Wednesday, December 22, 2010

RESUME BUILDING TIP

OBJECTIVE
One of the most frequently heard complaints made by recruiters about entry-level resumes is that they lack a specific objective. Resumes of fresh graduates have fuzzy, general objectives or no objective at all. Mentioning a specific objective is by far the most important feature of an entry- level resume. Without goal clarity you are bound to drown in the sea of mediocrity.

The only thing worse than the absence of an objective is a vague objective. Something like "My objective is to work with a dynamic company which will fully utilise my talents�" is a complete no-no! This objective is worthless because it gives the potential employer no idea about your goals or your direction.

Your objective should be clear, well-defined and short-not more than 10-12 words.. It should be aimed towards getting a particular position in a specific industry. Thus your objective should talk about the following:
1. Position wanted
2. Functional area
3. Industry wanted
Examples of good objectives:
Example 1: "Junior management position wanted in PROGRAMMING/ engineering field in IT industry.'
Example 2: GET in position in the manufacturing field.
Example 3: Entry level programmer in a software development company.
Example 4: Marketing position in the FMCG segment of a Multinational Company.
Example 5: Multimedia software development position. Open to Relocation.
Example 6: "A position as a Production supervisor with a petro-chemical company."
SUMMARY
Summary is the second most important factor that is conspicuous by its absence in resumes of entry-level graduates. It is a good idea to include a summary of your resume after having mentioned your objective. This sums up your resume in a nutshell and gives you an opportunity to highlight your strengths. It invites the recruiter to read your detailed resume. The summary should consist of 4-5 specific points-either bulleted or in one paragraph.

Sample Summary 1:

B.TECH(IT) from IIT-Delhi, in 2000.
Course in Computers Database programmes Oracle 8I & VB6 from PENTASOFT in 2005.
Consistently good academic record.
Good analytical and communication skills.
Have worked on a curriculum project "XXX XXXXX XXXX"
Sample Summary 2:
"Masters in Computer Application with specialisation in J2EE/Web Technologies. Great operational, communication and computer skills. Good academic record throughout. Among the top three students out of a batch of 120 students. Undergone Industrial training in a top petrochemical Company.

EDUCATIONAL QUALIFICATIONS
Most fresher resume doesn't suffer from space constraint . However it is a good idea to include only those educational and professionals qualifications which are relevant. Put your qualifications in a reverse chronological order. i.e. the recent ones first followed by earlier ones. Entry level resume should also mention the names of their school and college, years in which they passed their board examinations. However, include your marks only you have shown a good academic performance.

WORK EXPERIENCE
An entry- level resume cannot compete with resumes of experienced workers in the area of work experience. But don't forget to list internships, voluntary work and summer training that you have undertaken. How you present these is very important. Make sure you clearly define your duty and responsibilities during this training.
E.g.: "Worked as a summer trainee in India's largest Oil Refinery. I was working for the system control department. Wrote quality reports as well as ISO features for the company." Any projects done for your school or your college should also be mentioned.


DESIGN
Follow a simple design, which gives maximum information in the minimum number of pages. Use an easy to read and commonly used font like 'Times New Roman' or 'Verdana.' Limit your font size to 10-11. Do not underline heavily.

WORD USAGE
Simple language, lucid expression with good grammar is the thumb rule. Watch your tenses carefully. Use short and simple sentences. And never-ever make the mistake of using long words just to impress the recruiter. Flowery words are for speeches, keep them away from your resume.

OUCH! THE TRUTH HURTS
There are many things we would rather not write in our resumes. And while writing a resume the strong temptation to stretch the truth (or simply lie through our teeth) can be quite overpowering. But just stomp on the temptation. Most companies opt for a reference check during recruitment. Your resume is considered a legal document and fudging up small details may cause you great embarrassment in your career.
All right! so you've made yor resume. But this is not the time to sit back and relax. There are some important post-resume do's left.

CHECK, AND RE-CHECK!

The most important post resume step: Read and re-read your resume for any mistakes. Check the facts, the grammar, the spellings. After you have checked it, get you parents, friends, teachers to check it for you. One small mistake may cost you your job.

Friday, December 17, 2010

APTITUDE TEST(INFOSYS)

Analytical reasoning

1. A family I know has several children. Each boy in this family has as many sisters as brothers but each girl has twice as many brothers as sisters. How many brothers and sisters are there?
Ans: 4 boys and 3 girls.

2. In a soap company a soap is manufactured with 11 parts. For making one soap you will get 1 part as scrap. At the end of the day u have 251 such scraps. From that how many soaps can be manufactured?

Ans: 25.

3. There is a 5digit no. 3 pairs of sum is eleven each. Last digit is 3 times the first one. 3 rd digit is 3 less than the second.4 th digit is 4 more than the second one. Find the digit.
Ans: 25296.

4. Every day a cyclist meets a train at a particular crossing. The road is straight before the crossing and both are traveling in the same direction. The cyclist travels with a speed of 10 Kmph. One day the cyclist comes late by 25 min. and meets the train 5km before the crossing. What is the speed of the train?
Ans: 60 kmph


5. Two twins have certain peculiar characteristics. One of them always lies on Monday, Wednesday, and Friday. The other always lies on Tuesdays, Thursdays and Saturdays. On the other days they tell the truth. You are given a conversation.

Person A-- today is Sunday my name is Anil
Person B -- today is Tuesday, my name is Bill
what day is today?

Ans: Today is Tuesday

Directions 6:10 in each of the questions given below which one of the five answer figures on the right should come after the problem figures on the left, if the sequence were continued?



Answers 6-10

6) E 7) C 8) B 9) E 10) D

Directions 11-15: Each problem consists of a problem followed by two statements. Decide whether the data in the statements are sufficient to answer the question. Select your answer according to whether:

(A) Statement 1 alone is sufficient, but statement 2 alone is not sufficient to answer the question

(B) Statement 2 alone is sufficient, but statement 1 alone is not sufficient to answer the question

(C) Both statements taken together are sufficient to answer the question, but neither statement alone is sufficient

(D) Each statement alone is sufficient

(E) Statements 1 and 2 together are not sufficient, and additional data is needed to answer the question

11. If x and y are both positive integers, how much greater is x than y?

x + y = 20
x = y²
A.
B.
C.
D.
E.
Ans: C

12. Fifty percent of the articles in a certain magazine are written by staff members. Sixty percent of the articles are on current affairs. If 75 percent of the articles on current affairs are written by staff members with more than 5 years experience of journalism, how many of the articles on current affairs are written by journalists with more than 5 years experience?

20 articles are written by staff members.
Of the articles on topics other than current affairs, 50 percent are by staff members with less than 5 years experience.
A.
B.
C.
D.
E.
Ans: A

13. Is xy > 0?

x/y < 0
x + y < 0
A.
B.
C.
D.
E.
Ans: A

14 One number, n, is selected at random from a set of 10 integers. What is the probability that ½ n + 13 = 0?

The largest integer in the set is 13.
The arithmetic mean of the set is zero.
A.
B.
C.
D.
E.
Ans: E

15. Is w a whole number?

3w is an odd number.
2w is an even number.
A.
B.
C.
D.
E.
Ans: B

Thursday, December 2, 2010

PAPER PRESENTATION

We are glad to inform you that Honeypot IT Consulting Private Limited is organizing National Level Paper and Project Presentation Contest, “TECHSTARS 2010” through beTECHS.COM which is a Social and Career networking portal which also offers an integrated set of services to Career Aspirants, Students, Graduates, Colleges and Companies. This year we are including Open Category, in which anybody can participate. “TECHSTARS-2010” is India’s biggest national level Techno Management Paper and Project Presentation Contest. , Win upto Rs.6, 00,000 Schlorships Dates for online submission: Open from November 11th 2010 to Jan31st 2011. Announcement of finalists: 27th Feb’2011 Final Seminar Presentations: 27th March’2011 The final event will be in Hyderabad, in which the contestants will give their presentations. For Topics & Submission Procedure: Please visit beTECHS.COM Paper Presentation: Initially the participants need to submit their Papers online in betechs.com. We finalize the top papers and will call for final seminar in Hyderabad. Project Presentation: The participants should send DVD/CD with full project, to the organizers. Open Category: Submission in beTECHS.COM Eligibility: For paper and project presentation: BE / B TECH /MCA / MBA studentsOpen Category: Open for all (students, professionals, anybody) Registration Fee: There is NO registration fee. In this regard we are associated withJNT University, KakinadaJawahar knowledge center (JKC), Institute of Electronic Governance (IEG), Govt. of Andhra Pradesh.Reliance Communications,Anurag Group of Institutions, Land IN Global Education Consultants.For all the details please visit: www.betechs.com/Techstars2010/

Thursday, July 22, 2010

Cinnamon and Honey

Honey is the only food on the planet that will not spoil or rot. It will do what some call turning to sugar. In reality honey is always honey... However, when left in a cool dark place for a long time it will do what I rather call "crystallizing". When this happens I loosen the lid, boil some water, and sit the honey container in the hot water, turn off the heat and let it liquefy. It is then as good as it ever was. Never boil honey or put it in a microwave. To do so will kill the enzymes in the honey.

Cinnamon and Honey
Bet the drug companies won't like this one getting around. Facts on Honey and Cinnamon: It is found that a mixture of honey and Cinnamon cures most diseases. Honey is produced in most of the countries of the world. Scientists of today also accept honey as a 'Ram Ban' (very effective) medicine for all kinds of diseases. Honey can be used without any side effects for any kind of diseases..

Today's science says that even though honey is sweet, if taken in the right dosage as a medicine, it does not harm diabetic patients. Weekly World News, a magazine in Canada, in its issue dated 17 January,1995 has given the following list of diseases that can be cured by honey and cinnamon as researched by western scientists:
HEART DISEASES:
Make a paste of honey and cinnamon powder, apply on bread, instead of jelly and jam, and eat it regularly for breakfast. It reduces the cholesterol in the arteries and saves the patient from heart attack. Also, those who have already had an attack, if they do this process daily, they are kept miles away from the next attack. Regular use of the above process relieves loss of breath and strengthens the heart beat. In America and Canada, various nursing homes have treated patients successfully and have found that as you age, the arteries and veinslose their flexibility and get clogged; honey and cinnamon revitalize thearteries and veins..
ARTHRITIS:
Arthritis patients may take daily, morning and night, one cup of hot water with two spoons of honey and one small teaspoon of cinnamon powder. If taken regularly even chronic arthritis can be cured. In a recent research conducted at the Copenhagen University, it was found that when the doctors treated their patients with a mixture of one tablespoon Honey and half teaspoon Cinnamon powder before breakfast, they found that within a week, out of the 200 people so treated, practically 73 patients were totally relieved of pain, and within a month, mostly all the patients who could not walk or move around because of arthritis started walking without pain.

BLADDER INFECTIONS:
Take two tablespoons of cinnamon powder and one teaspoon of honey in a glass of lukewarm water and drink it. It destroys the germs in the bladder.
CHOLESTEROL:
Two tablespoons of honey and three teaspoons of Cinnamon Powder mixed in 16 ounces of tea water, given to a cholesterol patient, was found to reduce the level of cholesterol in the blood by 10 percent within two hours. As mentioned for arthritic patients, if taken three times a day, any chronic cholesterol is cured. According to information received in the said Journal, pure honey taken with food daily relieves complaints of cholesterol.
COLDS:
Those suffering from common or severe colds should take one tablespoon lukewarm honey with 1/4 spoon cinnamon powder daily for three days. This process will cure most chronic cough, cold, and clear the sinuses.
UPSET STOMACH:
Honey taken with cinnamon powder cures stomach ache and also clears stomach ulcers from the root.
GAS:
According to the studies done in India and Japan, it is revealed that if Honey is taken with cinnamon powder the stomach is relieved of gas.

IMMUNE SYSTEM:
Daily use of honey and cinnamon powder strengthens the immune system and protects the body from bacteria and viral attacks. Scientists have found that honey has various vitamins and iron in large amounts. Constant use of Honey strengthens the white blood corpuscles to fight bacterial and viral diseases.
INDIGESTION:
Cinnamon powder sprinkled on two tablespoons of honey taken before food relieves acidity and digests the heaviest of meals.
INFLUENZA:
A scientist in Spain has proved that honey contains a natural 'Ingredient' which kills the influenza germs and saves the patient from flu..
LONGEVITY:
Tea made with honey and cinnamon powder, when taken regularly, arrests the ravages of old age. Take four spoons of honey, one spoon of cinnamon powder, and three cups of water and boil to make like tea. Drink 1/4 cup, three to four times a day. It keeps the skin fresh and soft and arrests old age. Life spans also increase and even a 100 year old, starts performing the chores of a 20-year-old.
PIMPLES:
Three tablespoons of honey and one teaspoon of cinnamon powder paste. Apply this paste on the pimples before sleeping and wash it next morning with warm water. If done daily for two weeks, it removes pimples from the root.
SKIN INFECTIONS:
Applying honey and cinnamon powder in equal parts on the affected parts cures eczema, ringworm and all types of skin infections.
WEIGHT LOSS:
Daily in the morning one half hour before breakfast on an empty stomach, and at night before sleeping, drink honey and cinnamon powder boiled in one cup of water. If taken regularly, it reduces the weight of even the most obese person. Also, drinking this mixture regularly does not allow the fat to accumulate in the body even though the person may eat a high calorie diet.
CANCER:
Recent research in Japan and Australia has revealed that advanced cancer of the stomach and bones have been cured successfully. Patients suffering from these kinds of cancer should daily take one tablespoon of honey with one teaspoon of cinnamon powder for one month three times a day.
FATIGUE:
Recent studies have shown that the sugar content of honey is more helpful rather than being detrimental to the strength of the body.. Senior citizens, who take honey and cinnamon powder in equal parts, are more alert and flexible. Dr. Milton, who has done research, says that a half tablespoon of honey taken in a glass of water and sprinkled with cinnamon powder, taken daily after brushing and in the afternoon at about 3:00 P.M. when the vitality of the body starts to decrease, increases the vitality of the body within a week.
BAD BREATH:
People of South America, first thing in the morning, gargle with one teaspoon of honey and cinnamon powder mixed in hot water, so their breath stays fresh throughout the day.
HEARING LOSS:
Daily morning and night honey and cinnamon powder, taken in equal parts restores hearing. Remember when we were kids? We had toast with real butter and cinnamon sprinkled on it!

Monday, June 7, 2010

Interesting Article::::::::

Modern Microprocessors contain as many as 10 million transisters.
At the beggining of 1995 there were 24 million users on the Internet, of those 17 million were based in America. The Internet has doubled in size each year since it was invented in 1988.
The fastest computer in 1993, the CM-5, could perform 131 billion operations per second. With a pocket calculator this number of operations would take 41 000 years.
IBM employs 220 000 people.
Microsoft employs 16 140 people.
Computer performance increased by about a factor of a million between 1950 and 1990.
Another name for a Microsoft Windows tutorial is 'Crash Course'!
Bill Gates' house was designed using a Macintosh computer.
80% of all pictures on the internet are of naked women
By the year 2012 there will be approximately 17 billion devices connected to the Internet.
Domain names are being registered at a rate of more than one million names every month.
E-mail has been around longer than the World Wide Web.
For every 'normal' webpage, there are five porn pages.
In the 1980s, an IBM computer wasn't considered 100 percent compatible unless it could run Microsoft Flight SimulatorMySpace reports
over 110 million registered users. Were it a country, it would be the tenth largest, just behind Mexico.
One of every 8 married couples in the US last year met online.
The average 21 year old has spent 5,000 hours playing video games, has exchanged 250,000 e-mails, instant and text messages and has spent 10,000 hours on the mobile phone.

The average computer user blinks 7 times a minute, less than half the normal rate of 20.
The first banner advertising was used in 1994.
The first computer mouse was invented by Doug Engelbart in around 1964 and was made of wood.
The first domain name ever registered was Symbolics.com.

Thursday, April 22, 2010

EARTH DAY

Earth Day is the largest, most celebrated environmental event worldwide. On Earth Day, we remember to appreciate nature and learn ways to protect our environment. UN (International organization) celebrates an Earth Day each year on the March 20, a tradition which was founded by peace activist John McConnell in 1969.'
The idea of Earth Day evolved over a period of seven years starting in 1962. In 1962 a marine biologist named Rachel Carson published Silent Spring. The title referred to a future without birds and described in plain language devastating long-term effects of highly toxic pesticides and other chemical agents then commonly used in American agriculture, industry and day-to-day life.
In 1963, former Senator Gaylord Nelson began to worry about our planet. Senator Nelson knew that our world was getting dirty and that many of our plants and animals were dying. He wondered why more people weren't trying to solve these problems. He talked to other lawmakers and to the President. They decided that the President would go around the country and tell people about these concerns.
Earth Day ecology flag.
According to Flags of the World, the Ecology Flag was created by cartoonist Ron Cobb, published on November 7, 1969, in the Los Angeles Free Press, then placed in the public domain. The symbol is a combination of the letters "E" and "O" taken from the words "Environment" and "Organism," respectively. The flag is patterned after the United States' flag, with thirteen alternating-green-and-whites stripes. Its canton is green with a yellow theta. Later flags used either a theta, because of its historic use as a warning symbol[47] Petrus de Dacia in a document from 1291 relates the idea that theta was used to brand criminals as empty ciphers, and the branding rod was affixed to the crossbar spanning the circle,[48] or the peace symbol. Theta would later become associated with Earth Day.
Earth Day Activities

Recycling is when an object can be shredded, melted or otherwise processed and then turned into new raw material -- for instance, aluminum cans can be melted down to make more cans, glass can make more glass, cardboard and paper make more cardboard and paper, plastic bags and containers can be turned into other plastic products. This takes some energy (very little for aluminum), but it is a good choice.
Save energy
Turn off appliances and lights when you leave the room.
Use the microwave to cook small meals. (It uses less power than an oven.)
Purchase "Green Power" for your home's electricity. (Contact your power supplier to see where and if it is available.)
Have leaky air conditioning and refrigeration systems repaired.
Use a programmable thermostat to save on heating and cooling costs when you're not home.
Insulate your home, water heater and pipes.
Keep in mind that every trip adds to air pollution. Learn more at It All Adds Up to Cleaner Air.
Replace incandescent light bulbs with ENERGY STAR qualified Compact Fluorescent Light bulbs (CFL). If every household on the Earth replaced one light bulb with a CFL, it would prevent enough pollution to equal removing one million cars from the road.
Use less water
Don't let the water run while shaving or brushing teeth.
Take short showers instead of tub baths.
Keep drinking water in the refrigerator instead of letting the faucet run until the water is cool.
Scrape, rather than rinse, dishes before loading into the dishwasher; wash only full loads.
Wash only full loads of laundry or use the appropriate water level or load size selection on the washing machine.
Buy high-efficient plumbing fixtures & appliances.
Repair all leaks (a leaky toilet can waste 200 gallons a day).
Water the lawn or garden during the coolest part of the day (early morning is best).
Water plants differently according to what they need. Check with your local extension service or nurseries for advice.
Set sprinklers to water the lawn or garden only – not the street or sidewalk.
Use soaker hoses or trickle irrigation systems for trees and shrubs.
Keep your yard healthy - dethatch, use mulch, etc.
Sweep outside instead of using a hose.
Learn how to plant trees, build a pond, compost, and more from the Department of Agriculture's Natural Resources Conservation Service

Reusing is when you find a use for an existing item - like decorating a bag and using it as a gift bag instead of buying wrapping paper; putting leftovers into a clean container from some other food; turning a used box into storage; decorating a can to hold pencils; saving packing peanuts and boxes and using them the next time you need to ship something or give a gift.

It is important to 'reuse' items wisely -- reusing packing peanuts to pack an item is by far the best way to use them. Recycling them, if it is available, would be the next best thing. Turning them into an art project would be the least effective, and eventually they will end up in the landfill. Now many of us love art projects, and would be using materials to make crafts anyway, and so using an item that would otherwise be discarded may still be a sensible choice, it depends on the project.

Giving things in good condition that you no longer need to charity is another good way to reuse things like outgrown clothing or toys. Reusing is often the best way to save resources. This is something to consider year-round, not just around the winter holidays.

Plant a tree: volunteer to work for your city or send an Earth Day