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

The India Parliament should meet at least ______.

 

A) Once a year B) Twice a year
C) Thrice a year D) Four times in a year
 
Answer & Explanation Answer: B) Twice a year

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: Bank Exams

0 3006
Q:

Synonym of 'Beautiful'?

A) Alluring B) Ugly
C) Disgusting D) Loathsome
 
Answer & Explanation Answer: A) Alluring

Explanation:

Beautiful means good looking, having pleasing personality, glamourous, charming.

Synonyms of Beautiful are handsome, attractive, alluring, cute, fair,...

 

Hence, in the given options Synonym of 'Beautiful' is Alluring.

Report Error

View Answer Report Error Discuss

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

2 3006
Q:

Which one of the following is an abiotic and renewable resource

A) Iron ore B) Livestock
C) Water D) Forests
 
Answer & Explanation Answer: C) Water

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

2 3006
Q:

When is genetic drift a major factor in evolution?

A) When there is male competition B) When there is artificial selection
C) When there is no selective pressure D) When there is disruptiveselection
 
Answer & Explanation Answer: C) When there is no selective pressure

Explanation:

Genetic drift or allelic drift is the change in the relative frequency in which a gene variant (allele) occurs in a population due to random sampling and chance.

 

When is genetic drift a major factor in evolution is

* When there is low gene flow.

* When there is no selective pressure.

* When there is a bottleneck.

Report Error

View Answer Report Error Discuss

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

5 3005
Q:

In the following code can we declare a new typedef name emp even though struct employee has not been completely defined while using typedef? < Yes / No>

typedef struct employee *ptr;

struct employee

{

       char name[20];

        int age;

        ptr next;

};

Answer

Yes

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3005
Q:

.................was honored with the National Nritya Shiromani Award on January 7, 2014

A) Smt. Geeta B) Mr. N. Radhakrishnan
C) Ms. Pritika Kalra Gandhi D) None of the above
 
Answer & Explanation Answer: C) Ms. Pritika Kalra Gandhi

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards

2 3005
Q:

Study of fishes is called

A) Amphiology B) Phylumology
C) Zoology D) Ichthyology
 
Answer & Explanation Answer: D) Ichthyology

Explanation:

Ichthyology is the branch of biology devoted to the study of fish.

 

It is also known as Fish science which includes bony fishes (Osteichthyes), cartilaginous fish (Chondrichthyes), and jawless fish (Agnatha).

Report Error

View Answer Report Error Discuss

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

7 3005