Questions

Q:

Point out the error, ifany, in the followingb code?

typedef struct

{

     int data;

     NODEPTR link;

} *NODEPTR;

 

Answer

A typedef defines a new name for a type, and in simpler cases like the one shown below you can define a new structure type and a typedef for it at the same time.


typedef struct


{


    char name[20];


    int age;


} emp;


However, in the structure defined in this question, there is an error because a typedef declaration cannot be used until it is defined. In the given code fragment the typedef declaration is not yet defined at he point where the link field is declared.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2434
Q:

Read the passage carefully and choose the best answer to each question out of the four alternatives and click the button corresponding to it.

The first working steam­ powered vehicle was designed and most likely built by Ferdinand Verbies, a Flemish member of a Jesuit mission in China around 1672. It was a 65 cm long scale­ model toy for the Chinese Emperor, that was unable to carry a driver or a passenger. It is not known if Verbiest's model was ever built. Nicolas- Joseph Cugnot is widely credited with building the first full­ scale, self ­propelled mechanical vehicle or automobile in about 1769; he also created a steam­ powered tricycle. He constructed two steam tractors for the French Army, one of which is preserved in the French National Conservatory of Arts and Crafts. His inventions were however handicapped by problems of water supply and maintaining steam pressure. In 1801, Richard Trevithick built and demonstrated his Puffing Devil road locomotive, believed by many to be the first demonstration of a steam ­powered road vehicle. It was unable to maintain sufficient steam pressure for long periods. Sentiment against steam ­powered road vehicles led to the Locomotive Acts of 1865. In 1807 Nicephore Niepce and his brother Claude probably created the world's first internal combustion engine which they called Pyreolophore.

The first full­scale, working steam ­powered tricycle was built by:

A) Verbiest B) Cugnot
C) Trevithick D) Niepce
 
Answer & Explanation Answer: B) Cugnot

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2433
Q:

Where is the headquarters of Youtube?

A) China B) Japan
C) India D) United States
 
Answer & Explanation Answer: D) United States

Explanation:

The headquarters of Youtube is in United States. The headquarters of some big companies are at

Google : United States

Yahoo : United States

Apple : United States

Mircosoft : United States

Facebook : United States

WhatApp : United States

Twitter : United States

YouTube : United States

Instagram : United States.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

4 2433
Q:

Forest habitat and soil are conserved through

A) selective logging B) Differencial logs
C) Both A & B D) None of the above
 
Answer & Explanation Answer: A) selective logging

Explanation:

Forest habitat and soil are conserved through selective logging, in which only some trees in an area of forest are cut.

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

3 2433
Q:

In 2015, a special semi-luxury train covering Jaisalmer, Jodhpur & Jaipur was launched by the IRCTC. What is the name of the train?

A) Rajasthan Darshan B) Rajasthan Queen
C) Desert Circuit D) Desert Queen
 
Answer & Explanation Answer: C) Desert Circuit

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 2433
Q:

Improve the bracketed part of the sentence.
I had not completed my project so I thought I was (done with) when the manager asked me to hand it in.

A) done for B) done in
C) done on D) No improvement
 
Answer & Explanation Answer: A) done for

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2433
Q:

In the following question, a sentence has been given in Direct/Indirect speech. Out of the four alternatives suggested, select the one which best expresses the same sentence in Direct/Indirect speech.

"Please don't cry" he said.

A) He begged that I should not cry. B) He begged me not to cry.
C) He said to please him and not cry. D) He told me to not to cry.
 
Answer & Explanation Answer: B) He begged me not to cry.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: TOEFL , GRE , CAT

0 2433
Q:

In the following question, out of the four alternatives, select the word opposite in meaning to the word given.

Naive

A) Artful B) Candid
C) Credulous D) Sincere
 
Answer & Explanation Answer: A) Artful

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2432