Structures
1.

Which of the following accesses a variable in structure b ?

A.  

b->var;

B.  

b.var;

C.  

b-var;

D.  

b>var;

2.

Which of the following accesses a variable in structure *b ?

A.  

b->var;

B.  

b.var;

C.  

 b-var;

D.  

 b>var;

3.

Which of the following is a properly defined struct ?

A.  

struct {int a;}

B.  

struct a_struct {int a;}

C.  

struct a_struct int a;

D.  

struct a_struct {int a;};

4.

 Which properly declares a variable of struct foo ?

A.  

struct foo;

B.  

foo var;

C.  

foo;

D.  

int foo;

5.

The data elements in the structure are also known as what?

A.  

objects

B.  

members

C.  

data

D.  

objects & data

6.

What will be used when terminating a structure ?

A.  

:

B.  

}

C.  

;

D.  

;;

7.

What will happen when the structure is declared ?

A.  

it will not allocate any memory

B.  

it will allocate the memory

C.  

it will be declared and initialized

D.  

it will be declared

8.

The declaration of the structure is also called as ?

A.  

structure creator

B.  

structure signifier

C.  

structure specifier

D.  

structure creator & signifier

9.

Which of the following is a properly defined structure ?

A.  

struct {int a;}

B.  

struct a_struct {int a;}

C.  

struct a_struct int a;

D.  

struct a_struct {int a;};

10.

Which of the following is a properly defined structure ?

A.  

struct {int a;}

B.  

struct a_struct {int a;}

C.  

struct a_struct int a;

D.  

struct a_struct {int a;};