C Programming Multiple Choice Questions and Answers for Freshers Free Download, C Language MCQ Questions and Answers, C Language Questions and Answers for Interview, C Programming Interview Questions, C Programming Questions and Answers for Interview.
01 to 50 C Language Programming MCQ (Click Here)
51. Which of the following are C preprocessors?
A) #define
B) #endif
C) #ifdef
D) All
Ans. All
52. What is the difference between float and double in C?
A) double can store just double value as compare to float value
B) double is an enhanced version of float and was introduced in C99
C) double is more precise than float and can store 64 bits
D) both are used for the same purpose
Ans. double is more precise than float and can store 64 bits
53. Find an integer constant?
A) 34
B) “125”
C) 3.145
D) All
Ans. 34
54. The C-preprocessors are specified with _________ symbol?
A) $
B) ” ”
C) #
D) &
Ans. #
55. Which is the correct format specifier for double type value in C?
A) %d
B) %lf
C) %f
D) %LF
Ans. %lf
56. Find a Floating Point constant?
A) 12e34
B) 125.34857
C) 12.3E5
D) All
Ans. All
57. How is search done in #include and #include “somelibrary.h” according to C standard?
A) When former is used, current directory is searched and when latter is used, standard directory is searched
B) For both, search for ‘somelibrary’ is done in implementation-defined places
C) When former is used, search is done in implementation defined manner and when latter is used, current directory is searched
D) When former is used, standard directory is searched and when latter is used, current directory is searched
Ans. When former is used, standard directory is searched and when latter is used, current directory is searched
58. The short type represents ___?
A) int
B) unsigned int
C) float
D) short int
Ans. unsigned int
59. A Variable of a particular type can hold only a constant of the same type. Choose right answer?
A) t depends on the place the variable is declared.
B) unsigned int
C) TRUE
D) FALSE
Ans. TRUE
60. How many number of pointer (*) does C have against a pointer variable declaration?
A) 255
B) 7
C) 127
D) No limits
Ans. No limits
61. How many byte(s) does a short type take in C?
A) 2
B) 3
C) 4
D) 5
Ans. 2
62. Choose a right statement?
A) int myage = 10;
int my age = 10;
B) int myage = 10;
int my,age = 10;
C) int myage = 10;
int my_age = 10;
D) All
Ans. int myage = 10;
int my_age = 10;
63. Which of the following is not possible statically in C language?
A) Rectangular Array
B) Jagged Array
C) Cuboidal Array
D) Multidimensional Array
Ans. Jagged Array
64. What is the correct syntax to declare a variable in C?
A) data_type as variable_name;
B) data_type variable_name;
C) variable_name data_type;
D) Mvariable_name as data_type;
Ans. data_type variable_name;
65. Number of Keywords present in C Language are?
A) 30
B) 31
C) 32
D) 33
Ans. 31
66. Which of the following return-type cannot be used for a function in C?
A) void
B) char *
C) struct
D) All
Ans. All
67. How many types of qualifiers are there in C language?
A) Colon :
B) Period . (dot symbol)
C) Semicolon ;
D) All
Ans. Semicolon ;
68. The standard header _______ is used for variable list arguments (…) in C.
A) <stdarg.h>
B) <math.h>
C) <stdlib.h>
D) <stdio.h >
Ans. <stdarg.h>
69. Which is/are the size qualifier(s) in C language?
A) short
B) long
C) double
D) Both A. and B
Ans. Both A. and B
70. Choose a correct statement?
A) Console shows the output of a C Program if it is text output.
B) C Editor allows you to type C Programs. It is just like a Notepad with extra options.
C) C Compiler converts your C program into machine readable language.
D) All
Ans. All
71. When a C program is started, O.S environment is responsible for opening file and providing pointer for that file?
A) Standard error
B) Standard output
C) Standard input
D) All
Ans. All
72. Which is/are the sign qualifier(s) in C language?
A) long
B) signed
C) unsigned
D) Both A. and B
Ans. Both A. and B
73. Identify wrong C Keywords below.
A) char, extern, intern, return
B) case, enum, register, typedef
C) break, else, long, switch
D) auto, double, int, struct
Ans. char, extern, intern, return
74. In C language, FILE is of which data type?
A) struct
B) char *
C) int
D) All
Ans. struct
75. Which is/are the type qualifier(s) in C language?
A) static
B) const
C) volatile
D) Both A. and B.
Ans. Both A. and B.
76. Identify wrong C Keywords below.
A) signed, void, default, goto
B) sizeof, volatile, do, if
C) union, const, var, float
D) short, unsigned, continue, for
Ans. union, const, var, float
77. What is the sizeof(char) in a 32-bit C compiler?
A) 1 bit
B) 2 bits
C) 1 Byte
D) 2 Bytes
Ans. 1 Byte
78. Which is correct with respect to the size of the data types in C?
A) int < chat > float
B) int < char < float
C) chor < int < float
D) char < int < float
Ans. char < int < float
79. Identify wrong C Keywords below.
A) struct, construct, signed, unsigned
B) static, while, break, goto
C) short, long, if, else
D) return, enum, struct, do
Ans. struct, construct, signed, unsigned
80. Which of the following is not an operator in C?
A) sizeof()
B) ~
C) ,
D) All
Ans. All
81. Which operator is used to find the remainder of two numbers in C?
A) //
B)
C) %
D) All
Ans. %
82. ind a correct C Keyword below.
A) breaker
B) shorter
C) default
D) go to
Ans. default
83. scanf() is a predefined function in______header file?
A) stdlib. h
B) ctype. h
C) stdarg. h
D) stdio. h
Ans. stdio. h
84. sWhich of the following is not an arithmetic expression?
A) x != 10
B) x %= 10
C) x /= 10
D) x = 10
Ans. x != 10
85. Find a correct C Keyword below.
A) constant
B) permanent
C) case
D) work
Ans. case
86. Which C keyword is used to extend the visibility of variables?
A) extern
B) auto
C) extends
D) extend
Ans. extern
87. Find a correct C Keyword.
A) Long
B) Int
C) Float
D) double
Ans. double
88. What is the name of “&” operator in C?
A) And
B) Address of
C) Ampersand
D) All
Ans. Address of
89. Types of Integers are?
A) int
B) long
C) short
D) All
Ans. All
90. Which of the following are valid decision-making statements in C?
A) nested if
B) if
C) switch
D) All
Ans. All
91. Types of Real numbers in C are?
A) long double
B) double
C) float
D) All
Ans. All
92. Decision making in the C programming language is ___.
A) Executing a set of statements based on some condition
B) Repeating the same statement multiple times
C) Providing a name of the block of code
D) All
Ans. Executing a set of statements based on some condition
93. signed and unsigned representation is available for?
A) float, double, long double
B) short, int, long, char
C) A & B
D) All
Ans. A & B
94. Which of the following is a true value in C programming?
A) ! NULL
B) 1
C) “includehelp”
D) All
Ans. All
95. Size of a Turbo C C++ compiler is?
A) 16 bit
B) 32 bit
C) 64 bit
D) All
Ans. 16 bit
96. Ternary operator in C programming is ___.
A) ? :
B) ? ; ?
C) if-else-if
D) All
Ans. ? :
97. Size of a GCC or Visual Studio C Compiler is?
A) 16 bit
B) 32 bit
C) 64 bit
D) All
Ans. 32 bit
98. What is the correct syntax of if statement in C program?
A) if(condition) :
B) If { [condition] }
C) Both A & B
D) if(condition){
}
Ans. if(condition){
}
99. Sizes of short, int and long in a Turbo C C++ compiler in bytes are?
A) 2, 4, 4
B) 2, 2, 4
C) 8, 8, 16
D) 4, 8, 16
Ans. 2, 2, 4
100. The if statement is a conditional statement?
A) False
B) True
Ans. True
01 to 50 C Language Programming MCQ (Click Here)
Rate this post
20.59368478.96288