1. The cooker is used to cook rice.

2. The machine is used to make books.
3. The knife is used to cut vegetables.
4. The table is used for the kids to study.
5. The room is used for him to study.
6. The car is used for his wife to go shopping.
--------------------------
Are the sentences all grammatical? check them, please.

1. OK

2. I'd say what the machine does in particular -- "The machine is used to bind books."
3. OK
4. OK
5. OK, sort of
6. I'd say, "His wife uses the car to go shopping" or "His wife uses the car when she goes shopping."