C Prog Structure & Union

C Prog Structure & Union

Assessment

Quiz

Computers

University - Professional Development

Practice Problem

Hard

Created by

shafali dhall

Used 19+ times

FREE Resource

Student preview

quiz-placeholder

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Choose the incorrect statements.

Array stores data of only same type

Array can be a part of a structure

Array of structure is allowed

Structure stores data of the same or different type

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following comments about union are false?

Union is a structure whose members share the same storage area.

The compiler will keep track of what type of information is currently stored.

Only one of the members of union can assigned a value at a particular time.

Size allocated for union is the size of its member needing the maximum storage.

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following comments about the usage of structure is true?

Storage class can be assigned to an individual member.

Individual members can be initialized within a structure type declaration.

The scope of a member name is confined to the particular structure, within which it is defined.

None of the above

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

a-->b is syntactically correct if

a and b are structures

a is a structures and b is a pointer to a structure

a is a pointer to a structure in which b is a field

a is a pointer to a structure in which b is a field

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

typedef is a ............

fundamental Data Type

Derived data type

User defined data type

None of above

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which one is not user defined data type...

Funtion

Enumeration

structure

Union

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Structure members can be access using object and

  • (dot) operator

-> (arrow) operator

+ operator

All of Above

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers