What is the basic element of a language? A. Literal B. Variable C. Random variable D. All of the mentioned

Literal
Variable
Random variable
All of the mentioned

The correct answer is: A. Literal

A literal is a value that is used directly in a program. It can be a number, a string, or a boolean value. Literals are the basic building blocks of all programming languages.

A variable is a named location in memory that can store a value. Variables are used to store data that can be changed during the execution of a program.

A random variable is a variable whose value is determined by chance. Random variables are used to model situations where the outcome is uncertain.

All of the mentioned are basic elements of a language, but literals are the most fundamental.