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. What will be output for the following code?

#include <stdio.h>
int main(int argc, char *argv[])
{
    while (*argv  !=  NULL)
        printf(""%s
"", *(argv++));
    return 0;
}

./a.out
Segmentation fault/code crash
Depends on the platform
Depends on the compiler

2. Enumeration (or enum) is a ______ data type in C?

user defined
built-in
libary
None Of the above

3. What is C language?

C language is a structure/procedure oriented
C language is a middle level programming language
C language was invented for implementing UNIX operating system
All of the above

4. What is the output of this program?

int main()
{
char ch;
ch = 128;
printf("%d", ch);
return 0;
}

128
-128
Depends on compiler
None of the above

5. We should not read after a write to a file without an intervening call to fflush(), fseek() or rewind()

TRUE
FALSE
May Be
Can't Say

6. Which of the following operator has highest Precedence?

*
/
~
[]

7. Which of the following data type will throw an error on modulus operation(%)?

int
char
float
long

8. Identify the wrong statement?

# define is a preprocessor facility.
# define aids in modifying a constant value throughout the program.
# define uses a statement terminator.
# define improves the readability of the program.

9. All enum constants are?

Same in their scope
unique in their scope
contain dupicate value in their scope
None of the above

10. can we use typedef to give a name to your user defined data types as well?

TRUE
FALSE
Can be true or false
Can not say

Results