Search Header Logo

Debugging Contest

Authored by Vani Kumari

Computers

Used 5+ times

Debugging Contest
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

FILL IN THE BLANKS QUESTION

3 mins • 1 pt

 

What is the output of the following code : 

#include<stdio.h>

void main()

{

int a=5,b=10;

if(++a || ++b)

printf("%d  %d",a,b);

else

printf(“Hello”);

}




(a)  

2.

FILL IN THE BLANKS QUESTION

3 mins • 1 pt

What is the output of the following code : 

#include <stdio.h>

int main()

{

  int z = 8 = 9 = 7 ;

  printf("%d",z);

   return 0;

}




(a)  

3.

FILL IN THE BLANKS QUESTION

3 mins • 1 pt

What is the output of the following code : 

#include<stdio.h>

int main()

{

int num = 8;

printf ("%d %d", num << 1, num >> 1);

return 0;

}




(a)  

4.

FILL IN THE BLANKS QUESTION

3 mins • 1 pt

What is the output of the following code : 


#include<stdio.h>

int main()

{

int i = 5;

int a = ++i + ++i + ++i;

printf("%d",a);

return 0;

}




(a)  

5.

FILL IN THE BLANKS QUESTION

3 mins • 1 pt

How many times “GDC WOMEN” is printed?

#include<stdio.h>

int main()

{

int x;

for(x=-1; x<=10; x++)

{

if(x < 5)

continue;

else break;

printf(“GDC WOMEN”);

}

return 0;

}




(a)  

6.

FILL IN THE BLANKS QUESTION

3 mins • 1 pt

What is the output of the following code ??

#include<stdio.h>

int main()

{

int i = 1, j = 1;

for(--i && j++ ; i<10; i+=2)

{

printf("loop ");

}

return 0;

}




(a)  

7.

FILL IN THE BLANKS QUESTION

3 mins • 1 pt

What is the output of the following code ??


#include<stdio.h>

int x = -1;

int main(){

while(x++ == 1)

printf("loop");

return 0;

}




(a)  

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?