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

Who is the founder of WikiLeaks - a website that publishes comments, submissions of secret information and documents that often becomes controversial?

Answer

Julian Assange

Report Error

View answer Workspace Report Error Discuss

0 2261
Q:

Subordinate courts are supervised by___________

A) Supreme Court B) District Court
C) High Court D) Parliament
 
Answer & Explanation Answer: C) High Court

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 2261
Q:

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

Once and for all

A) Now and for the last time; finally B) To be successful in the first attempt
C) To do a charitable act for the benefit of everybody D) To speak for the majority
 
Answer & Explanation Answer: A) Now and for the last time; finally

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2261
Q:

In the following question, out of the four alternatives, select the alternative which will improve the bracketed part of the sentence. In case no improvement is needed, select "no improvement".

The child (would have jumped) with delight on seeing the joker at the circus.

A) jumping B) jumped
C) to jump D) no improvement
 
Answer & Explanation Answer: B) jumped

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams , CAT

0 2261
Q:

In the following question, out of the four alternatives, select the word similar in meaning to the word given.

Fustian

A) Unpretentions B) Timid
C) Arrogant D) Couteous
 
Answer & Explanation Answer: C) Arrogant

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2260
Q:

The 'Blue Water Policy' was introduced by the Portugese leader_________

A) Franscisco-de-Almeida B) Alfonso de Albuquerque
C) Francis Caron D) Francis Martin
 
Answer & Explanation Answer: A) Franscisco-de-Almeida

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

3 2260
Q:

Ajeet Bajaj is associated with which Sport?

A) Badminton B) Adventure Sports
C) Cricket D) Hockey
 
Answer & Explanation Answer: B) Adventure Sports

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: AIEEE , Bank Exams , CAT

1 2260