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

1. In C++ the compiler will infer the type intended for a variable from the context in which the variable occurs.

2. A C++ declaration introduces only an identifier's spelling and specifies its type.


1. False
Explanation: C++ requires every identifier to be declared prior to use. The type is specified in the declaration.
2. True
Explanation: A declaration introduces the spelling and type, whereas a definition is a declaration that also allocates memory.

Computer Science & Information Technology

You might also like to view...

The command to copy xxx and yyy files into zzz file is

a: copy xxx and yyy to zzz b: cp xxx + yyy to zzzls [A Z] c: cat xxx >> yyy >> zzz d: cat xxx yyy >> zzz e: cat xxx yyy << zzz

Computer Science & Information Technology

Which best defines residual risk?

A. risk that occurs as a result of new vulnerabilities B. the amount of risk remaining after countermeasures are implemented C. a vulnerability for which the risk has been reduced to zero D. the cost of implementing solutions to an assessed risk

Computer Science & Information Technology

When navigating a Slide Show, you can press [left arrow], [up arrow], or [P] to go to the ____.

A. next slide B. presentation view C. previous slide D. normal view

Computer Science & Information Technology

Input controls include all of the following except

A. check digits B. limit check C. spooling check D. missing data check

Computer Science & Information Technology