Given a Prolog pair [H | T], which of the following statements are correct? Select all correct answers.

Given a Prolog pair [H | T], which of the following statements are correct? Select all correct answers.

Answers:

A. If H is not a list, then [H | T] is not list.

B. If T is not a list, then [H | T] is not list.

C. If T is a list, then [H | T] is list.

D. [H | T] is always a list, regardless whether H or T is a list.

Answer. B and C.