C++ Institute CLP-12-01 CLP-12-01 – C Certified Professional Programmer Certification Online Training
C++ Institute CLP-12-01 Online Training
The questions for CLP-12-01 were last updated at Jul 05,2025.
- Exam Code: CLP-12-01
- Exam Name: CLP-12-01 – C Certified Professional Programmer Certification
- Certification Provider: C++ Institute
- Latest update: Jul 05,2025
What does the function accept () do in network socket programming?
- A . Listens for incoming connections
- B . Establishes a connection with a server
- C . Sends data to a client
- D . Accepts a connection request and creates a new socket for communication
Which system call is used to close a file descriptor in C programming?
- A . lseek()
- B . stat()
- C . dprintf()
- D . close()
Which macro should be used to pass the variable argument list from one function to another in a C program?
- A . va_copy
- B . va_start
- C . va_arg
- D . va_end
What does the strlen() function return in C?
- A . The number of characters in the string
- B . The index of the first occurrence of a character
- C . The size of the array
- D . The length of the string including null terminator
What will be the output of the following code snippet in C: int num = 5; printf("%d", num++);
- A . 4
- B . 6
- C . 5
- D . Undefined
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 . C95
- B . C89
- C . C99
- D . C11
- E . ANSI C
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.
Which function is used to dynamically allocate memory in C?
- A . calloc()
- B . free()
- C . realloc()
- D . malloc()
Which system call is used to listen for incoming connections on a socket?
- A . accept()
- B . receive()
- C . connect()
- D . listen()
What is the data type used in C to represent characters?
- A . char
- B . byte
- C . string
- D . int