Suppose the following code is embedded in an otherwise correct and complete program. Answer below the question about what version of f()is called in g().

```
void f(); //in the global namespace
namespace A
{
void f();
void g()
{
f(); //Does this call A::f()? Or the global f()?
}
}
```

a) The call is to the global f();
b) The call is to the namespace A version of f(), i.e., A::f();
c) There is an error. There is a conflict between the namespace f() and the global f(), so there is no call made at all
d) There are other errors that prevent the code from running



b) The call is to the namespace A version of f(), i.e., A::f();

b) A use of a name refer to a global version if not masked by a name defined in the name space prior to the use. c) There is no conflict between global namespace names and names defined in other namespaces.

Computer Science & Information Technology

You might also like to view...

When presentations contain two or more styles or themes, a different ________ can be used for each theme

A) theme layout B) slide layout C) slide master D) master style

Computer Science & Information Technology

You can override the formats applied to the presentation by the slide master by making changes directly to individual slides.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Match each of the following form factors with their correct description.

A. Less expensive than a comparable laptop; can be powerful; often used by businesses B. Internal system components and electronics are integrated into the back of the monitor, so the computer is one unit C. Light and portable; most can run using battery power for hours; can feature standard to high-end performance; uses built-in webcam and solid state drives; weighs from 2 to 8 pounds D. Smaller and cheaper than laptop computers; can be laid flat, and most fit easily into a purse or backpack; useful for online applications E. Small and portable; includes phone and text capabilities often through cellular service and Wi-Fi connections

Computer Science & Information Technology

Virtual reality simulations require special interface devices that transmit the sights, sounds, and sensations of the simulated world to the user.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology