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

Which of these is an example of personification?

A) The moon smiled at me B) This shirt is as white as snow
C) Water is as hot as sun D) It is like a soft butter
 
Answer & Explanation Answer: A) The moon smiled at me

Explanation:

"The moon smiled at me" is the example of personification in the given options.

 

Personification is a technique in which we give objects human traits like emotions, gestures, speech,... by using metaphor. 

Here moon is an object which cannot smile but using metaphor sense, we gave that sense to it.

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 , Database Administration , IT Trainer

2 3428
Q:

Chemical Co- ordination in the body is brought out by

A) Blood B) Lymph
C) Enzymes D) Hormones
 
Answer & Explanation Answer: D) Hormones

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

8 3427
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 3427
Q:

Hard Drive capacity is measured in

A) Newton B) GB
C) THz D) Gwallior
 
Answer & Explanation Answer: B) GB

Explanation:

Hard drive or disc is used to store the users information and its capacity is measured in Giga Bytes (GB) and Tera Bytes (TB).

Report Error

View Answer Report Error Discuss

12 3426
Q:

Granite is an example of which type of rock?

A) Sedimentary B) Igneous
C) Metamorphic D) None of the above
 
Answer & Explanation Answer: B) Igneous

Explanation:

We know that, there are three main types of rocks. They are

1. Metamorphic

2. Sedimentary (and)

3. Igneous

 

Granite_is_an_example_of1561703734.jpg image

 

Granite is an example of igneous type of rock. These type of rocks are formed through the cooling and solidification of magma and lava.

Report Error

View Answer Report Error Discuss

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

4 3425
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 3425
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 3425