Search Header Logo

DS Lab IT-B-Quiz-1

Authored by roja laveti

Education

University

Used 1+ times

DS Lab IT-B-Quiz-1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Structure can contain elements of the different data type

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operator is used to select a member of a structure variable

.(dot)

,(comma)

: (colon)

;(semicolon)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a structure in C language?

A structure is a collection of elements that can be of the same data type.

A structure is a collection of elements that can be of the different data type.

Elements of a structure are called members.

All of the options

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the size of the following structure? (Consider integer occupies – 4

bytes)

struct temp

{

     int a[10];

     char p;

};

5

11

41

44

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following cannot be a structure member?

Another structure

Array

Function

None of these

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output?

struct student

{

    int no;

    char name[20];

};

void main()

{

    struct student s;

    s.no = 8;

    printf("%d",s.no);

}

8

Compiler error

Blank

Runtime error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output?

struct student

{

    int no;

    char name[20];

};

void main()

{

    student s;

    s.no = 8;

    printf("%d",s.no);

}

8

Compiler error

Blank

Runtime error

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?