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:

'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 3300
Q:

Indian captain Virat Kohli became the first captain to hit six double centuries in Test cricket. He has surpassed -

A) Steve Smith B) Brian Lara
C) Michael Clarke D) Don Bradman
 
Answer & Explanation Answer: B) Brian Lara

Explanation:

Virat Kohli surpasses Brian Lara with sixth Test double hundred as captain.

After reaching the milestone, Virat Kohli became the first captain to score six double tons in Test cricket. He has also become the first player to score six double centuries in just a span of 17 months. He also became the second Indian to score back-to-back double centuries, only after Vinod Kambli.

Apart from him, the only other cricketers who have scored back-to-back double Test tons are Wally Hammond, Don Bradman, Kambli, Kumar Sangakkara and Michael Clarke.

Report Error

View Answer Report Error Discuss

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

7 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 3300
Q:

Archetypes are useful in literature because

A) they are easily recognized and convey a lot of information B) they help readers categorize a piece of literature
C) readers and viewers expect authors to use them D) readers like everything longer and more complicated
 
Answer & Explanation Answer: A) they are easily recognized and convey a lot of information

Explanation:

Archetypes were models of people, behaviors, or personalities. They were inborn tendencies that play a role in influencing human behavior.

 


For example: A hero, an innocent, the villain, the mentor, etc...

Archetypes_are_useful_in_literature_because1560401866.jpg image

 


1. The mentor is a common archetype in literature. The mentor is usually old, and this person often has some kind of magical abilities or a much greater breadth of knowledge than others possess.

 

2. Characters representing the innocent archetype are often women or children. These character archetypes are pure in every way.

 

3. The villain wants to stop the hero archetype from achieving his or her goal. The villain is often evil, though there is often a reason—however warped that reason may be—why villains are so bad. Villains often want nothing more than to control and have power over everyone and everything around them.

Report Error

View Answer Report Error Discuss

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

0 3300
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 3300
Q:

Is MS Word an operating system?

A) TRUE B) FALSE
Answer & Explanation Answer: B) FALSE

Explanation:

False. MS-Word is not an Operating system.


 


Microsoft Word or MS-Word is an Application software developed by the company Microsoft. It allows users to Type and Save documents.

Report Error

View Answer Workspace Report Error Discuss

2 3299
Q:

Which of the following is the single most important source of the history of Ashoka?

A) Sri Lankan chronicles_ Dipavamsa and Mahavamsa B) Buddhist works Divyavadana and Ashokavadana
C) Inscriptions of Ashoka D) Archaeological Sources and the Puranas
 
Answer & Explanation Answer: C) Inscriptions of Ashoka

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

3 3299