When dealing with specialized programming considerations in C, what is the role of compiler flags?

When dealing with specialized programming considerations in C, what is the role of compiler flags?A . Compiler flags control optimization levelsB . Compiler flags are only used for debugging purposesC . Compiler flags have no impact on program executionD . Compiler flags determine the programming language versionView AnswerAnswer: A Explanation:...

March 20, 2025 No Comments READ MORE +

What is thread safety in the context of process and thread management?

What is thread safety in the context of process and thread management?A . Ensuring that a shared data structure can be accessed by multiple threads simultaneously without causing conflictsB . Ensuring that threads are terminated safelyC . Ensuring that only one process can run at a timeD . Ensuring the...

March 20, 2025 No Comments READ MORE +

What function is used to search for a substring within a string in C?

What function is used to search for a substring within a string in C?A . strpos()B . strstr()C . strfind()D . strchr()View AnswerAnswer: B Explanation: The strstr() function is used to search for a substring within a string in C.

March 19, 2025 No Comments READ MORE +

What is the purpose of the memset() function in C?

What is the purpose of the memset() function in C?A . To find the length of a stringB . To convert a string to uppercaseC . To fill a block of memory with a particular valueD . To compare two stringsView AnswerAnswer: C Explanation: The memset() function is used to...

March 17, 2025 No Comments READ MORE +

What is the range of values that can be represented by a signed int data type in C?

What is the range of values that can be represented by a signed int data type in C?A . -32768 to 32767B . -256 to 255C . -128 to 127D . -2147483648 to 2147483647View AnswerAnswer: D Explanation: The range of values for a signed int data type in C is...

March 13, 2025 No Comments READ MORE +

In the context of managing Unix and Windows processes, what is a PID?

In the context of managing Unix and Windows processes, what is a PID?A . Priority In DispatchB . Program IdentifierC . Process Identification NumberD . Process IndicatorView AnswerAnswer: C Explanation: PID stands for Process Identification Number in managing Unix and Windows processes.

March 11, 2025 No Comments READ MORE +

What is the purpose of the va_copy macro in <stdarg.h>?

What is the purpose of the va_copy macro in <stdarg.h>?A . To initialize the argument list pointer to the first variable parameter.B . To retrieve the next argument from the argument list.C . To copy a variable argument list.D . To end the processing of the variable argument list.View AnswerAnswer:...

March 10, 2025 No Comments READ MORE +

What function is used to copy a string in C?

What function is used to copy a string in C?A . strcpy()B . strcat()C . memcpy()D . strncpy()View AnswerAnswer: A Explanation: strcpy() is used to copy a string in C.

March 7, 2025 No Comments READ MORE +

What is the purpose of the "connect" function in socket programming?

What is the purpose of the "connect" function in socket programming?A . To accept incoming connectionsB . To close a connectionC . To send data to a serverD . To establish a connection with a remote hostView AnswerAnswer: D Explanation: The "connect" function in socket programming is used to establish...

March 5, 2025 No Comments READ MORE +

Which header file should be included in a C program to use variable parameter functions like va_start and va_arg?

Which header file should be included in a C program to use variable parameter functions like va_start and va_arg?A . <stdarg.h>B . <math.h>C . <stdio.h>D . <stdlib.h>View AnswerAnswer: A Explanation: The <stdarg.h> header file should be included to use variable parameter functions.

March 3, 2025 No Comments READ MORE +