Friday, December 18, 2015

EDI Interview Questions with Answers at freshers and experienced level


 

Frequently asked Top EDI Interview Questions with Answers @ freshers and experienced level.


1. What is EDI?
The computer-to-computer electronic exchange of machine-processable business documents in a standard format. * An electronic alternative to paper, fax, and phone-based transactions used by companies to communicate with one another.

2. How does EDI Work?

 
Purchase Ordering Example
1. The buyer enters order information into the production database, which generates a purchase order on the computer. The order information is then channeled through a number of interface programs.
2. The interface software programs perform edits and checks on the document and direct the order data into predefined EDI intermediate files.
3. The EDI intermediate files contain information in a form that the EDI translation software can read.
4. The translation software is a set of programs that translates the interface file data into a document formatted according to EDI standards that the supplier's computer can recognize.
5. The electronic document now consists of a file that contains the order data in a predefined, recognizable order.
6. The communications software adds appropriate communications protocols to the EDI document in preparation for transmission via telephone lines.
7. Using a modem and telephone line, the buyer transmits the EDI purchase order to a VAN (Value added network). Think of this as a mailbox.
8. The communications software on the supplier's computer picks up the document from the VAN, interprets and/or converts the communications protocols to open the electronic document.
9. The purchase order is now in a standard, recognizable format in a file and is available to the supplier's computer.
10. The supplier's translation software interprets the documents from the EDI format and places the order information in EDI intermediate file(s).
11. The EDI intermediate files contain the translated purchase order information.
12. The interface programs perform edits and checks before the data is integrated with the supplier's production database.
13. The application software on the supplier's computer can now process the buyer's order.

3. What are EDI Benefits?
Builds closer business partnerships * Reduces/eliminates manual handling of data, errors and rework * Transfers information faster and more accurately * Automates routine transactions * Improves productivity and business controls * Reduces costs * Shortens transaction processing cycles * Enhances data accuracy * Lowers inventory levels * Contributes to better in-stock positions * Lowers freight costs * Provides Quick Response capability * Improves cash-flow management * Creates a competitive advantage

4. What are EDI Drivers?

* Ability to strengthen partnerships
* Improve business processes
* A communication tool to allow new ways to do business
* A preferred way of doing business among Fortune 500 companies
* A business basic for the industry

5. What is IDES?
International Demonstration and Education System. A sample application provided for faster learning and implementation.

6. What is the most common EDI cycle?

Customer transmits EDI 850 (purchase order)
* Supplier transmits EDI 997 (functional acknowledgement)
* Supplier transmits EDI 856 (advance ship notice)
* Customer transmits EDI 997 (functional acknowledgement)
* Supplier transmits EDI 810 (electronic invoice)
* Customer transmits EDI 997 (functional acknowledgement)
* Customer transmits EFT (Electronic Funds Transfer) Payment.

7. Why move to EDI?
* Allow machines to process business transactions while people develop and enhance business relationships
* Strengthen internal and external business relationships through "information partnering"
* Promote Electronic Commerce through EDI and other information solutions
* Improve the supply chain by making accurate information available quickly and inexpensively
* Reduce operating costs by re-designing business processes and automating routine tasks

8. What is required for enrollment with EDISS?

To begin enrollment, EDISS requires providers create an online profile in EDISS ‘Connect’. Creating a profile in Connect provides EDISS with all the necessary information for setup completion in our system. All demographic, facility, line of business, electronic transaction, and method of submission information is captured immediately during online registration.

9. Is there downtime for submitting claims to EDISS?

EDISS phone lines are available for submission of production files 24/7, with the exception of every Sunday from 6:00 a.m. to 12:00 p.m. (CT) when the lines are
unavailable for scheduled maintenance.

10. What is a companion guide and how can I get one?

A companion guide is used in conjunction with the HIPAA Implementation Guide. It details how a specific payer interprets the data elements, and the information they require for processing claims.
For MassHealth Companion Guides, go to the MassHealth Provider Library located under the MassHealth Regulations and Other Publications link.

11. How do I arrange to receive the 835 transaction?
Contact MassHealth MassHealth Customer Service to coordinate the necessary setup for receipt of the 835 transaction. Depending on whether you are a provider using a clearinghouse or billing agent, a provider submitting your own claims, or an organization managing multiple providers, there are unique sets of information that are required to complete the registration process.

12. What is a 997?
The 997 is a HIPAA-defined transaction that indicates acknowledgement of receipt and status of each segment in an EDI transaction.

13. What are the different standards used for EDI transactions?
For US:- ANSI ASC X12  and for UK:-  EDIFACT,TRADECOM

14. What are the different kind of integration tools used for EDI transactions?

GENTRAN, GIS(4.0,4.1,4.2) Gentran Integration suite, sterling Integrator(5.0,5.1,5.2)

15. What is an EDI Translator?
For the bookstore system to have a consistent EDI interface, an EDI translator is essential. The EDI translator normalizes the EDI documents going to and from the bookstore system to the trading partners. EDI translators are available from a number of independent companies who not only provide the translator software, but also provided updated dictionaries, as new revisions to the standards become available.

16. How is EDI Started?
Usually Reactive or Proactive.
REACTIVE:
Lack of understanding
No direction
Lack of regulated program
“Jury Rig” third-party solution

PROACTIVE:
Clearly defined business need
Defined Corporate direction
Controlled program
“Selected” trading partners
Impartial “third-party” input

17. EDI ORDERS: Duplicate Orders Submitted / Created

Check the VBKT Tableand in the event there is a duplicate purchase order, send them to work flow.

18. Finding A Program That Triggers DOC File?

Check the function called IDOC_input_Material Code01.

19. Date Values To Segment E1EDKO3 How I can do this?

Without knowing what type of document you are sending (E1EDK03 occurs in lot of DOC file types), it is hard to say exactly what user exit to use. You should look in the function module that creates and sends the IDOC file to find a user exit that will do the job.
Outbound purchase order documents use function module IDOC_OUTPUT_ORDERS. You would probably use customer function EXIT_SAPLEINM_002. You should create a project
for enhancement MM06E001 in CMOD and then code the user exit.

Your code might look something like this:
(declare w_eledkO3, w_first and w_somedate in the function
group top include)
CASE int_edidd-segnam.
WHEN ‘E1EDKO1’.
w_first = ‘X’. “flag first segment
WHEN ‘E1EDKA1’.
* insert E1EDKO3 segment before the first E1EDKA1 segment.
if w_first = ‘X’.
w_first = “.
clear w_E 1EDKO3.
W_E1EDKO3-IDDAT = “022”.
W_E1EDKO3-DATUM = w_sornedate.
MOVE W_E 1EDKO3 TO int_edidd-sdata.
MOVE ‘E1EDKO3’ to int_edidd-segnam.
APPEND int_edidd.
ENDCASE.

20. Goods Movement With EDI
In order to have the correct shipping notification (ASN) pulled, it is necessary that fields VLIEF_AVIS and VBELP_AVIS are filled. The purchase order number and the purchase order item must not be filled here. The IDOC is a technical interface which does not pull the “correct” ASN itself. It must have all necessary data so that it can pull the correct ASN. If this is not the case, it will always pull the first item.





EDI Interview Question with Answer





We heartily Thanks "Harendra Singh" for sharing EDI Interview question with "Q-4-Interview"


1.        What is the difference between electronic data interchange provided by an EDI VAN and   Internet EDI?
Ans:
VAN a Value Added Network, often referred to as an EDI VAN, is a private network dedicated to the secure exchange of EDI data.  Trading partners obtain an account with an EDI VAN such as GXS VAN, Sterling, EDS/ELIT, COVISINT INTERCONNECT etc.  This account serves as an electronic mailbox for sending and receiving electronic documents.            
Internet EDI is another way of communication, it’s similar to OFTP2. You r partner can send you the data to your server via Internet or vice versa.

2.        What are different EDI Standards and Application Standards Formats?
Ans :     
 EDI Standard : ANSI X12, UCS, EDIFACT, VDA, TREDACOM etc.
Application Format Standard : IDoc, Delimited Files, CSV etc.

3.       How do I know what type of file I received?
Ans :
 The ST segment is the transaction set header. The ST purpose is to indicate the start of a transaction set. The ST01 is the Transaction Set Identifier Code. The ST01 uniquely identifies a transaction set. The ST01 will identify if a file is a 997, 835 or 277.

4.       How do I know if my file was accepted?
Ans :
AK5*A~                                ß AK501 = A, transaction set accepted
A – Accepted
E – Accepted with Errors
R – Rejected

AK9*A*1*1*1~                 ß AK901 = A, file accepted

A - Accepted
E - Accepted, But Errors Were Noted.
P - Partially Accepted, At Least One Transaction Set Was Rejected
R - Rejected

5.       What do I do if my file is rejected (AK501 not = A or E and AK901 not = A or E)?
Ans :     
Contact the trading partner to resend the file.

6.       What is AS1, AS2 and AS3?
Ans :
AS1 : AS2 (Applicability Statement 2) is a specification about how to transport data securely and reliably over the Internet

AS2 : AS2 (Applicability Statement 2) is a specification about how to transport data securely and reliably over the Internet. Security is achieved by using digital certificates and encryption.

Files are sent as "attachments" in a specially coded SMIME message (an AS2 message)
AS2 messages are always sent using the HTTP or HTTPS protocol (Secure Sockets Layer — also known as SSL — is implied by HTTPS) and usually use the "POST" method (use of "GET" is rare).
AS3 : AS3 (Applicability Statement 3) is the draft specification standard by which vendor applications communicate EDI (or other data such as XML) over the Internet using File Transfer Protocol (FTP).


7.       Describe the Transaction Set Flow for a Retail Business?
Ans :
Step 1-Pre-Ordering
               
                Request for quotation                                   840
                Response to request for quotation          843
Step 2-Ordering
                Purchase Order                                                850
                Acknowledge Purchase Order                    855
                Change Purchase Order                                                860
                Acknowledge Change Purchase Order   865
Step 3-Physical Distribution
                Notify Shipment                                               856
Step 4-Billing-Self-Billing/Payments
                Process Invoice                                                 810
                Process Invoice (Credit / Debit)                 812
                Show Payment Status                                    820

8.       What is difference between 855 and 997 TS?
Ans :
855 : Used to provide for customary and established business and industry practice relative to a seller's acknowledgment of a buyer's purchase order.
855 is acknowledge for 850

997 : Used to define the control structures for a set of acknowledgments to indicate the results of the syntactical analysis of the electronically encoded documents. 997 generally indicates EDI standard problems rather than business rule errors
                997 is Acknowledge for all transaction.

9.        what is 824 TS?
Ans :
It result of error checking by the trading partner's business application program.

10.   Can a 997 TS is used to acknowledge 997 TS?
Ans :
No, it will cause an infinite loop.

11.   what is DDF? Can we created DDF for EDI side?
Ans :
Map Editor enables you to create (save as a DDF) a DDF  file (Data Definition Format File) so that you can use it as a starting place in other maps or as a means to update existing maps.
               
12.    What is ISA? ISA 6,8,14,15?

ISA 6 is sender id, 8 is date, 14 is the file indicator(P/T) and 15 is sub element separator

13.   what is GS Control Number?

GS*6 is the group control number which is unique for one GS in side one ISA segment.

14.   What is Auto Trim Function?

Ans :
                Auto trim is the way to activate the EDI segment base on input file.
Instead of activating map components manually, you can use the Auto Trim function to modify the EDI side of the map according to a sample EDI file that you select.
The sample EDI file must be of the same standard, version, and transaction set (message) as the map for Auto Trim to match map components.
Delimiters for the EDI side of the map must be set to match the delimiters used in the sample EDI file.

15.   What is writeblock(), readblock(), unreadblock() function?
Ans:
Writeblock() : The writeblock function writes the data contained in the argument of a string variable to the output file. The readblock and writeblock functions are used together to pass a block of data from the input file to the output file without compliance checking or testing for proper EDI syntax.
Readblock(): The readblock function reads a block of data (segment or record) from the input file and places it into the argument of a string variable. The readblock and writeblock functions are used in conjunction with each other to pass a block of data from the input file to the output file without compliance checking or testing for proper EDI syntax. Together, these functions provide a more efficient alternative of using wildcard segments, which are typically implemented in build and break maps.
Unreadblock() : The unreadblock function provides a method of moving the input file-pointer back one block (a block of data is equivalent to one EDI segment or one positional record). This function "unreads" the block of data that was just processed by the readblock function.



16.   What is Pre and post session Rules?
Ans :
 Pre-session rules define variables that have global scope (can be accessed from any other extended rule in the map). Pre-session extended rules are processed before the translation object is processed, and apply to every extended rule defined in the map.
Post-session rules are run after the translation object is processed and thus have no permanent scope.
17.    What are Indexes?
Ans :
To write valid extended rules, you must understand how to use indexes. Without indexes, it is possible that a rule which moves data from one field to another may result in lost data.
An index is a number that is used within an extended rule only when referencing a field contained by a repeating record or group. This number is used to specify the exact occurrence (iteration) of the repeating group or record that you want the translator to access.
When you are mapping the data from one group of data to other group we have to use the indexing to map the correct sequence of data
18.   What is basic flow of Map Editor?
                First Input file will read, then it will apply for standard rule on source side then check for extended rule then linking, then it will go to target side and apply standard rule, then extended rule.
Pre and Post rule will applicable according.

19.    What do you understand by Promotion in Map Editor?
Ans:
The Promote function extracts one iteration (instance) of one of the following map components:
·         Group
·         Repeating record
·         Repeating element
·         repeating composite
Promote is a specialized version of the Split function. For example, if you have a group with 50 iterations and you select Promote, you then have two groups: one group with an iteration of 1 and a group that iterates 49 times.
This function enables you to map unique data from a document and to type a specialized definition. The translator specifies that only one-to-one (no loop) or many-to-many (loop) mapping relationships are valid. The Promote function is available only if a group or repeating record, element, or composite is selected.
20.    Different type of Delimiters?
Ans :
Tag Delimiter                     ~
                Segment Delimiter          *
                Element Delimiter           *
                Sub Element Delimiter  
                Repeating Element Delimiter     
                                                                                                                                                                       
GS*PO*007347602SLND*12345678910*970101*1255*535*X*0030606~


If you would like to contribute, mail us your interview experience at "q4interview@gmail.com"We will like to publish it on "q4interview.blogspot.in" and let's help other job seekers.

Saturday, November 28, 2015

Wipro Freshers Placement Paper



1)APTITUDE TEST:
Questions = 50 ; time limit = 50 minutes. no negative marking. Offline (paper & pen) test 
There was individual cut off for all the sections
Section1- English, 15 questions
Direction 1-5 : In each of the following questions, find out which part of the sentence has an error. if there is no mistake  the answer is 'no error'
1. Twice twelve / makes / twenty four / No error
            A               B             C               D
    Ans: B
2. The flight purser took control / of the plane after / the pilot had had /  a heart attack / No error
                        A                                  B                        C                          D                 E
    Ans: C
3. My friend did not see me / for many years / when I met him last week / No error    
                    A                                B                           C                            D
     Ans : A
4. We grieve our loss and cry helplessly / while we should be fighting for our rights / and die a noble death / No error
                               A                                                            B                                           C                        D
    Ans : B
5.  Work hard / lest you will / fail / No error
            A                  B          C         D              
                     
    Ans : D
Directions 6-10: The following questions, consist of two words each that have a certain relationship to each other, followed by four lettered pairs of words. Select the lettered pair that has the same relationship as the original pair of words.   
6. Kangaroo : Australia
    A) Whale : River    B) Elephant : Russia    C) Penguin : Antarctica    D) India : Peacock
    Ans: C
7. Coronation : Reign
    A) Vaccination : Immunity    B) Sculptor : Statue    C) Degree : Graduate    D) Summer : Rain
    Ans: D
8. Grain : Salt
    A) Chip : Glass    B) Blades : Grass    C) Shred : Wood    D) Shard : Pottery
    Ans : A
9. Scythe ; Reaping
    A) Light ; Shining    B) Shears : Cutting    C) Saws : Gluing    D) Screws : Turning
    Ans : B
10. Dislike : Repulsion
    A) Dream : Sleep    B) Steal : Crime    C) Reputation : Behaviour    D) Intelligence : Wit
    Ans: D
Directions 11-12 : In each of the following questions, a sentence has been given in Active (or passive) voice.  Out of the four alternatives suggested select the one which best express the same sentence in Passive (or Active) Voice.
11. His pocket has been picked.
    A) They have his pocket picked
    B) Picking has been done to his pocket
    C) Picked has been his pocket
    D) Someone has picked his pocket.
    Ans : D
12. Someone gave her a bull dog.
    A) She was given a bull dog.
    B) a bull dog was given to her
    C) She has been given a bull dog
    D) She is being given a bull dog by someone
    Ans : B
Directions 13-15 : Pick out the most effective word from the given words  to fill in the blank to make the sentence meaningfully complete
13. He succeeded in getting possession..............his land after a long court case
     A) for    B) to    C) of    D) with    E) against
    Ans: C
14. Now a days Rajani is .............busy to take care of her health.
     A) very    B) too    C) so    D) extremely
     Ans: B
15. Had the police not reached there in time the bandits...............him
     A) did have killed    B) will have killed    C) would kill    D) would have killed
    Ans: D
Section2- apptitude 15 questions
The questions 1-5 are based on the following data

Six knights - P, Q, R, S, T and U - assemble for a long journey in two traveling parties. For security, each traveling party consists
of at least two knights. The two parties travel by separate routes, northern and 
southern. After one month, the routes of the northern and southern groups converge for a brief time and at that point the knights can, if they wish, rearrange their traveling
parties before continuing, again in two parties along separate northern and southern routes. Throughout the entire trip, the composition of traveling parties must be in accord with the following conditions
P and R are deadly enemies and, although they may meet briefly, can never travel together.    
P must travel in the same party with S
Q can't travel by the southern route
U can't change routes
1.  If one of the two parties of knights consists of P and U and two other knights and travels by the southern route, the other
     members of this party besides P and U must be
a) Q and S
b) Q and T
c) R and S
d) R and T
e) S and T
     Ans: e

2) If each of the two parties of knights consists of exactly three members, which of the following is not a possible
traveling party and route?
a) P,S,U by the northern route
b) P,S,T by the northern route
c) P,S,T by the southern route
d) P,S,U by the southern route
e) Q,R,T by the southern route

Ans: a
3) If one of the two parties of knights consists of U and two other knights and travels by the northern route, the other
members of this party >besides U must be
a) P and S
b) P and T
c) Q and R
d) Q and T
e) R and T

Ans: c
4) If each of the two parties of knights consists of exactly three members of different parties, and R travels by the
      northern route, then T must travel by the
      a) southern route with P and S
      b) southern route with Q and R
      c) southern route with R and U
      d) northern route with Q and R
      e) northern route with R and U

        Ans: a
5) If, when the two parties of knights encounter one another after a month, exactly one knight changes from one travelling         
    party   to the other travelling party, that knight must be
a) P        b) Q            c) R            d) S            e) T

Ans: e
6. X varies inversely as square of y.  Given that y = 2 for x = 1. The value of x for y = 6 will be equal to
    A) 3    B) 9    C) 1/3    D) 1/9
    Ans : D
7. If 10% of x = 20% of y, then x : y is equal to
    A) 1 : 2    B) 2 : 1    C) 5 : 1    D) 10 : 1
    Ans : B
8. A starts business with Rs.3500 and after 5 months, B joins with A as his partner.  After a year, the profit is divided in the         
    ratio 2 : 3. What is B's contribution in the Capital ?
    A) Rs. 7500    B) Rs. 8000    C) Rs. 8500    D) Rs. 9000
    Ans : D
9. Ronald and Elan are working on an assignment. Ronald takes 6 hours to type 32 pages on a computer, while Elan takes 5
    hours to type 40 pages. How much time will they take, working together on two different computers to type an assignment     
    of 110 pages ?
    A) 7 hours 30 minutes    B) 8 hours    C) 8 hours 15 minutes    D) 8 hours 25 minutes
    Ans : C
10. A and B can do a piece of work in 72 days; B and C can do it in 120 days; A dn C can do it in 4 days. Who among these
      will take the least time if put to do it alone?
    A) 80 days    B) 100 days    C) 120 days    D) 150 days
    Ans : C
11. A cistern can be filled by a tap in 4 hours while it can be emptied by another tap in 9 hours. If both taps are opened
      simultaneously, then after how much time will the cistern get filled  ?
    A) 4.5 hours    B)5 hours    C) 6.5 hours    D) 7.2 hours
    Ans : D
12. Pipe a can fill a tank in 5 hours, pipe B in 10 hours and pipe C in 30 hours.  If all the pipes are open, in how many hours will
      the tank completely ?
    A) 6 min. to empty    B) 6 min to fill    C) 9 min. to empty    D) 9 min. to fill
    Ans  : C
13. A thief steals a car at 2.30 p.m and drives it at 60 kmph. The theft is discovered at 3 p.m and the owner sets off in another 
      car at 75 kmph. When will be overtake the thief.
      A) 4.30 p.m    B) 4.45 p.m    C) 5 p.m    D) 5.15 p.m
      Ans : E
14. Two trains starting at the same time from two stations 200 km apart, and going in opposite directions cross each other at a
      distance of 110 km from one of the stations. What is the ratio of their speeds
     A) 9 : 20    B) 11 : 9    C) 11 : 20    D) None of these
     Ans : B
15. Two trains each 100 m long, moving in opposite directions, cross each other in 8 seconds. If one is moving twice as fast    
      the other, then the speed of the faster train is
     A) 30 km /hr    B) 45 km / hr    C) 60 km/hr    D) 75 km/hr
     Ans : C      

Section3-technical , 20 questions
Predict the output or error(s) for the following:
1. main()
    {
            char string[]="Hello World";
            display (string);
    }
    void display (char *string)
    {
            printf("%s",string);
    }
         Ans: Compiler Error : Type mismatch in redeclaration of function display

2. What are the values printed by the following program?

    #define dprint(expr) printf(#expr "=%d\n",expr)

    main()
    {
    int x=7;
    int y=3;
    dprintf(x/y);
    }
 
    a) #2 = 2         b) expr=2         c) x/y=2         d) none

    Ans: c
2)  Parameterization generally involves
a.       Data table
b.      Random number
c.       Environment
d.      Both A & B  
e.       Both A, B & C  

Ans: e

3)  The file which is used for recovering from the run time errors known as

                                                                A.  QRS   
                                                                    B.      TSR 
                                                                     C.      PNG
                                                                      D.      DAT
                          Ans: A
4)  Among the following recording modes, which method uses both the objects and mouse coordinates
                        a.       Normal
b.      Low level
c.       Analog
d.      All of the above  
Ans: b
5)  Where do you set the action iterations for a specified action?

a.       Action Settings
b.      Action Properties
c.       Action Run Properties  
d.      Action Call Properties   
Ans: d

6)  Where do you mark an action as reusable?

a.       Action Settings  
b.      Action Properties
c.       Action Run Properties
d.      Action Call Properties
             Ans: b
7)  After running a test that contains both input and output parameters, where can the results of an output parameter be found?

a.       Local Data Sheet
b.      Global Data Sheet  
c.       Run-time Data Table
d.      Design-time Data Table  
Ans: c

8)  If you have a Virtual Object Collection stored on your machine, and you don’t want to use it what you must do?

a.       Disable Virtual Objects in Test Settings
b.      Remove the Collection from your machine  
c.       Disable Virtual Objects in General Options
d.      Remove the Collections from the Resources list
                     Ans: c    
9. For a 25MHz processor , what is the time taken by the instruction which needs 3 clock cycles,
    (a)120 nano secs               (b)120 micro secs
    (c)75 nano secs                 (d)75 micro secs
        Ans: a


10. For 1 MB memory, the number of address lines required,

    ( a)11 (b)16 (c)20(d) 24

    Ans. (c)

11. Semaphore is used for

    (a) synchronization (b) dead-lock avoidance (c) box (d) none

    Ans. (a)
12. OLE is used in
    a) inter connection in unix
    b) interconnection in WINDOWS
    c) interconnection in WINDOWS NT
 d)None                                                                                                                                           
    Ans.  c
13. Preprocessor does not do which one of the following
    (a) macro                    (b) conditional compliclation
    (c) in type checking     (d) including load file
    Ans. (c)
14. Piggy backing is a technique for
    a) Flow control         b) Sequence         c) Acknowledgement         d) retransmission  

        Ans. (c)
15. In signed magnitude notation what is the minimum value that can be represented with 8 bits

        (a) -128         (b) -255         (c) -127         (d) 0
        Ans: a
17.  When an array is passed as parameter to a function, which of the following statement is correct

        a) The function can change values in the original array
        b) In C parameters are passed by value. The function cannot change the original value in the array
        c) It results in compilation error when the function tries to access the elements in the array
        d) Results in a run time error when the function tries to access the elements in the array

        Ans: a
18. The type of the controlling statement of a switch statement cannot be of the type

        a) int b) char c) short d)float e) none

        Ans : d
19. What is the value of the statement (3^6) + (a^a)?

        a) 3         b) 5         c) 6         d) a+18         e) None

        Ans : b
20. Consider the following program:

# include <stream.h>
class x {
public:
int a;
x();
};
x::x() { a=10; cout<<a; }
class b:public x {
public:
b();
};
b::b() { a=20; cout<<a; }
main ()
{ b temp;
}
what will be the output of this program?


a) 10        b) 20        c) 2010        d) 1020
Ans: b