Please login

Prime

Prepinsta Prime

Video courses for company/skill based Preparation

(Check all courses)
Get Prime Video
Prime

Prepinsta Prime

Purchase mock tests for company/skill building

(Check all mocks)
Get Prime mock

Zoho Loops Quiz 1

Question 1

Time: 00:00:00
What will be the output of following program ?

#include <stdio.h>
int main()
{
int i=1;
while(i<=10 && 1++)
printf("Hello");
}

Error: lvalue required as increment operand

Error: lvalue required as increment operand

HelloHello ... 10 times

HelloHello ... 10 times

HelloHello ... 11 times

HelloHello ... 11 times

Hello

Hello

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 2

Time: 00:00:00
What will be the output of following program ?

#include <stdio.h>
#define TRUE 1
int main()
{
int loop=10;
while(printf("Hello ") && loop--);
}

Hello

Hello

Hello Hello Hello Hello ... (Infinite times)

Hello Hello Hello Hello ... (Infinite times)

Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello (10 times)

Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello (10 times)

Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello (11 times)

Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello (11 times)

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 3

Time: 00:00:00
What will be the output of following program ?
#include <stdio.h>
void main()
{
int cnt=1;
while(cnt>=10)
{
printf("%d,",cnt);
cnt+=1;
}
printf("\nAfter loop cnt=%d",cnt);
printf("\n");
}

After loop cnt=1

After loop cnt=1

After loop cnt= 4

After loop cnt= 4

After loop cnt= 3

After loop cnt= 3

After loop cnt=2

After loop cnt=2

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 4

Time: 00:00:00
#include <stdio.h>
void main()
{
int cnt=1;
do
{
printf("%d,",cnt);
cnt+=1;
}while(cnt>=10);
printf("\nAfter loop cnt=%d",cnt);
printf("\n");
}

After loop cnt=1

After loop cnt=1

After loop cnt=2

After loop cnt=2

1, After loop cnt=2

1, After loop cnt=2

None of the these

None of the these

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 5

Time: 00:00:00
What will be the output of following program
#include <stdio.h>
void main()
{
int i,j,charVal='A';

for(i=5;i>=1;i--)
{
for(j=0;j< i;j++)
printf("%c ",(charVal+j));
printf("\n");
}
}

A B C D A B C D A B C D A B C D

A B C D A B C D A B C D A B C D

A B C D E A B C D E A B C D E A B C D E

A B C D E A B C D E A B C D E A B C D E

A B C D E A B C D A B C A B A

A B C D E A B C D A B C A B A

Cant say

Cant say

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 6

Time: 00:00:00
What will be the output of following program ?
#include <stdio.h>
void main()
{
int tally;
for(tally=0;tally<10;++tally)
{
printf("#");
if(tally>6)
continue;
printf("%d",tally);
}
}

#0#1#2#3#4#5#6###

#0#1#2#3#4#5#6###

#0#1#2#3#4#5#6#7#8#9#10

#0#1#2#3#4#5#6#7#8#9#10

#0#1#2#3#4#5#

#0#1#2#3#4#5#

None of these

None of these

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 7

Time: 00:00:00
What will be the output of following program ?

#include < stdio.h >
int main()
{
int tally=0;
for(;;)
{
if(tally==10)
break;
printf("%d ",++tally);
}
return 0;
}

0 1 2 3 4 5 6 7 8 9 10

0 1 2 3 4 5 6 7 8 9 10

0 1 2 3 ... infinite times

0 1 2 3 ... infinite times

1 2 3 4 5 6 7 8 9 10

1 2 3 4 5 6 7 8 9 10

1 2 3 4 5 6 7 8 9

1 2 3 4 5 6 7 8 9

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 8

Time: 00:00:00
What will be the output of following progra

#include <stdio.h>
void main()
{
int i=1;
while (i<=5)
{
printf("%d",i);
if (i==5)
goto print;
i++;
}
}
fun()
{
print:
printf("includehelp.com");
}

1234includehelp.com

1234includehelp.com

12343includehelp.com

12343includehelp.com

Error

Error

None of these

None of these

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 9

Time: 00:00:00
What will be the output of following program ?

#include <stdio.h>
void main()
{
char cnt=0;
for(;cnt++;printf("%d",cnt)) ;
printf("%d",cnt);
}

0 1 2 ... 127

0 1 2 ... 127

1

1

None of these

None of these

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 10

Time: 00:00:00
What will be the output of following program ?

#include < stdio.h >
void main()
{ unsigned char var=0;
for(var=0;var<=255;var++)
{
printf("%d ",var);
}
}

0 1 2 ... 255

0 1 2 ... 255

1

1

None of these

None of these

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

["0","40","60","80","100"]
["Need more practice!","Keep trying!","Not bad!","Good work!","Perfect!"]

Completed

0/0

Accuracy

0%

Personalized Analytics only Availble for Logged in users

Analytics below shows your performance in various Mocks on PrepInsta

Your average Analytics for this Quiz

Rank

-

Percentile

0%