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

The "Operation Olympics" commences in?

A) Karnataka B) Kerala
C) Jharkand D) Odisha
 
Answer & Explanation Answer: B) Kerala

Explanation:
Report Error

View Answer Report Error Discuss

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

3 2144
Q:

Which of the following describes computer animation?

A) a sequential art, which emerged in the late nineteenth century to attract more readers to newspapers B) the art of using 2-D and 3-D computer graphics to create moving images and special effects in films
C) a sister art of video games, which involves interaction with a user interface to generate visual feedback D) None of the above
 
Answer & Explanation Answer: B) the art of using 2-D and 3-D computer graphics to create moving images and special effects in films

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

1 2144
Q:

A passage is given with 5 questions following it. Read the passage carefully and choose the best answer to each question out of the four alternatives and click the button corresponding to it.


My brother, David, was always close to our grandmother. Both of them shared a love of Mother Nature and of food that they had grown themselves. Whenever his schedule permitted, he would drop in for a short visit and a cup of coffee. One day, when he found no one home, he left a chunk of dirt on her porch. This started what was later to be known as his "calling card". Grandmother would come home occasionally and instantly know that Dave had been by when she spotted the chunk of dirt on her porch.

Although Grandmother had a poor upbringing in Italy, she managed to do well in the United States. She was always healthy and independent and enjoyed a fulfilling life. Recently she had a stroke and died. Everyone was saddened by her death. David was disconsolate. His life­long friend was now gone.

Grandmother's death made everyone

A) sad including David B) disconsolate excluding David
C) happy and disconsolate D) sad excluding David
 
Answer & Explanation Answer: A) sad including David

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2144
Q:

Read the passage carefully and choose the best answer to each question out of the four alternatives and click the button corresponding to it.

Another marvel on the far side of the lake was a little farm that felt like a secret in the city. Some of the gaunt Karnataka labourers even looked away when children came to dig and eat. But the greatest pleasure, this side of the lake, was the jamun tree. A few months back, Kalu and Sunil had a feast in the branches, shaking down a few berries for Mirchi.

That's when they came to know the second-coolest thing about the jamun tree : There were parrots nesting in it. Since then, some other road boys had been capturing the parrots one by one to sell at the Marol Market, but Sunil had brought Kalu around to the belief that the birds should be left as they were. Sunil listened for their squawks each morning, to make sure they hadn't been abducted in the night.

Kalu's expertise was in the recycling bins inside airline catering compounds. Private waste collectors emptied these dumpsters on a regular basis, but Kalu had mastered the trash truck's schedules. The night before pickup, Kalu would climb over the barbed-wire fences and raid the overflowing bins.

Kalu's routine had become known by the local police, however. He kept getting caught, until some constables proposed a different arrangement. Kalu could keep his metal scrap if he'd pass on information he picked up on the road about local drug dealers.


What was the second coolest thing about the Jamun tree?

A) Shaking down the berries for Mirchi B) There were parrots nesting in the tree
C) Selling parrots in the Marol Market D) Capturing parrots in the tree
 
Answer & Explanation Answer: B) There were parrots nesting in the tree

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2144
Q:

In the following question, a sentence has been given in Direct/Indirect speech. Out of the four alternatives suggested, select the one which best express the same sentence in Indirect/Direct speech.

 

He said to Raina,"I cannot marry you now but I shall surely do so next year."

 

A) He told Raina that he cannot marry her now but would surely do so the following year. B) He told her that he could not marry Raina then but would surely marry her next year.
C) He told Raina that he could not marry her then but he would surely do so the following year. D) He told Raina that he would not marry her then but would surely do so the next year.
 
Answer & Explanation Answer: C) He told Raina that he could not marry her then but he would surely do so the following year.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams , GRE , TOEFL

0 2143
Q:

If an animal is an ectotherm, it has?

A) A skeleton on the inside of its body B) A body that does not produce much internal heat
C) A skeleton on the outside of its body D) A body that regulates its own internal temperature
 
Answer & Explanation Answer: B) A body that does not produce much internal heat

Explanation:
Report Error

View Answer Report Error Discuss

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

2 2143
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 2143