All the given functions are used in different programming languages to read the input data from the keyboard
- input(): input() function can be used to read the data directly. it supports Python 3 whose return type is a string.
- scanf(): scanf() function can be used to read the input data in C language.
- cin: cin is a predefined variable that reads data from the keyboard with the extraction operator (
>>
).
- gets(): it is a predefined function in $C$ programming which is used to read strings and store the string into a string variable. gets() is terminated until a new line character is not encountered.
So option $(2)$ is correct.