Structures in C++

Structures in C++

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Widayanti Mzu

Used 7+ times

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Structure within a structure is called ......

Self Referential Structure

Nested Structure

Array of Structure

Structure of Structure

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which operator connects the structure name to its member name?

-

=

.

>>

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following cannot be a structure member?

another structure

array

Function

None

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is true for accessing an element of a structure

struct.element

structure_tag.element

structure_variable.element

structure_tag.structure_variable

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A structure pointing to the same structure is called .........

Self referential structure

Nested structure

Array of structures

None of the above

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

The period symbol used in 'struct' is represented by

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of this C code?

int main()

{

struct student

{

int no;

char name[20];

};

struct student s;

s.no = 8;

cout<< s.no;

}

Nothing

Compile error

8

Junk

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?