Strcpy(), strcat(), strncpy(), sprint(), gets() are all included in
-
Safe APIs
-
Banned APIs
-
String APIs
-
CAPIs
Functions like strcpy, strcat, strncpy, sprintf (mistyped in prompt as sprint), and gets do not perform safe bounds-checking on buffers, making them highly vulnerable to buffer overflow attacks. Consequently, security standards and modern development guidelines classify them as banned APIs.
To answer this question, you need to understand the purpose and characteristics of these functions.
Option A) Safe APIs - This option is incorrect because some of the functions mentioned, such as gets(), are considered unsafe and can lead to buffer overflow vulnerabilities.
Option B) Banned APIs - This option is correct because some of the functions mentioned, such as gets(), are considered unsafe and have been banned in modern programming practices due to security concerns.
Option C) String APIs - This option is incorrect because while some of the functions mentioned, such as strcpy(), strcat(), and strncpy(), are related to manipulating strings, not all of them fall into this category.
Option D) CAPIs - This option is incorrect because the term "CAPIs" is not commonly used to refer to these functions.
The correct answer is B) Banned APIs. This option is correct because some of the functions mentioned, such as gets(), have been banned in modern programming practices due to security vulnerabilities.