Search Header Logo

BUG BLITZ

Authored by Navya T

Computers

University

Used 2+ times

BUG BLITZ
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of the following code?

#include <stdio.h>

Int main() {

Char str[] = “Hello”;

Printf(“%s”, str + 1);

Return 0;

}

Hello

ello

H

He

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of the following code?

#include <stdio.h>

Int main() {

Int x = 0;

If (x == 0)

X = ((5, (x = 3)), x = 1);

Printf(“%d”, x);

Return 0;

}

5

3

1

Equal

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of this statement?

Printf(“%d”, (5, 10));

5

10

Error

None of the above

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does the following code output?

#include <stdio.h>

Int main() {

Char *str = “Hello”;

Printf(“%c”, *(str + 1));

Return 0;

}

H

e

l

o

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of the following code?

#include <stdio.h>

Int main() {

Int a = 5, b = 10;

Printf(“%d”, a++ + ++b);

Return 0;

}

15

16

14

11

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code?

#include <stdio.h>

Int main()

{

Int I = 0;

Do

{

I++;

If (I == 2)

Continue;

Printf(“In while loop “);

} while (I < 2);

Printf(“%d\n”, i);

}

In while loop 2

Ini while loop in while loop 2

In while loop 3

Infinite loop

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How many times I value is checked in the following C program?

#include <stdio.h>

Int main()

{

Int I = 0;

While (I < 3)

I++;

Printf(“In while loop\n”);

}

2

3

4

1

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?