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

Statement coverage will not check for the following

A) Dead Code B) Unused Statement
C) Missing Statements D) Unused Branches
 
Answer & Explanation Answer: C) Missing Statements

Explanation:

Statement coverage is a white box test design technique which involves execution of all the executable statements in the source code at least once. It is used to calculate and measure the number of statements in the source code which can be executed given the requirements.

Report Error

View Answer Report Error Discuss

9 17913
Q:

Panini, the first Grammarian of Sanskrit language in India,lived during the

A) 2nd Century BC B) 6th-5th Century BC
C) 2nd century AD D) 5th-6th Century AD
 
Answer & Explanation Answer: B) 6th-5th Century BC

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

32 17864
Q:

Who is said to have become the chief of the Jain Sangh after the death of Mahavira

A) Jambu B) Bhadrabahu
C) Sthulbhadra D) Sudharma
 
Answer & Explanation Answer: D) Sudharma

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

36 17863
Q:

________ is an open source DBMS product that runs on UNIX, Linux and Windows.

A) MySQL B) JSP/SQL
C) JDBC/SQL D) Sun ACCESS
 
Answer & Explanation Answer: A) MySQL

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

26 17829
Q:

Journalist's Day was celebrated for the first time all over the country on

A) Oct 1,1984 B) Oct 8,1984
C) Oct 20,1984 D) Oct 28,1984
 
Answer & Explanation Answer: D) Oct 28,1984

Explanation:
Report Error

View Answer Report Error Discuss

28 17814
Q:

The famous figure of a dancing girl found in the excavation of Mohenjodaro was made up of

A) terracotta B) Steatite
C) bronze D) red limestone
 
Answer & Explanation Answer: C) bronze

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

33 17807
Q:

NH3 oxidation number?

A) -1 B) +1
C) 0 D) -3
 
Answer & Explanation Answer: C) 0

Explanation:

NH3, Ammonia is a neutral compound as the individual oxidation numbers elements that make up the compound NH3 are Nitrogen (N) and Hydrogen (H) sum to zero. 

We do not speak of the oxidation number of a molecule. We can speak of the oxidation numbers of the individual elements that make up the compound.

 

Here the oxidation number of Nirogen is -3 and that of Hydrogen is +1.

Now, NH3 = 1(-3) + 3(+1) = -3 + 3 = 0.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

31 17795