Which API is commonly used for thread management in Windows systems?

Which API is commonly used for thread management in Windows systems?A . Windows APIB . WinAPIC . C11 threading modelD . POSIX threadsView AnswerAnswer: B Explanation: WinAPI is commonly used for thread management in Windows systems.

February 23, 2025 No Comments READ MORE +

What is the purpose of the C11 threading model in programming?

What is the purpose of the C11 threading model in programming?A . Providing backward compatibility with older threading modelsB . Introducing new complex threading structuresC . Focusing on single-threaded programming onlyD . Simplifying the creation and management of threads in C programmingView AnswerAnswer: D Explanation: The C11 threading model aims...

February 23, 2025 No Comments READ MORE +

Which macro should be used to pass the variable argument list from one function to another in a C program?

Which macro should be used to pass the variable argument list from one function to another in a C program?A . va_copyB . va_startC . va_argD . va_endView AnswerAnswer: A Explanation: The va_copy macro is used to pass the variable argument list from one function to another in a C...

February 20, 2025 No Comments READ MORE +

What is the purpose of the function socket() in network socket programming?

What is the purpose of the function socket() in network socket programming?A . To establish a connection with a remote serverB . To create a new socketC . To send data over the networkD . To bind a socket to a specific network addressView AnswerAnswer: B Explanation: The function socket()...

February 14, 2025 No Comments READ MORE +

What does the term "context switch" refer to in the context of process and thread management?

What does the term "context switch" refer to in the context of process and thread management?A . The process of recompiling code during runtimeB . The process of switching between different threads in a multi-threaded programC . The process of switching between different processes in a multiprocessing systemD . The...

February 13, 2025 No Comments READ MORE +

Which function is used to dynamically allocate memory in C?

Which function is used to dynamically allocate memory in C?A . calloc()B . free()C . realloc()D . malloc()View AnswerAnswer: D Explanation: malloc() is used to dynamically allocate memory in C.

February 12, 2025 No Comments READ MORE +

What is the key milestone in the historical evolution of C that standardized the language and introduced new features such as function prototypes and standard libraries?

What is the key milestone in the historical evolution of C that standardized the language and introduced new features such as function prototypes and standard libraries?A . C95B . C89C . C99D . C11E . ANSI CView AnswerAnswer: E Explanation: ANSI C (American National Standards Institute C) was a key...

February 8, 2025 No Comments READ MORE +

Which function is used to concatenate two strings in C?

Which function is used to concatenate two strings in C?A . strncat()B . strcpy()C . strcat()D . sprintf()View AnswerAnswer: C Explanation: strcat() is used to concatenate two strings in C.

February 8, 2025 No Comments READ MORE +

What does the strlen() function return in C?

What does the strlen() function return in C?A . The number of characters in the stringB . The index of the first occurrence of a characterC . The size of the arrayD . The length of the string including null terminatorView AnswerAnswer: D Explanation: The strlen() function returns the length...

February 7, 2025 No Comments READ MORE +

How does the use of optimized algorithms contribute to specialized programming considerations?

How does the use of optimized algorithms contribute to specialized programming considerations?A . Decreases code readabilityB . Increases code maintainabilityC . Improves code performanceD . Reduces the need for testingView AnswerAnswer: C Explanation: The use of optimized algorithms in specialized programming considerations can improve code performance by reducing execution time...

February 5, 2025 No Comments READ MORE +