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

Which one of the following canons of taxation was not advocated by Adam Smith?

 

A) Canon of equity B) Canon of certainty
C) Canon of convenience D) Canon of fiscal adequacy
 
Answer & Explanation Answer: D) Canon of fiscal adequacy

Explanation:

Adam Smith propounded the following first four canons of taxation -(1)Canon of Equity. (2) Canon of Certainty: (3) Canon of Convenience or Ease (4) Canon of Economy.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 13795
Q:

Find the work done (in J) when a charge of 20 C moves across a potential difference of 4 V.

 

 

A) 5 B) 40
C) 80 D) 10
 
Answer & Explanation Answer: C) 80

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

2 13794
Q:

November 30 is observed as ______

A) Computer Security Day B) United Nations Day for South-South Cooperation
C) International Cooperative Day D) International Human Solidarity Day
 
Answer & Explanation Answer: A) Computer Security Day

Explanation:
Report Error

View Answer Report Error Discuss

38 13793
Q:

What would be the output of the following program ?

main()

{

     const int x = 5; 

      int *ptrx;

      ptrx = &x;

      *ptr = 10;

       printf ("%d", x);

}

A) 5 B) 10
C) Error D) Garbage value
 
Answer & Explanation Answer: B) 10

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Programming

2 13792
Q:

In which Schedule to the Constitution of India is the list of States and Union Territories given?

 

A) First Schedule  B) Second Schedule 
C) Fourth Schedule  D) Sixth Schedule
 
Answer & Explanation Answer: A) First Schedule 

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: Bank Exams

0 13791
Q:

Which musical instrument Ustad Bismillah Khan used to play?

 

A) flute B) Tabla
C) Shehnai D) Sarod
 
Answer & Explanation Answer: C) Shehnai

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 13791
Q:

Select the antonym of

to conceive

A) to reckon B) to neglect
C) to apprehend D) to perceive
 
Answer & Explanation Answer: B) to neglect

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 13790