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

1. A structure can have a member whose type is another structure.
2. Consider these hierarchical structures.
```
struct Date
{
int year;
//members
};
struct Person
{
Date birthDay;
//other members
};
Person Bill;
```
3. No special syntax is necessary to define a function that uses a structure parameter.
(This is unlike using an array parameter.)
4. There is no aggregate initialization available for structure variables. You must declare structure variables then use assignment to initialize the members.
5. A class is a type similar to a structure type that normally has member functions as well as member variables.


1. True
2. False.
3. True
4. False
5. True

Computer Science & Information Technology

You might also like to view...

When one object is a specialized version of another object, there is a(n) ____________ between them.

a. 1:1 ratio b. “is a” relationship c. “has a” relationship d. shared interest

Computer Science & Information Technology

Local variables must be ________.

a. initialized when they're declared. b. initialized before their values are used in an expression. c. declared and initialized in two steps. d. declared at the top of the method’s body.

Computer Science & Information Technology

In JPA transaction processing, if the operations execute successfully, you call EntityTransaction method _______ to commit the changes to the da-tabase. If any operation fails, you call EntityTransaction method ________ to return the database to its state prior to the transaction.

a. apply, rollback b. commit, restore c. apply, restore d. commit, rollback

Computer Science & Information Technology

A typeface in which a small ornamentation appears at the tail end of eachcharacter is _____.

A. sans-serif B. serif C. monospace D. fantasy

Computer Science & Information Technology