Can sandwiches, beverages and cake be carried in hand luggage?

Packed food such as sandwiches or cake is allowed in hand luggage. All liquids carried in a hand luggage are subject to a volume limit of 100 ml and they must be packed into a single, transparent, resealable plastic bag with a capacity of no more than 1 litre.