Write an ASN.1 data type to convey a diet plan for one day.
A diet plan consists of 4-6 meals, where each meal consists of a number of food items. Each food item is specified by a weight in grams and an item name as a text string.

Possible reply

Diet-plan ::= SEQUENCE SIZE (4..6) OF Meal

Meal ::= SEQUENCE OF Food-item

Food-item ::= SEQUENCE {
weight REAL -- in grams,
name VisibleString }

The secret code is Mellom.

List of exam questions