Tuesday, 28 August 2012

Frequently Asked Questions in Technical Round at MNCs like TCS, WIPRO, INFOSYS,..etc – 15

Predict the output or error(s) for the following:


1)

main()

{

int i=_l_abc(10);


printf("%d\n",--i);


}

int _l_abc(int i)

{

 return(i++);


}

Answer:

9


Explanation:

Tuesday, 14 August 2012

Thursday, 10 May 2012

APPSC Groups Study material(Indian History)

INDUS VALLEY CIVILIZATION



  •      It is also known as Harappan Civilization

  •      It was discovered by Sir.Daya Ram Sahni in 1921.

  •      IVC extended in an area of 1.3 million square kms from,




  • Ÿ  Sutkagendar (Baluchistan) – West

  • Ÿ  Alamgirpur (U.P.) – East

  • Ÿ  Manda (Jammu) – North

  • Ÿ  Diamabad (Maharashtra) – South

  • Ÿ  (Mnemonic – SAMAD)




  •      The Indus Valley Civilization had its beginnings in Chalcolithic Age and had its maturity phase in Bronze Age.

  •      When Indus Valley Civilization was discovered in 1921, Sir. John Marshall was the head of Archeological Survey of India.


Features of IVC

Tuesday, 8 May 2012

APPSC Groups Study material(Indian History)

THE STONE AGE – EARLY MAN


The evolution of earth shows 4 stages. The fourth stage is called Quaternary which is divided into Pleistocene (most recent) and Holocene (present).

The History of Earth is divided into 3 Eras,


  1. Palaeozoic Era

  2. Mesozoic Era

  3. Cenozoic Era



The period before the Palaeozoic Era is called PRE-CAMBRIAN TIME.

Various Eras and Periods


1)      Pre-Cambrian Time

Monday, 12 March 2012

Frequently Asked Questions in Technical Round at MNCs like TCS, WIPRO, INFOSYS,..etc – 14

Predict the output or error(s) for the following:


1)

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:

Saturday, 10 March 2012

How do you list a file’s date and time?

A file’s date and time are stored in the find_t structure returned from the _dos_findfirst() and _dos_findnext() functions.

The date and time stamp of the file is stored in the find_t.wr_date and find_t.wr_time structure members. The file date is stored in a two-byte unsigned integer as shown here:

Because DOS stores a file’s seconds in two-second intervals, only the

Friday, 9 March 2012

Sun Certified Java Programmer (SCJP) Questions

Question 1

The following code will give

1:    class Test

2:    {

3:         void show()

4:         {

5:             System.out.println("non-static method in Test");

6:         }

7:    }

8:    public class Q3 extends Test

9:    {

10:      static void show()

11:      {

12:          System.out.println("Overridden non-static method in Q3");

13:      }

14:

15:      public static void main(String[] args)

16:      {

17:          Q3 a = new Q3();

18:      }

19:   }

 

A) Compilation error at line 3.

B) Compilation error at line 10.

C) No compilation error, but runtime exception at line 3.

D) No compilation error, but runtime exception at line 10.

Answer : B

Explanation :