Questions

Q:

What will be output when you will execute following c code?

#include <stdio.h>
enum actor

{
    SeanPenn=5,
    AlPacino=-2,
    GaryOldman,
    EdNorton
};
void main()

{
     enum actor a=0;
     switch(a)

      {
         case SeanPenn:  printf("Kevin Spacey");
                         break;
         case AlPacino:  printf("Paul Giamatti");
                         break;
         case GaryOldman:printf("Donald Shuterland");
                         break;
         case EdNorton:  printf("Johnny Depp");
      } 
}

A) Kevin Spacey B) Paul Giamatti
C) Donald Shuterland D) Johnny Depp
 
Answer & Explanation Answer: D) Johnny Depp

Explanation:

Default value of enum constant
GaryOldman = -2 +1 = -1
And default value of enum constant
EdNorton = -1 + 1 = 0
Note: Case expression can be enum constant.

Report Error

View Answer Report Error Discuss

Filed Under: Programming

1 14042
Q:

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

 


It was a bittersweet moment for me when I found out that I had been selected for the Sakura Science Exchange programme, a Robotics and IoT workshop in Japan. A fully-funded opportunity of a lifetime. Fly off to Saitama without a care on the world, and all I had to do was put into practice what I love to do – computer science. The bitter part of the episode – that I would lose two weeks of IB education, an almost literal mountain to cover when I got back – was quickly forgotten when I envisioned myself programming robots in the country that gave us Anime and sushi! It was with the eagerness to have an extended vacation in an un-visited land, and the opportunity to learn more about a subject that I am passionate about, that I headed to the Kempegowda International Airport outside Bengaluru. Little did I know this would be the experience of a lifetime, more for the endearing values of the Japanese culture that made their mark on me than anything else. The first feature of Japanese society that called out to me was the Discipline. Walking into the Narita International Airport, used as I was to the noisy crowds back in India, I quite literally lost my breath to the sight that awaited me. Be it the security check or baggage claim, somehow there was a silence that felt right. Everyone went about their activities without any confusion. And, contrary to the bharatiya custom of lazy pot-bellied officials, every guard and all counter personnel did what they were supposed to do to ensure this flow was maintained.

 

Which country is credited for producing Anime?

 

A) India B) Japan
C) China D) USA
 
Answer & Explanation Answer: B) Japan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 14035
Q:

Select the antonym of

 

ambushed

 

A) lurk B) waylay
C) camouflage D) exposed
 
Answer & Explanation Answer: D) exposed

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 14027
Q:

Complete the following sentence with the most appropriate option.

 

Solar energy ____ generates more power than wind energy.

 

A) sometimes B) never
C) always D) often
 
Answer & Explanation Answer: A) sometimes

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: Bank Exams

1 14018
Q:

Film and TV institute of india is located at

A) Pune (Maharashtra) B) Rajkot (Gujarat)
C) Pimpri (Maharashtra) D) Perambur (Tamilnadu)
 
Answer & Explanation Answer: A) Pune (Maharashtra)

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

72 14018
Q:

What is the output of this C code?

        #include <stdio.h>
        void main()
        {
            int x = 97;
            char y = x;
            printf("%cn", y);
        }

A) a B) 97
C) Run time error D) None
 
Answer & Explanation Answer: A) a

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Programming

1 14017
Q:

The International township built near Pondicherry in India in Collaboration with UNESCO is called

A) Broadway B) Gayaville
C) Auroville D) Elbaville
 
Answer & Explanation Answer: C) Auroville

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Organisations

34 14012
Q:

Improve the bracketed part of the sentence.

 

"An interview after the campaign ends (is the normal) for every candidate and every campaigner in every election," he said.

 

A) is the norm B) is the normally
C) is continuality D) No improvement
 
Answer & Explanation Answer: A) is the norm

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 14011