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

The federalist papers were written by which future President?

A) John Adams B) Alexander Hamilton
C) James Madison D) John Jay
 
Answer & Explanation Answer: C) James Madison

Explanation:

James Madison was the one who became President in the future after writing The federalist papers. Alexander Hamilton, James Madison and John Jay were the three who wrote The federalist papers. 

Report Error

View Answer Report Error Discuss

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

3 2147
Q:

Of which country was the religion 'Shintoism'?

A) Japan B) China
C) Arabs D) Turkey
 
Answer & Explanation Answer: A) Japan

Explanation:

The old religion of Japan is known as Shiltoism. This religion consists mainly of the worship of the forces of nature.

Report Error

View Answer Report Error Discuss

Filed Under: World History

1 2147
Q:

How to clear Computer Motherboard CMOS password?

Answer

To clear the CMOS password you just remove the CMOS Battery or else you can also use a jumper settings.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

1 2147
Q:

The EPA studies pollution and other

A) population hazards B) environmental health hazards
C) traffic hazards D) All of the above
 
Answer & Explanation Answer: B) environmental health hazards

Explanation:

The EPA stands for Environment Protection Agency in U.S which studies pollution and other environmental health hazards.

Report Error

View Answer Report Error Discuss

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

1 2147
Q:

In economics, the cost of something is

A) the dollar amount of obtaining it B) what you give up to get it
C) often impossible to quantify, even in principle D) always measured in units of time given up to get it
 
Answer & Explanation Answer: B) what you give up to get it

Explanation:

In economics, the cost of something is what you give up to get it.

Report Error

View Answer Report Error Discuss

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

4 2147
Q:

Where does transcription occur in the cell?

A) Cytoplasm B) Nucleus
C) Ribosome D) None of the above
 
Answer & Explanation Answer: B) Nucleus

Explanation:

Transcription is a process of production of mRNA which occurs in the nucleus of the cell. After transcription, translation which occurs in the cytoplasm.

Report Error

View Answer Report Error Discuss

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

2 2147
Q:

In the following question, out of the four alternatives, select the alternative which best expresses the meaning of the idiom/phrase.

To heave a sigh of relief

A) To ecome very tired with routine or boring work B) To suddenly feel very happy because something unpleasant has not happened or has ended
C) To Feel extremely sad over someone else's misfortune D) To Feel silent anger over real or perceived injustice
 
Answer & Explanation Answer: B) To suddenly feel very happy because something unpleasant has not happened or has ended

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2147