Sunday, 26 April 2015

How to earn income in free time by creating Blog

You are a student or employee or housewife, you could earn income in your free time. It is my personal experience. By creating the blog using blogger.com, you could earn real income using google adsense.

Today i am going to tell you the steps. Please follow and create your own blog. Earn your part time income.

1) To create the blog we need one google account. For this we need to go to https://gmail.com create one account. 



2) Then click blogger.com. There is already predefined templates available for you. By using one of them create the blog for your interesting topic.

3) Create one adsense account with your google account. For that click on adsense.com. Create your adsense account with your google account. Wait for approval. After getting approval from google, your income will start.

4) Your income will depends on how many ad clicks you will get. The most common assumption for earning income is for 1000 viewers you will get $5 - $10 (i.e appr Rs. 300 to Rs. 600).

Saturday, 1 November 2014

Campus Interview Questions and puzzles

In this blog i have gathered few campus interview questions as per my knowledge. The listed questions were already asked in MNC companies like infosys, tcs, cognizant etc.,

 Most of the written test questions are very simple. If we don't know how to solve them, that would be a big problem for us. If you could solve 50% of questions, you can easily select in any written test. The remaining 50% depend upon your luck. For that knowledge you need to prepare these questions which was already asked in the companies. I never say that only this type of questions will ask in your written test. But, These questions would help to improve your knowledge. So, Please read the questions as possible as you can and try to solve them.


1) 1 - 2 + 3 - 4 + 5 + ........+ 97 - 98 + 99 = ?

Ans:

=> (1 + 3 + 5 + ..... + 99) - (2 + 4 + 6 + ...... +98)
=> (1 + (99 - 1)2) - (2 + (98 - 1)2)     --------------   (Formula: a + (n-1)d)
=> 197 - 196
=> 1

2) Pointing to a photograph of a boy Suresh said, "He is the son of the only son of my mother." How is Suresh related to that boy?
1) Brother             2) Uncle
3) Cousin              4) Father


Ans: 4. Father

3) A and B invest in a business in the ratio 3:2. If the 5% of the total profit goes to charity and A's share is Rs. 855. Then the total profit is
1) Rs. 1425        2) Rs. 1500
3) Rs. 1537.50  4)  Rs. 1576

Ans:
Let the total profit is Rs. 100
But 5% amount goes to charity. Then the remaining amount is Rs. 95
Investment of A and B is given in ratio = 3 : 2
So, The share of A = (3/5)*95 = 57% = 855
Total profit is 100% = 855/57 * 100 = 15 * 100
Finally the answer is Rs. 1500.

4) If CRY is Coded as MRYC. Then how will GET be coded?
Ans:
CRY - MRYC
In this M is additionally added to the word CRY and CRY is rearranged.
Here, the CRY becomes RYC
In the same way GET will become METG

5) A and B can do a work in 28 days. With the help of C, they can finish the work in 21 days. How many days only C takes to complete the total work?

Ans:
A + B's takes to complete work - 28 days
A + B's 1 day work = 1/28
A + B + C's 1 day work = 1/21 (with the help of C they take 21 days)
So, (A + B + C) - (A + B) = (1/21) - (1/28) = C's 1 day work
Then C's 1 day work = 1/84
C will take 84 days to complete the work.

6) A person going from A to B with the speed 40kmph. And returned from B to A with the speed of 60kmph. What is his average speed of his Journey?
Ans: 
Average Speed = 2xy/x+y
So, The average speed of person = 2 (40)(60)/(40+60) 
                                                       = 4800/100
                                                       = 48kmph
7) Train A leaves meerut at 5:00AM and reaches delhi at 9:00AM. And Train B leaves delhi at 7:00AM and reaches meerut at 10:30AM. In which time they would cross each other?(Hint: Distance = speed x time)
Ans: 
Lets the total distance is d.
Train A total Time from meerut to delhi - 4hrs. So the speed is d/4
Train B total Time from delhi to meerut - 3.5hrs. So the speed is d/3.5
Train A reaches half of the distance before train B starts. Because Train A started 5:00AM. At 7:00AM It would reach d/2 distance.
So, now the total distance is d/2.
Lets take time as T
T x (d/4) + T x (d/3.5) = d/2
Td((1/4) + (2/7)) = d/2
T (15/28) = 1/2
T = 14/15 = 14/15 x 60mins
T = 56mins. 
So, After 56mins Trains will Cross each other.
-> 7:00AM + 56mins
-> 7:56min
8) 3 Years ago, The average age of Harry, Naina and their child was 27years and 5 years ago, Naina and the child  average age was 20years. What is the present age of the Harry:
Ans:
3years ago, (Harry + Naina + Child)/3 = 27years
then, Harry + Naina + Child = 81 Years
Present age (Harry + Naina + Child ) = 81 + 9 (Because we need to add 3 years to each)
                                                               = 90years

In the same way, 5Years ago, (Naina + Child )/2 = 20 Years
Then, Naina + Child = 40Years 
Present age (Naina + Child ) = 40 + 10
                                                 = 50 years ( Because we need to add 5 years to each)

So, (Harry + Naina + Child ) - (Naina + Child ) = 90 - 50 
                                                             Harry Age  = 40 years

9) If ANIMAL is coded as OZNRMZ. Then how will be WOMEN coded as?
Ans:
A B C D  E F G H I  J K L M N O P Q R S T U V W X Y Z (A to Z order)
Z Y X W V U T S R Q P O N M L K J  I H G F E  D C B A (Z to A order)
Here the word ANIMAL coded as follows, 
A becomes Z
N becomes M
I becomes R
M becomes N
A becomes Z
L becomes O
Again reverse the ZMRNZO, then the code is OZNRMZ
In the same way for WOMEN,
W becomes D
O becomes L
M becomes N
E becomes V
N becomes M
Again reverse the DLNVM, the the code is MVNLD
10) Ramu was facing East. He walked 4km forward and then after turning to his right walked 6km. Again he turned to his right and walked 7km. After this he turned back. Which direction was he facing at that time?
Ans: East

    -------7km------->West. After he Turned Back(Means He is facing East)
   |
   |
   |6km
   |
East<----4km--- Ramu facing East and Started walking
                                              
10) In an examination, the pass marks are 40% . A candidate attended the exam. He got 60 marks and failed by 20marks. What would be the total marks in the examination?
Ans:
40% marks = 60(Candidate marks)  + 20 (failed by) = 80 marks
So, Total marks = 100% marks
                           = (100) * (80/40)
                           = 200 marks

How to answer for Tell me About Yourself?

In any interview, the frequently asking question is Tell me about yourself?. The interview starts with that answer only. The interviewer will decide to hire you or not with this answer only. It will make the first impression in his mind. We need to prepare carefully before attending the interview. The guidelines as follows

Steps:
----------
1) Wish him/her with smile(Sit, Look Confidently)*
2) Tell your full name*
3) your qualifications with specialization (Btech, MCA, Bsc etc) & college name*
4) Family background*
5) hobbies*
6) strength*
7) internship details if you have
8) experience details if you have
9) Certification details if you have
10) say thank you for giving that opportunity*

Monday, 13 October 2014

Java Interview Questions

Java Basics:


Java can be used to create all kinds of software applications. The Java divided into 3 modules. They are 
  1. JSE - Java Standard Edition
  2. JEE - Java Enterprise Edition
  3. JME - Java Mobile/Micro Edition
Java is the plotform independent language means once if we make application in one operating system like windows, linux or Macintosh we can run in any other operating system by using JVM(Java Virtual Machine). Java is purely Object oriented programming language.

JSE: Java Standard Edition

Can be download from http://www.oracle.com/technetwork/java/javase/downloads/index.html.

By using this We can develop desktop applications.

JEE: Java Enterprise Edition

JEE is not a software it's a specification to develop server side application i.e dynamic websites. For Developing Server side application we are using IDE(Integration Development Environment) like Netbeans, Eclipse etc. And the Servers are Apache Tomcat, Weblogic, Websphere etc.,

JME: Java Mobile/Micro Edition

JME can be used to make the Mobile applications.  For JEE and JME modules JSE module is the base module.

Sample Java Program:

class TestJava{
      String message = "Welcome To javaWorld!!";
       public static void main(){
            System.out.println(message);
        }
}

Here the JVM always search for main() method. If it find then the statements will be executed. Otherwise NoSuchMethodError: main Runtime Exception will be occured.

In the above sample program

TestJava - class Name
main() - Function name or Method name
message - variable or property of TestJava Class
public - this access specifier indicated that the main() method can be call from anywhere.
static - this modifier specifies that without creating object JVM can directly call main() method
void - main() method can't return any value to JVM