*111,111,111 x 111,111,111 =12,345,678,987,654,321
*It is possible to lead a cow upstairs but not downstairs.
*Coca-Cola was originally green.
*State with the highest percentage of people who walk to work: Alaska.
*City with the most Rolls Royce's per capita: Hong Kong.
*Intelligent people have more zinc and copper in their hair.
*The world's youngest parents were 8 and 9 and in lived in China in = 1910.
*Iceland consumes more Coca-Cola per capita than any other nation.
*The youngest pope was 11 years old.
*First novel ever written on a typewriter: "Tom Sawyer."
*A duck's quack doesn't echo, and no one knows why.
*The only 15 letter word that can be spelled without repeating a letter is uncopyrightable.
*"I am." is the shortest complete sentence in the English language.
*An ostrich's eye is bigger that it's brain.
*The longest recorded flight of a chicken is thirteen seconds.
*The name Jeep came from the abbreviation used in the army for the General Purpose" vehicle, G.P.
*The first toilet ever seen on television was on "Leave It To Beaver".
*The shortest war in history was between Zanzibar and England in 1896. Zanzibar surrendered after 38 minutes.
*A polar bear's skin is black. Its fur is not white, but actually clear.
*Donald Duck comics were banned in Finland because he doesn't wear pants.
*More people are killed by donkeys annually than are killed in plane crashes.
*Stewardesses is the longest word typed with only the left hand.
*Shakespeare invented the word "assassination" and "bump."
*If you keep a Goldfish in the dark room, it will eventually turn white.
*Women blink nearly twice as much as men.
*Right handed people live, on average, nine years longer than left handed people do.
*The sentence "the quick brown fox jumps over the lazy dog" uses every letter in the English language.
*The name of all the continents end with the same letter that they start with.
*The word "lethologica" describes the state of not being able to remember the word you want. *TYPEWRITER, is the longest word that can be made using the letters on only one row of the keyboard.
*The word racecar and kayak are the same whether they are read left to right or right to left. *A snail can sleep for 3 years.
*Feb 1865 is the only month in recorded history not to have a full moon.
*The electric chair was invented by a dentist.
*Cats have over one hundred vocal sounds, dogs only have about ten.
*Our eyes are always the same size from birth, but our nose and ears never stop growing. *China has more English speakers than the United States.
*Cat's urine glows under a black light.
*Leonardo Da Vinci invented the scissors.
*In the last 4000 years, no new animals have been domesticated.
*Babies are born without knee caps. They don't appear until the child reaches 2-6 years of age. *The most common name in the world is Mohammed.
*Humans and dolphins are the only species that have sex for pleasure.
*On average, people fear spiders more than they do death.
*The strongest muscle in the body is the TONGUE.
*It's impossible to sneeze with your eyes open.
*You can't kill yourself by holding your breath.
*Americans on the average eat 18 acres of pizza every day.
*You are more likely to be killed by a champagne cork than by a poisonous spider.
*In ancient Egypt, Priests plucked EVERY hair from their bodies, including their eyebrows and eyelashes.
*A crocodile cannot stick its tongue out.
*The ant always falls over on its right side when intoxicated.
*Polar bears are left-handed.
*A cockroach will live nine days without its head, before it starves to death.
*Some lions mate over 50 times a day.
*Butterflies taste with their feet.
*Starfish haven't got brains.
*Elephants are the only animals that can't jump.
main()
{char s[]={'a','b','c','\n','c','\0'};
char *p,*str,*str1;
p=&s[3];
str=p;
str1=s;
printf("%d",++*p+++*str1-32);
}
Solution:: 76
Problem 2::
#define int char
main()
{int i=65;
printf("sizeof(i)=%d",sizeof(i));
}
Solution:: 1
Problem 3::
main()
{printf("Hello%d",printf("Mock Test?"));
}
Solution:: Mock Test?Hello10
Problem 4::
main()
{int i;
printf("%d",scanf("%d",&i)); // 10 is given as input here
}
Solution:: 1
Problem 5::
main()
{int x=20,y=35;
x=y++ + x++;
y=++y + ++x;
printf("%d %d",x,y);
}
Solution:: 57 94
Problem 6::
main()
{int x=5;
printf("%d,%d,%d\n",x,x<<2,x>>2);
}
Solution:: 5,20,1
Problem 7::
main()
{int i=0;
for(;i++;printf("%d",i));
printf("%d",i);
}
Solution:: 1
Problem 8::
main()
{int i=-1;
+i;
printf("i=%d,+i=%d\n",i,+i);
}
Solution:: i=-1,+i=-1
Problem 9::
main()
{int i=5,j=6,z; clrscr();
printf("%d",i+++j);
}
Solution:: 11
Problem 10::
#define FALSE -1
#define TRUE 1
#define NULL 0
main()
{if(NULL)
puts("NULL");
else if(FALSE)
puts("TRUE");
else
puts("FALSE");
}
Solution:: TRUE
Problem 11::
main()
{static int var=5;
printf("%d",var--);
if(var)
main();
}
Solution:: 1
Problem 12::
main()
{int i=-1,j=-1,k=0,l=2,m;
m=i++&&j++&&k++||i++;
printf("%d %d %d %d %d",i,j,k,l,m);
}
Solution:: 1 0 1 2 0
Problem 13::
main()
{char *p; clrscr();
printf("%d %d",sizeof(*p),sizeof(p));
}
Solution:: 1 2
Problem 14::
main()
{clrscr();
printf("%d",-1<<4); style="font-weight: bold;">Problem 15::
main()
{printf("\nab");
printf("\bsi");
printf("\rha");
}
Solution:: hai
Problem 16::
main()
{int i=5;
printf("%d%d%d%d%d%d",i,i++,i--,++i,--i,i);
}
Solution:: 545545
Problem 17::
main()
{int i,j,A;
for(A=-1;A<=1;A++) printf("%d\t",!!A); } Solution:: 1 0 1
APTITUDE Questions
A person was fined for exceeding the speed limit by 10mph. Another person was also fined for exceeding the speed limit by twice the same. If the second person was travelling at speed of 35mph.Find the speed limit.
ANS: 15 mph
My father is only child to his Father. My father has three sisters. All are married and have two children each. (State True or False or can’t be determined)
2. I am having six cousins
3. I have three uncles
ANS: F T T
Select the odd one out
2. a. Oracle b. Linux c. Ingress d. DB2
3. a. Java b. Lisp c. Smalltalk d. Eiffel
ANS: 1 d 2 b 3 b
How many squares are there?
Use only eight 8’s along with only ‘+’ sign to sum up exact 1000.
ANS: 888+88+8+8+8
Use only five 3’s along with mathematical operators to form 31.
ANS: 33 + 3/3 + 3
Use only sixteen 4’s with only ‘+’sign to make a total of 1000.
ANS: 444+444+44+44+4+4+4+4+4+4
Two similar trains start moving from a point at the Equator in opposite directions. Which one will wear out first and why?
ANS: The one moving against the spin of the Earth due to the centrifugal force.
A clock’s gong takes 7 seconds to strike 7. How much will it take to strike 10?
ANS: 10.5 seconds
There is a peculiar number, thrice the sum of its digits gives the number itself. Find the number.
ANS: 27
A sari & a blouse are bought for Rs.110. If the sari cost Rs.100 more than the blouse, what is the cost of the sari?
ANS: Rs.105
A pound of cotton will weigh heavier or a pound of gold?
There is a number, the second digit of which is smaller than the first by 4. The number divided by the sum of the digits will give the quotient as 7. Find the number.
ANS: 84
A fraction has the denominator greater than its numerator by 6. If you add 8 to the denominator, value of the fraction will become 1/3. Can you find the fraction?
ANS: 7/13
Find a number whose double is greater than its half by 45.
ANS: 45
The difference between two numbers is 3 & that between their squares is 51. Find the numbers.
ANS: 7 & 10