Questions

Q:

Point out the error, if any, in the following program.

#include "stdio.h"

main()

{

      unsigned char;

       FILE *fp;

       fp = fopen ("trail", "r");

       while (( ch = getc (fp)) ! = EOF)

               printf ("%c", ch);

       fclose (fp);

}  

Answer

EOF has been defined as #define EOF -1 n the file "stdio.h" and an unsigned char ranges from 0 to 255 hence when EOF is read from the file it cannot be accommodated in ch. Solution is to declare ch as an int.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 3300
Q:

In which sport did an Indian team comprising Kishen Singh, Bijay Singh, Hanut Singh and Sawai Man Singh win the World Cup in France in 1957?

Answer

Polo

Report Error

View answer Workspace Report Error Discuss

2 3299
Q:

Which international organization has declared 2017 as the “International Year of Sustainable Tourism for Development”?

A) Asian Development Bank (ADB) B) World Trade Organisation (WTO)
C) United Nations (UN) D) International Monetary Fund (IMF)
 
Answer & Explanation Answer: C) United Nations (UN)

Explanation:

The United Nations (UN) has declared 2017 as the "International Year of Sustainable Tourism for Development" to celebrate and advance the commitment of the tourism division to building a superior world.The International Year aims to support a change in policies, business practices and consumer behavior towards a more sustainable tourism sector that can contribute effectively to the Sustainable Development Goals (SDGs).

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams , CAT , GATE , GRE
Job Role: Bank Clerk , Bank PO

4 3299
Q:

What animal has the shortest gestation period?

A) Elephant B) Meadows
C) Mouse D) Opossum
 
Answer & Explanation Answer: D) Opossum

Explanation:

The shortest gestation period known is 12 to 13 days, shared by three marsupials: the American or Virginian opossum (Didelphis marsupialis); the rare water opossum, or yapok (Chironectes minimus) of central and northern South America; and the eastern native cat (Dasyurus viverrinus) of Australia.

Gestation is the period of time between fertilization and birth in oviparous animals.

The elephant has the longest gestation period of about 23 months of any land animal.

Report Error

View Answer Report Error Discuss

Filed Under: Animals and Birds
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

4 3298
Q:

Explain the concept of Reentrancy?

Answer

It is a useful, memory-saving technique for multiprogrammed timesharing systems. A Reentrant Procedure is one in which multiple users can share a single copy of a program during the same period. Reentrancy has 2 key aspects: The program code cannot modify itself, and the local data for each user process must be stored separately. Thus, the permanent part is the code, and the temporary part is the pointer back to the calling program and local variables used by that program. Each execution instance is called activation. It executes the code in the permanent part, but has its own copy of local variables/parameters. The temporary part associated with each activation is the activation record. Generally, the activation record is kept on the stack.


Note: A reentrant procedure can be interrupted and called by an interrupting program, and still execute correctly on returning to the procedure.

Report Error

View answer Workspace Report Error Discuss

0 3298
Q:

'River' Brand of MP3 player has been launched in india  by Salora International. The Brand which is competing with apple's ipod is owned by which company?

A) ReignCom B) TEAc
C) Toshiba D) Panasonic
 
Answer & Explanation Answer: A) ReignCom

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

7 3298
Q:

Genes are situated on _________

A) Chromosome B) Mitochondria
C) Plastids D) Ribosomes
 
Answer & Explanation Answer: A) Chromosome

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

7 3298
Q:

To paraphrase a poem means to

A) rewrite it in one's own words B) determine the rhyme scheme
C) summarize its theme D) analyze the meter
 
Answer & Explanation Answer: A) rewrite it in one's own words

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO

4 3298