Sunday, 19 May 2013

Khwaabo Ki Awaz


Dil bhi ajib cheez hai ,
Jise jaisa samajhta hai woh waisa hota nahi.
Khwaab har pal naye bunta rehta hai,
Par har khwaab pura hota nahi.

Parakhta hai har insaan ko ek mapdand par,
Par sabka ek jaisa bhaar nahi.
Kyunki tolta hai jis traaju par, 
Uska toh hota koi mol nahi.

Har ek aadmi ahem main choor hai,
Main mera mujhse hata nahi.
Par woh yeh bhool jaata hai ki,
Iss duniya par uska raj chal sakta nahi.

Kisko kya-kya hum samjhayein,
Apne mein hi toh khot bhari.
Patjhar main patte pedo se gir jaayein,
Ismein pato ka toh koi dosh nahi.

Written by        :  Sumit Kumar
Editor-in-chief  :   Khushboo Goyal

Saturday, 18 May 2013

Important Fractions And Ways To Remember

Double denominator percentage halfed :

1)   1/2   =  50 %           1)   1/7  =  14.28 %       1)  1/11  =  09.09 %

2)   1/4   =  25 %           2)  1/14 =   07.14 %       2)   1/22  = 04.54 %

3)   1/8   =  12.25 %

4)   1/16 =  06.25 %   & so on...

Triple denominator percentage will be one third :

1)   1/3  =   33.33 %

2)   1/9  =   11.11 %   & so on...

Following a pattern :

1)        1/19            1/20                 1/21  (.25 corresponding to 5^2)
 5+.25= 5.25 %          5 %        5-.25= 4.75 %  

2)        1/24            1/25                 1/26   (.16 corresonding to 4^2)
 4+.16= 4.16 %          4 %        4-.16= 3.84 %

Others : 

1)  1/6   = 16.67 %            1)  1/12 = 8.33 %          1)  3/8  = 37.5 %

2)  1/15 = 06.67 %

Thursday, 16 May 2013

Management Point Puzzle

Q. If your company manager calls you and tell you that he want to discuss about the pay hike and give you two options: (Assumption : You are going to work for atleast next 2 years )

i) tht he will increase your salary by 19% this year and will decrease the salary by 11% next year.
ii) tht he will decrease the salary by 11% this year and will increase your salary by 19% next year.
Wht option will have greater amount which will be base for 3rd year hike?

Ans

If we closely look to the option both are same:

succesive increment and decrement  leads to 

19-11-19*11/100=19-11-2.09= 5.91%  
OR
-11+19-19*11/100=5.91%

So 5.91% increment in total for both the case.

Monday, 22 April 2013

Hide your folder

To hide folder completely or making it invisible( jadooo... :) ), 
follow two simple steps --
First :-  Make folder name invisible
  • Right click on folder that you want to be hide, choose “Rename” option.
  • Now hold down “ALT” key and type 0160 or 255 right side number keypad.
  • Now release "ALT" key and click "ENTER".
  • Now you can see that there is no folder name for our specific folder.

Second :- Make folder icon invisible.
  • Right click on your folder 

  1. >> Select Properties >> 
  2. >> Select Customize tab >> 
  3. >> and here click on Change icon.
  • You will see some icons without any kind of images, choose it and click ok.

Now your folder will be completely invisible. 
To locate the folder, try to select the invisible folder by holding mouse and drag it around folder.

Thursday, 14 March 2013

Kahaani Dosti Ki

Paheli dosti ki hai badhi mazedar,
koi banta hai bevkuf toh koi bana samajhdar.
humne ki nahi khata use kabhi suljhane ki,
kyunki paheli hoti hi hai dusro ko uljhane ki.

Sachi dosti kar ke jab ek bar main haara tha,
uske bad din aur rat ka farak hi nahi pata chalta tha.
syllabus padh padh pura kar diya thodhe hi dino mein,
ghar waale dar gaye ki Einstein toh nahi aa gaya ismein...:)

Exam main baitha poore confidence se main,
kahan aate the last aur aa gaya class me first main.
usi dost ne pucha aisa tumne paper main kya khaya tha,
humne usse kaha ki dosti ka 'Power Pack' tumne hi to dalwaaya tha... :)


Written by        :  Sumit Kumar
Editor-in-chief  :   Khushboo Goyal

Tuesday, 12 March 2013

Interesting facts about Java

1) Think for the output and analyse:

public class CheckOutput 
{
public static void main(String args[])
{
System.out.println(2+2+"="+2+2);
}
}

Ans : Output
4=22
Note:
as Java starts treating everything as a String once it has encountered a string in System out statement.

Tuesday, 22 January 2013

AMCAT Exam Info (for Graduates)

Hi

Just want to tell you something about the AMCAT Exam organized on recent date.
(We have an agreement that we can't tell about the questions, but i can tell you about the Procedure of appearing,Subjects,No. of Questions, Level of Difficulty and main topics of the questions)

Procedure:

1. Open www.myamcat.com.
2. Register your name, you must have a valid email-ID.
3. Check the availability of the exam center near your Location.
4. Enroll, select the date and slot time and pay the amount(Net banking,Credit card or Demand Draft).
5. Give the exam on the specified date and wait for the email for result.  

Exam Scenario:

First of all Subjects w.r.t to CSE (Computer Science Eng) and Graduation or B.Tech field:

         Subjects                   Questions      Level of
                                                           Difficulty
1. Quantitative Aptitude      about 25       Easy
2. English                           about 25       Medium
3. Logical Reasoning            about 35       Medium
4. AMPI (Personality based)  90 Questions  Very Easy
5. C++, Java, Unix, SQl        about 25       Medium
    (any two)           
6. Computer programming    about 25       Easy

1. Quant
mainly based on
i.  Logarithms
ii. Permutation combination
iii.Pipe problems
iv. Arithmetic


2. English
i.  Synonyms
ii. Antonyms
iii.Fill in the blanks
iv.Assumption Questions


3. Logical
i. Direction problems
ii. Reasoning
iii.Arrangements
iv.Blood Relation problems

4. AMPI
i. There is no right or wrong answers, this is just a check of your personality.You have to answer 90 questions in just 20 mins.
ii. lots of repeatition of the same questions So stick to your answer in every case.

5. Languages
i. Java
    a. Simple questions basically on Static.
    b. Programs to find output.
    c. To find errors in programs.
ii. SQL
    a. SQL queries output.
    b. Join based queries.
    
6. Computer programming
i. Algorithm based questions
ii. Questions based on output.

Thursday, 17 January 2013

JAVA : Double value in String (Comparing Values)



public class doubleinstring 
{
public static void main(String args[])
{
System.out.println("Inside main");

boolean returnvalue=comparechk(".21999" , ".22");
System.out.println("equal true else false for .21999 , .22 ::"+returnvalue);

returnvalue=comparechk(".2" , "0.2");
System.out.println("equal true else false for .2 and 0.2 ::"+returnvalue);

returnvalue=comparechk("2" , "2.0");
System.out.println("equal true else false for 2 and 2.0 ::"+returnvalue);

returnvalue=comparechk("0.44500000000000001" , ".445");
System.out.println("equal true else false for 0.44500000000000001 and .445          ::"+returnvalue);

returnvalue=comparechk("0.29499999999999998" , ".295");
System.out.println("equal true else false for 0.29499999999999998 and .295  ::"+returnvalue);

returnvalue=comparechk("234.33" , "234.329999");
System.out.println("equal true else false for 234.33 and 234.329999 ::"+returnvalue);

returnvalue=comparechk("0.0" , "0");
System.out.println("equal true else false for 0 & 0.0 ::"+returnvalue);

returnvalue=comparechk("" , "");
System.out.println("equal true else false for empty  & empty ::"+returnvalue);
}
public static boolean comparechk(String a, String b)
{
boolean result=false;

if(!a.equals("")&&!a.equals(""))
{
Double s= Double.valueOf(a);
BigDecimal bd1 = new BigDecimal(s);
bd1 = bd1.setScale(3, BigDecimal.ROUND_HALF_UP);
System.out.println("s  rounded value ::"+bd1);

Double s1= Double.valueOf(b);
BigDecimal bd = new BigDecimal(s1);
bd = bd.setScale(3, BigDecimal.ROUND_HALF_UP);
System.out.println("s1 value ::"+bd);
if(bd1.equals(bd))
{
result= true;
}
}
return result; 
}
}


Thursday, 10 January 2013

Digit sum VS Sum of digits + JAVA Code


Sum Of Digits : It is the sum of all the digits of a number(given) and we are list bothered about the result.
Eg.  Given Number   ->   5982
       Sum of digits     :    5+9+8+2 =24             Result is 24
       Note
       Here, result can be a single digit or multiple digit.

Digit Sum : It is also the sum of digits but we have to add the digits till it become a single digit number.
Eg.  Given Number->  5982
       Digit sum       :   5+9+8+2 = 24 but we have to sum the digits again as 24 is not a single digit
                                2+4=6                          Result is 6
       Note:
       Here, final result will always be as single digit number.
(Shortcut to get Digit sum)
Digit sum is the remainder we get after dividing the number by 9
eg.   5982%9  = 6    where % specifies modulus used to find remainder.    


JAVA Code for Sum of Digits

public class sumOfDigits
{
public static void main (String args[])
{
int number =5982;
int sum=0;
int variable;
while(number>0)
{
variable=number%10;
sum=sum+variable;
number=number/10;
}
System.out.println("Sum of Digits is : "+sum);
}
}  


JAVA Code for Digit Sum


public class DigitSum 
{
public static void main (String args[])
{
int number =5982;
int sum=0;
int variable;
while(number>9)
{
while(number>0)
{
variable=number%10;
sum=sum+variable;
number=number/10;
}
number=sum;
sum=0;
}
System.out.println("Sum of Digits is : "+number);
}
}             
       

Tuesday, 8 January 2013

Simple puzzles

Q1 We have trees in all 26 rows and 26 columns. And we want to put a golden flower in between any two trees So can you tell us the number of flowers needed to buy so that they can be planted.

Ans  : we have three concerns to find the number of flowers
         i.  Rows(R)
         ii. Columns(C)
         iii.Diagonal alignment(D)
         So, Number is     26*25(R)+26*25(C)+25*25(D)