C Programming Language

C Programming Language

C is a general-purpose, procedural computer programming language supporting structured programming, lexical variable scope, and recursion. While a static type system prevents unintended operations.



C Programming Mcq Test

Mycodeskills can help you to test your C programming coding skills. Mycodeskills have C programming multiple-choice questions for students, teachers, and professionals. C programming test questions and answers help freshers test their coding skills and get themselves ready for a professional interview.


 

Devika MV

Devika MV

Advanced 56%

Devika MV

Devika MV

Intermediate 34%

Devika MV

Devika MV

Beginner 40%

Shiba Shankar Rout

Shiba Shankar Rout

Beginner 50%

Sanele Mthembu

Sanele Mthembu

Advanced 56%

Sanele Mthembu

Sanele Mthembu

Intermediate 47%

Sanele Mthembu

Sanele Mthembu

Beginner 30%

Saranga Rasingolla

Saranga Rasingolla

Beginner 50%

S SINGH

S SINGH

Intermediate 27%

S SINGH

S SINGH 👍

Beginner 60%

Tevin Marindi

Tevin Marindi 👍

Advanced 84%

Tevin Marindi

Tevin Marindi 👍

Intermediate 60%

Tevin Marindi

Tevin Marindi 👍

Beginner 60%

Test Dummy

Test Dummy

Beginner 50%

Shubha Krishnamoorthy

Shubha Krishnamoorthy

Intermediate 0%

Shubha Krishnamoorthy

Shubha Krishnamoorthy

Beginner 0%

Ankush Gupta

Ankush Gupta

Intermediate 0%

Ankush Gupta

Ankush Gupta 👍

Beginner 80%

Jay Kumar

Jay Kumar 👍

Beginner 80%

Rana Khalil

Rana Khalil

Intermediate 0%

Sneha tiwari

Sneha tiwari

Beginner 20%

Mahammadarif Shaikh

Mahammadarif Shaikh

Intermediate 40%

Mahammadarif Shaikh

Mahammadarif Shaikh 👍

Beginner 60%

Ramadhan Ayieko

Ramadhan Ayieko

Beginner 40%


Questions

  1. Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?
  2. What are the types of linkages?
  3. Which of the following special symbol allowed in a variable name?
  4. Is there any difference between following declarations? 1 : extern int fun(); 2 : int fun();
  5. How would you round off a value from 1.66 to 2.0?
  6. By default a real number is treated as a
  7. Is the following statement a declaration or definition? extern int i;
  8. Identify which of the following are declarations (1) extern int x; (2) float square ( float x ) { ... } (3) double pow(double, double);
  9. Property which allows to produce different executable for different platforms in C is called?
  10. #include is called
  11. C preprocessors can have compiler specific features.
  12. C preprocessor is conceptually the first step during compilation.
  13. Preprocessor feature that supply line numbers and file names to compiler is called?
  14. #include are _______ files and #include “somefile.h” ________ files.
  15. A preprocessor is a program.
  16. Which of the following are C preprocessors?
  17. #include statement must be written.
  18. #pragma exit is primarily used for?
  19. The C-preprocessors are specified with _________symbol.
  20. The #include directive
  21. The preprocessor provides the ability for _______________.
  22. If #include is used with file name in angular brackets.
  23. Is it possible to run program without main() function?
  24. How many main() function we can have in our project?
  25. What is sizeof() in C?
  26. Is it true that a function may have several declaration, but only one definition.
  27. Is the following statement a declaration or definition extern int i;
  28. Which programming language is more faster among these?
  29. Which of the following is executed by Preprocess?
  30. Prototype of a function means _____
  31. O(N)(linear time) is better than O(1) constant time.
  32. For 'C' programming language
  33. What is the maximun number of dimensions an array in C may have?
  34. If x is an array of interger, then the value of &x[i] is same as
  35. If S is an array of 80 characters, then the value assigned to S through the statement scanf("%s",S) with input 12345 would be
  36. Size of the array need not be specified, when
  37. A one dimensional array A has indices 1....75.Each element is a string and takes up three memory words. The array is stored starting at location 1120 decimal. The starting address of A[49] is
  38. Minimum number of interchange needed to convert the array 89,19,40,14,17,12,10,2,5,7,11,6,9,70, into a heap with the maximum element at the root is
  39. Which of the following is an illegal array definition?
  40. Minimun number of comparison required to compute the largest and second largest element in array is
  41. The information about an array used in a program will be sorted in
  42. In which of the following cases, linked list implementation of sparse matrices consumes the same memory space as the conventional way of storing the entire array?
  43. The minmum number of inter changes needed to convert the array 89,19,40,17,12,10,2,5,7,11,6,9,70 into a heap with maximum element at the root is
  44. The const feature can be applied to
  45. Choose the correct statements
  46. If storage class is missing in the array definition, by default it will be taken to be
  47. Consider the array definition int num [10] = {3, 3, 3}; Pick the Correct answers
  48. While passing an array as an actual argument, the function call must have the array name
  49. The following program main( ) { static int a[ ] = { 7, 8, 9 }; printf( "%d", 2[ a ] + a[ 2 ] ); }
  50. The parameter passing mechanism for an array is
  51. Consider the following statement, 4 will be the value of int val[2][4] = { 1, 2, 3, 4, 5, 6, 7, 8};
  52. The maximum number of dimension an array can have in C is
  53. Under which of the following conditions, the size of an one-dimensional array need not be specified?
  54. If a two dimensional array is used as a formal parameter, then
  55. The following program main() { static char a[3][4] = {"abcd", "mnop", "fghi"}; putchar(**a); }
  56. C does no automatic array bound checking. This is
  57. If n has the value 3, then the statement a[++n] = n++; means?
  58. Choose the statement that best defines an array
  59. A set of names can be represented as a
  60. If arr is a two dimensional array of 10 rows and 12 columns, then arr (5) logically points to the
  61. While sorting a set of names, representing the names as an array of pointers is preferable to representing the names as a two dimensional array of characters because
  62. Choose the correct statements
  63. Pick the correct answers if x is an one dimensional array, then
  64. A file is preferable to an array of structures because
  65. Consider the following declaration, Choose the correct remark(s). char street[10] = "abcdefghi";
  66. What is your comment on the below C statement? signed int *p=(int*)malloc(sizeof(unsigned int));
  67. A variable name in C includes which special symbols?
  68. Which of the following header file can be used to define the NULL macro?
  69. To print a double value which format specifier can be used?
  70. Which statement can print \n on the screen?
  71. Which keyword can be used for coming out of recursion?
  72. The keyword ‘break’ cannot be simply used within:
  73. Which keyword is used to come out of a loop only for that iteration?
  74. Which loop is most suitable to first perform the operation and then test the condition?
  75. Example of iteration in C.
  76. Switch statement accepts.
  77. if (a == 1||b == 2){} can be written as:
  78. Which of the following is an invalid if-else statement?
  79. goto can be used to jump from main to within a function?
  80. What is the output of this C code? int main() { for (int i = 0;i < 1; i++) printf("In for loop\n"); }
  81. What is the output of this C code? void main() { int k = 0; for (k) printf("Hello"); }
  82. What is the output of this C code? void main() { int k = 0; for (k < 3; k++) printf("Hello"); }

Related Articles

Resources

Top 10 C Programming Interview Questions and Answers: Easiest Guide for Job Seekers (2023)
Top 10 C Programming Interview Questions and Answers: Easiest Guide for Job Seekers (2023)

Are you a job seeker preparing for a C programming interview? Congratulations on taking the first st...

The Impact of Artificial Intelligence on Society
The Impact of Artificial Intelligence on Society

Artificial intelligence (AI) is a rapidly developing technology that is having a major impact on so...

How to create images with AI?
How to create images with AI?

what is ai art and how to create? What is AI Art? Artificial Intelligence Art (AI art) is a form of ...

Humans in an Age of AI: What Should We Do?
Humans in an Age of AI: What Should We Do?

Artificial intelligence (AI), also known as machine learning, is the capacity of machines to learn a...

What is Scratch Programming Language?
What is Scratch Programming Language?

Scratch is an easy-to-use visual programming language that lets you create interactive stories and g...

The Ethics of Programming
The Ethics of Programming

Programming is a powerful tool that can be used for good or for bad. As programmers, we have a respo...

AdBlock Detected!

Our website is providing free tools to our users there is nothing
that you pay for. We only display advertisement ads. So Please
don’t use adBlocker, Keep visiting us thanks.