Welcome to Your Quiz: Aptitude Test C Programming Basics Level 2

Name Email
1. How many times newtum.com is printed?
void main()
{
while(1);
{
printf("newtum.com");
}
}


2. What is output of below program?
void main()
{
int i;
for(i=0; i<5; ++i++)
{
printf("Hello");
}
}


3. What is output of below program?
void main()
{
int i,j;
for(i = 0,j=0;i<5;i++)
{
printf("%d%d--",i,j);
}
}


4. What is the output of below program?
void main()
{
for( ;  ; )
for( ;  ; )
printf("Hello..");
}


5. What is the output of below program?
void main()
{
int i;
for(i = 0,i<5,i++)
{
printf("Hello");
}
}


6. What is output of below program?
void main()
{
int i;
for(i=0; i<5; i++);
{
printf("newtum.com");
}
}


7. How many loops are there in C


8. How many times newtum.com is printed?
void main()
{
int a = 0;
while(a++ < 5)
printf("newtum.com");
}


9. How many times newtum.com is printed?
void main()
{
int a = 0;
while(a++)
printf("newtum.com");
}


10. How many times newtum.com is printed?
void main()
{
int a = 0;
while(a++);
{
printf("newtum.com");
}
}


11. How many times newtum.com is printed?
void main()
{
int a = 0;
while(a)
printf("newtum.com");
}


12. How may times newtum.com is printed?
void main()
{
int a = 0;
while(++a++);
{
printf("newtum.com");
}
}


13. What is output of below program?
void main()
{
int i,j,k,count;
count=0;
for(i=0;i<5;i++)
{
for(j=0;j<5;j++)
{
count++;
}
}
printf("%d",count);
}


14. What is output of below program?
void main()
{
for(; ;);
for(; ;);
printf("Hello");
}


15. What is printed on console?
void main()
{
int a = 0;
while(a)
{
printf("newtum.com");
}
}


16. How many times newtum.com is printed?
void main()
{
while(1)
{
printf("newtum.com");
}
}


17. How many times newtum.com is printed on console?
void main()
{
int a = 0;
while(a++)
{
printf("newtum.com");
}
}


18. What is output of below program?
void main()
{
int i,j,count;
count=0;
for(i=0; i<5; i++);
{
for(j=0;j<5;j++);
{
count++;
}
}
printf("%d",count);
}


19. How many times newtum.com is printed?
void main()
{
int a = 0;
while(++a)
{
printf("newtum.com");
}
}


20. How many times newtum.com is printed on console?
void main()
{
int a = 0;
while(a==0)
{
printf("newtum.com");
}
}



Thank You for Submitting your response for Quiz

Aptitude Test C Programming Basics Level 2

Please click on View Result Button to see the Result.



(Visited 514 times, 1 visits today)