Questions

Q:

Can you suggest any other way of writing the following expression such that 30 is used only once?

a <= 20 ? b = 30 : c = 30 ;

Answer

*( ( a <= 20 ) ? &b : &c ) = 30;

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 2437
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 2436
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 2436
Q:

The question below consists of a set of labelled sentences. Out of the four options given, select the most logical order of the sentences to form a coherent paragraph.
P: For one, very few entrepreneurs are willing to take on a new outsource, unless it comes with a guarantee of a certain level of sales.
Q: This invariably acts as an incentive for outsources to be lax in developing the business.
R: Despite being the dominant partner in the relationship, the outsourcer doesn't always have all the advantages.
S: The trade refers to it as the minimum guarantee clause, which means that if a outsourcee is unable to reach an anticipated sales level, he will be compensated for
the balance amount.

A) PRQS B) SPQR
C) QSPR D) RPSQ
 
Answer & Explanation Answer: D) RPSQ

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

1 2436
Q:

Innate immune system defenses include

A) phagocytosis B) B cells
C) plasma cells D) T cells
 
Answer & Explanation Answer: A) phagocytosis

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2436
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 2436
Q:

Four statements are given below at A, B, C and D. There may be some errors in the given statement(s). The incorrect statement is your answer.

 

A) To drain water away from the tracks, railroad beds, like road beds, are designed in which there is usually a bed of rock and gravel resulting in fast drainage from the tracks. B) Railroad beds, like road beds, are designed in which there is usually a bed of rock and gravel that results in the fast drainage from the tracks.
C) A bed of rock and gravel, called the railroad bed, is designed similar to a road bed to drain water away from the tracks. D) Railroad beds, like road beds, are designed to drain water apart from the tracks, so there is usually a bed of rock and gravel resulting in fast drainage away from the tracks.
 
Answer & Explanation Answer: D) Railroad beds, like road beds, are designed to drain water apart from the tracks, so there is usually a bed of rock and gravel resulting in fast drainage away from the tracks.

Explanation:

‘apart’ is incorrect after ‘to drain water’

Report Error

View Answer Report Error Discuss

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

0 2436
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 2435