Questions

Q:

How would you find the length of each string in the following Program?

main()

{

    char *str[] = { "Frogs", "Do", "Not" , "Die" , "They" , "Croak!"};

    printf ("%d%d", sizeof (str), sizeof (str[0]));

}

Answer

main()


{


   char *str[] = { "Frogs", "Do", "Not", "Die." , "They", "Croak!" };


   int i;


         for ( i = 0;i<=5;i++)


         printf ("\n%s%d", str[i], strlen( str[i]));


}

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 2122
Q:

What was Rajiv Gandhi before he entered politics?

A) Professor B) Lawyer
C) Pilot D) Doctor
 
Answer & Explanation Answer: C) Pilot

Explanation:

Our Ex. Prime Minister Rajiv Gandhi was Pilot by profession before he entered politics.

Report Error

View Answer Report Error Discuss

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

12 2120
Q:

Through which light cannot pass?

A) Notebook paper B) Water
C) Book D) Sun glasses
 
Answer & Explanation Answer: C) Book

Explanation:

The objects through which light cannot pass are called as Opaque objects. Some objects allow some light to pass through them and are called as Translucent objects. The objects which allow all the light to pass through them are called as Transparent objects.

 

Here in the given options Book is an example of opaque object as it does not allow light to pass through it. Water is transparent object and notebook paper and sun glasses are examples of translucent objects.

Report Error

View Answer Report Error Discuss

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

2 2120
Q:

The main products of photosynthesis are

A) Oxygen B) Sugar
C) Both A & B D) Carbon dioxide
 
Answer & Explanation Answer: C) Both A & B

Explanation:

The two main products of photosynthesis are sugar and oxygen. Oxygen is emitted as waste product and sugar is used for energy preparation using sun light.

Report Error

View Answer Report Error Discuss

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

1 2120
Q:

The sentences given with blanks are to be filled with an appropriate word(s). Four alternatives are suggested for each question. For each question, choose the correct alternative and click the button corresponding to it.

I am _______________this crime.

A) ignorant on B)  innocent of
C) indebted to D) ignoring
 
Answer & Explanation Answer: B)  innocent of

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: TOEFL , GRE , CAT

1 2120
Q:

Improve the bracketed part of the sentence.
He has painted that picture so often that he can do it with his (eyes closed).

A) arms full B) eyes opened
C) mind blank D) No improvement
 
Answer & Explanation Answer: D) No improvement

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2120
Q:

Look at the underlined part of each sentence. Below each sentence are given three possible substitutions for the underlined part. If one of them (a), (b) or (c) is better than the underlined part, indicate your response on the Answer Sheet against the corresponding letter. If none of the substitutions imporves the sentence, indicate (d) as your response on the Answer Sheet.

I didn’t fell like going out yesterday, but on account of my son’s illness I had to go to the doctor.

A) have B) might have
C) ought D) no improvement
 
Answer & Explanation Answer: D) no improvement

Explanation:

The given sentence is in simple past. No improvement required.

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2119
Q:

The upper chambers of the heart are the

A) Ventricles B) Atria
C) Both A & B D) None of the above
 
Answer & Explanation Answer: B) Atria

Explanation:
Report Error

View Answer Report Error Discuss

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

4 2119