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

I am a Fruit. I am Tasty and provides lots of energy. You can also find me in a calendar.

Answer

Dates.


 


dates1586765406.jpg image


 


These are found in calendar as date and are tasty fruits that are full of energy.

Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles Exam Prep: GATE , Bank Exams

11 3007
Q:

As per the data released by RBI, which bank witnessed the most number of frauds during April-December period of 2016 ?

A) HDFC Bank B) Standard Chartered Bank
C) SBI Bank D) ICICI Bank
 
Answer & Explanation Answer: D) ICICI Bank

Explanation:

ICICI Bank topped the list of banks that witnessed the most number of frauds during April-December period of 2016 with state-owned SBI taking the second spot, RBI data said.

Report Error

View Answer Report Error Discuss

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

2 3007
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 3007
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 3007
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 3007
Q:

Who is the author of book ' Arctic Summer'.

Answer

Dammon Galgut

Report Error

View answer Workspace Report Error Discuss

2 3006
Q:

For which Novel Prominent Konkani writer Mahabaleshwar Sail will be awarded the Saraswati Samman for the year 2016 ?

A) Hawthan B) Mandra
C) Chitt-Chete D) None of the above
 
Answer & Explanation Answer: A) Hawthan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

6 3006