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

Handwritten wills are also known as which of the following?

A) Homographic B) Solographic
C) Holographic D) Monographic
 
Answer & Explanation Answer: C) Holographic

Explanation:

handwritten_wills_are_also_known_as_which_of_the_following1552114843.jpg image

Handwritten wills are also known as Holographic wills since they are made by the persons called testators without notary or any witness.

Report Error

View Answer Report Error Discuss

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

0 3362
Q:

 Which of the following occurs when a transaction rereads data it has previously read and finds modification or deletions caused by a committed transaction?

A) Nonrepeatable read B) Phantom read
C) Dirty read D) Consistent read
 
Answer & Explanation Answer: A) Nonrepeatable read

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

0 3362
Q:

RBI has extended the timeline for full implementation of the Basel III capital regulations to which of the following date instead of 31 March, 2018?

A) 31 Jan, 2019 B) 31 Dec, 2018
C) 31 Mar, 2019 D) 1 Oct, 2018
 
Answer & Explanation Answer: C) 31 Mar, 2019

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

0 3361
Q:

What is India’s rank in the Global Travel and Tourism Competitiveness Report 2017 by World Economic Forum ?

A) 40th B) 52nd
C) 12th D) 6th
 
Answer & Explanation Answer: A) 40th

Explanation:

India has jumped 12 places to 40th rank globally in travel and tourism competitiveness list by World Economic Forum.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

4 3360
Q:

The insects do not have blood pigments because 

A) there is no blood B) blood does not have a respirratory function
C) tissues have pigments D) pigments are elsewhere
 
Answer & Explanation Answer: B) blood does not have a respirratory function

Explanation:

The blood of some invertebrate animals like the earthworm is red due to haemoglobin pigment, but the pigment is dissolved in the plasma. In vertebrates the same pigment is found in the red corpuscles and not in the plasma.

Report Error

View Answer Report Error Discuss

Filed Under: Biology

8 3360
Q:

'Barren Island' which is the only active volcano in India is situated in?

A) Rajasthan B) Andaman-Nicobar
C) Chattisgarh D) Lakshadweep
 
Answer & Explanation Answer: B) Andaman-Nicobar

Explanation:

The only active volcano in India is situated in Andaman-Nicobar islands.

Report Error

View Answer Report Error Discuss

2 3360
Q:

Radioactive decay is likely to occur when

A) an atom has too many neutrons or protons B) protons break into neutrons and electrons
C) an atom has too many electrons D) atoms collide with one another
 
Answer & Explanation Answer: A) an atom has too many neutrons or protons

Explanation:

Radioactive decay is likely to occur when the nuclei of an atom doesn't have enough binding energy to hold the nucleus together due to excess of rotons or nutrons in it.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams , GATE
Job Role: Analyst , Bank Clerk , Bank PO

2 3360