C Technical Test – 3 | C Language Online Test

This “C Technical Test” provides 10 questions to answer and test your C language technical skills.


1. What is the Output of following Code?
#include<stdio.h>
void main()
{
signed char ch = 256 + 65 ;
printf(“%c”,ch);
}

 
 
 
 

2. What is character system?

 
 
 
 

3. What is the Output of following Code?
#include<stdio.h>
main()
{
int a=3,b=5;
printf(“%d,%d “, ++a – ++b, –a + –b);
}

 
 
 
 

4. Which of the following is not compound assignment operator?

 
 
 
 

5. What will be the output of following code?
#include<stdio.h>
main()
{
int s=0;
while(s++ <= 10)
{
if(s<4 && s<8)
continue;
printf(“s : %d\n”,s);
}
}

 
 
 
 

6. Which of the following statements is correct in case of for loop?

 
 
 
 

7. Find the output of following program
void main()
{
abc(3);
}
void abc(int a)
{
printf(“%d”,a);
if(a)
{
abc(a-1);
}
printf(“%d”,a);
}

 
 
 
 

8. Usually, the loop’s working is faster than recursion

 
 
 
 

9. What is the output of following C program?
#include<stdio.h>
main ()
{
int k=1 , sum=0, i;
for ( i = 0; i < 4 ; i++ )
{
k = i + ++k;
sum = sum+k ;
}
printf(“%d\n”,sum);
}

 
 
 
 

10. Which of the following can also be used in place of num[i]?

 
 
 
 

Question 1 of 10

 

 

 

Share this