What is the output of the following code:

enum dog {spaniel, samoyed, terrier};
dog fido;
fido = dog (2);
cout << int (fido);
a) 2
b) samoyed
c) terrier
d) the code is not syntactically correct


a) 2

Computer Science & Information Technology

You might also like to view...

____________________ is a way of tampering with e-mail so that the message received appears to be from a known and trusted person,when it is actually sent by an impostor.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Which individual interferes with or disrupts systems to protest the operations, policies, or actions of an organization or government agency?

A. Cyberterrorist B. Packet monkey C. Phreaker D. Hacktivist

Computer Science & Information Technology

A fingerprint reader is which type of security technology?

A. Biometrics B. Smart card C. Barcode reader D. SSID

Computer Science & Information Technology

The _____ of a project that delivers an information technology-related system may be defined in terms of the system’s functionality, features, system outputs, performance, reliability, and maintainability.

a. time b. scope c. cost d. quality

Computer Science & Information Technology