C Programming Quiz


Play this C quiz that will help you to excel in C certification exams, placements etc. This C programming quiz consist of 10 questions that you need to solve in 10 minutes. We’ve specially designed this quiz so that you can quickly acquaint to the pattern of questions you can be asked in placement drives, certification exams etc. This C programming test enables you to assess your knowledge of C programming.

Take the Free Practice Test



C MCQs

Practice C MCQ Questions, which will help you in understanding programming concepts and also helps you to prepare for placements, technical rounds, interviews, competitive exams etc.

C Quiz

Try Free C Quiz, to start a quiz you need to login first, after login you will get start quiz button and then by clicking on that you can start quiz. You will get 10 Minutes to answer all questions.

C Quiz

1. In Implicit type conversion, If an operand of type long double is present in the expression, then the corresponding operand will also be converted to?

double 
long double
int
float 

2. __________ is used to explicitly exit a thread.

exit
pthread_exit
exit_pthread
Both B and C

3. What is the maximun number of dimensions an array in C may have?

Two
eight
sixteen
Theoratically no limit. The only practical limits are memory size and compilers

4. Which of the following library functions returns the time in UTC (Greenwich mean time) format?

localtime()
gettime()
gmtime()
settime()

5. How will you print on the screen?

printf(" ");
printf(' ');
printf("\n");
printf("" ")

6. Which is true?

The symbolic constant EOF is defined in
The value is -1
The symbolic constant EOF is defined in & value is -1
Only value is -1

7. What is the output of this program?

#include <stdio.h>
# define loop while(true)
int main()
{
    loop;
    printf("c-letsfind");
    return 0;
}

program never ends
c-letsfind
Compilation error
None of the above

8. Choose the statement which is incorrect with respect to dynamic memory allocation.

Memory is allocated in a less structured area of memory, known as heap
Used for unpredictable memory requirements
Execution of the program is faster than that of static memory allocation
Allocated memory can be changed during the run time of the program based on the requirement of the program

9. Thread are often called as ?

heavyweight processes
lightweight processes
both a and b
None of the above

10. The C programming language provides a keyword called _________, which you can use to give a type a new name.

type
typedef
typed
tpdef

Results