Programming in C structures and files

Programming in C structures and files

University

10 Qs

quiz-placeholder

Similar activities

MẠCH ỔN ÁP

MẠCH ỔN ÁP

University

12 Qs

NDS D.Civ Obrigações 01 - Noções Iniciais

NDS D.Civ Obrigações 01 - Noções Iniciais

University

12 Qs

electronica basica 1

electronica basica 1

University - Professional Development

10 Qs

QUIZ 1 - RIZAL

QUIZ 1 - RIZAL

KG - Professional Development

10 Qs

Do You Really Know ME?

Do You Really Know ME?

5th Grade - University

13 Qs

THỂ LOẠI TRUYỆN NGỤ NGÔN_ NHÓM 9

THỂ LOẠI TRUYỆN NGỤ NGÔN_ NHÓM 9

University

10 Qs

桥梁 第七课 第一次转机

桥梁 第七课 第一次转机

University

15 Qs

TEORIA COGNITIVA PIAGET

TEORIA COGNITIVA PIAGET

University

12 Qs

Programming in C structures and files

Programming in C structures and files

Assessment

Quiz

Other

University

Practice Problem

Medium

Created by

Suresh Mamidisetti

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following are themselves a collection of different data types?

Strings

Structures

Unions

Both Structures & Unions

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Union differs from structure in the following way

All members are used at a time

Only one member can be used at a time

Union cannot have more members

Union initialized all members as structure

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator connects the structure name to its member name?

*

.

&

+

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The size of the following union, where an int occupies 4 bytes of memory is

union demo

{

float x;

int y;

char z[10];

};

8 bytes

4 bytes

10 bytes

18 bytes

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a properly defined struct?

struct {int a;}

struct a_struct {int a;}

struct a_struct int a;

struct a_struct {int a;};

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which properly declares a variable of struct foo?

struct foo;

struct foo var;

foo;

int foo;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The first and second arguments of fopen() are

A character string containing the name of the file & the second argument is the mode

A character string containing the name of the user & the second argument is the mode

A character string containing file pointer & the second argument is the mode

None of the mentioned

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?