Verified Jobs Live
Want real exam simulation? Take timed full-length mock tests with automatic submission, negative marking, and performance analytics.
Full Timed Mock Tests →
Interactive Practice Assessment

Important C Interview question test

The quiz below provides multiple choice answers for the questions for C Programming language, read the question carefully, and select the correct answer Take a simple C Test and find out your skill levels in C language.

Time Left
15:00
Question 1 of 15
TCS, Infosys, Wipro, Cognizant Medium

What is the problem with the below code?

#include int main() { printf( \"Declare x next\" ); int x;

retu 0; }

Question 2 of 15
TCS, Infosys, Wipro, Cognizant Medium

enum x {a=1,b,c,d,f=60,y} printf(\"%d\",y);

Question 3 of 15
TCS, Infosys, Wipro, Cognizant Medium

What is answer for the following code:

Struct x { int i; char c; } union y{ struct x a; double d; }; printf(\"%d\",sizeof(union y));

Question 4 of 15
TCS, Infosys, Wipro, Cognizant Medium

What is the output of the following programme? If we Enter Input as: 6? #include int main() { int c, n, fact = 1; printf(\"Enter a number to calculate it\'s factorial\ \"); scanf(\"%d\", &n); for (c = 1; c <= n; c++) fact = fact * c; printf(\"Factorial of %d = %d\ \", n, fact); retu 0; }

Question 5 of 15
TCS, Infosys, Wipro, Cognizant Medium

Which if statement is correct to find Leap Year! 1. if ( year%400 == 0) .......... 2. else if ( year%100 == 0) .......... 3. else if ( year%4 == 0 ) .......... 4. else ..........

Question 6 of 15
TCS, Infosys, Wipro, Cognizant Medium

What are the real data types in C language?

Question 7 of 15
TCS, Infosys, Wipro, Cognizant Medium

What is the output of the following program?

#include int main() { printf(\"%f\ \", log(46.0)); retu 0; }

Question 8 of 15
TCS, Infosys, Wipro, Cognizant Medium

To Round off a float value to an integer value, what is the correct method?

Question 9 of 15
TCS, Infosys, Wipro, Cognizant Medium
What should be the out of the below C programme?
#include

main()
{
int i=1;

while ( i++<=5)
prinf(\"%d \", i++);

}
Question 10 of 15
TCS, Infosys, Wipro, Cognizant Medium

Which statment is true for C Language?

Question 11 of 15
TCS, Infosys, Wipro, Cognizant Medium

What punctuation is used to indicate beginning and end of a code block?

Question 12 of 15
TCS, Infosys, Wipro, Cognizant Medium

The C Compiler generates which file?

Question 13 of 15
Easy

In ISO C17, given int values[3] = {4, 7, 9}; what is the value of values[0]?

Question 14 of 15
Easy

In ISO C17, which operator gives the remainder after integer division?

Question 15 of 15
Easy

In ISO C17, which header declares strlen?

Your practice test is scored according to standard competitive marking schemes.