DS Lab IT-B-Quiz-1

DS Lab IT-B-Quiz-1

University

10 Qs

quiz-placeholder

Similar activities

Basics of 'C' Language_Assessment1

Basics of 'C' Language_Assessment1

University

15 Qs

Python Basics

Python Basics

University

10 Qs

invicta

invicta

University

15 Qs

pointers quizz

pointers quizz

University

15 Qs

Conocimientos sobre Arduino y Sensores

Conocimientos sobre Arduino y Sensores

8th Grade - University

11 Qs

GFG Final Quiz

GFG Final Quiz

University

10 Qs

Round 2

Round 2

University

15 Qs

MODULO 2_2 Cuestionario_1

MODULO 2_2 Cuestionario_1

University

15 Qs

DS Lab IT-B-Quiz-1

DS Lab IT-B-Quiz-1

Assessment

Quiz

Education

University

Medium

Created by

roja laveti

Used 1+ times

FREE Resource

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

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?