Practice Question and Answer

Q: How would you reverse a doubly-linked list? 1406 0

  • Show AnswerHide Answer
  • Workspace

Answer :
Explanation :

This problem isn't too hard. You just need to start at the head of the list, and iterate to the end. At each node, swap the values of pNext and pPrev. Finally, set pHead to the last node in the list. Node * pCurrent = pHead, *pTemp; while (pCurrent) {   pTemp = pCurrent->pNext;   pCurrent->pNext = pCurrent->pPrev;   pCurrent->pPrev = temp;     pHead = pCurrent;   pCurrent = temp; }

Q:

What is Potato?

1406 0

  • 1
    Root
    Correct
    Wrong
  • 2
    Stalk
    Correct
    Wrong
  • 3
    Bud
    Correct
    Wrong
  • 4
    Fruit
    Correct
    Wrong
  • Show AnswerHide Answer
  • Workspace

Answer : 2. "Stalk"

Q:

Who has been appointed as the new advisor of Khadi and Village Industries Commission recently?

1406 0

  • 1
    Ashish Rathod
    Correct
    Wrong
  • 2
    Rishabh Chakraborty
    Correct
    Wrong
  • 3
    Sunil Sethi
    Correct
    Wrong
  • 4
    Lokesh Corporation
    Correct
    Wrong
  • Show AnswerHide Answer
  • Workspace

Answer : 3. "Sunil Sethi"

Q:

What is the eligibility age now to invest in National Pension System (NPS)?

1406 0

  • 1
    18-60
    Correct
    Wrong
  • 2
    18-65
    Correct
    Wrong
  • 3
    18-70
    Correct
    Wrong
  • 4
    18-75
    Correct
    Wrong
  • Show AnswerHide Answer
  • Workspace

Answer : 3. "18-70"

Q:

Who has approved a loan of $ 500 million for the rapid rail between Delhi and Meerut?

1406 0

  • 1
    SARS Countries Bank Nav Kivas Bank
    Correct
    Wrong
  • 2
    Zee Seven Countries Bank Nav Kivas Bank
    Correct
    Wrong
  • 3
    Bank of the united nations new bank
    Correct
    Wrong
  • 4
    Bank of BRICS countries Nav Kivas Bank
    Correct
    Wrong
  • Show AnswerHide Answer
  • Workspace

Answer : 4. "Bank of BRICS countries Nav Kivas Bank"

Q:

Select the INCORRECTLY spelt word.

1406 0

  • 1
    Interpretation
    Correct
    Wrong
  • 2
    Tremendous
    Correct
    Wrong
  • 3
    Persistent
    Correct
    Wrong
  • 4
    Pronounciation
    Correct
    Wrong
  • Show AnswerHide Answer
  • Workspace

Answer : 4. "Pronounciation"

Q:

Rajasthan's first ‘Bird Park' is situated in -

1406 0

  • 1
    Jalore
    Correct
    Wrong
  • 2
    Jaipur
    Correct
    Wrong
  • 3
    Ajmer
    Correct
    Wrong
  • 4
    Udaipur
    Correct
    Wrong
  • Show AnswerHide Answer
  • Workspace

Answer : 4. "Udaipur "

      Report Error

    Please Enter Message
    Error Reported Successfully

      Report Error

    Please Enter Message
    Error Reported Successfully

      Report Error

    Please Enter Message
    Error Reported Successfully

      Report Error

    Please Enter Message
    Error Reported Successfully

      Report Error

    Please Enter Message
    Error Reported Successfully

      Report Error

    Please Enter Message
    Error Reported Successfully

      Report Error

    Please Enter Message
    Error Reported Successfully

      Report Error

    Please Enter Message
    Error Reported Successfully