Structures in C++

Structures in C++

12th Grade

10 Qs

quiz-placeholder

Similar activities

C program

C program

12th Grade

10 Qs

CodeHS 5.7 2D Arrays

CodeHS 5.7 2D Arrays

9th - 12th Grade

10 Qs

Quiz on Programming in C

Quiz on Programming in C

12th Grade

15 Qs

Arrays and Lists

Arrays and Lists

6th - 12th Grade

10 Qs

Programming - Arrays

Programming - Arrays

2nd - 12th Grade

10 Qs

Warships (Lower 6th)

Warships (Lower 6th)

11th Grade - University

12 Qs

PGAS Memory Quiz

PGAS Memory Quiz

9th - 12th Grade

15 Qs

Javascript

Javascript

10th - 12th Grade

15 Qs

Structures in C++

Structures in C++

Assessment

Quiz

Computers

12th Grade

Hard

Created by

visrutha m

Used 93+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

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

Self Referential Structure

Nested Structure

Array of Structure

Structure of Structure

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which operator connects the structure name to its member name?

-

=

.

>>

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following cannot be a structure member?

another structure

array

Function

None

4.

MULTIPLE CHOICE QUESTION

45 sec • 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

45 sec • 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

45 sec • 1 pt

The period symbol used in 'struct' is represented by

7.

MULTIPLE CHOICE QUESTION

45 sec • 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?