Search Header Logo

PREDICT THE OUTPUT

Authored by LE210 Sankara Nayaki K

Computers

University

Used 40+ times

PREDICT THE OUTPUT
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

30 sec • 1 pt

Media Image

Guess the output?

3

-4

4

Compile error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of following program?

0

1

2

3

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following operator can be used to access value at address stored in a pointer variable?

*

&

->

.

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

To print a double value, which format specifier can be used?

%l

%ld

%d

%lf

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output of the following code snippet?

Hi

HelloHi

Compile error

Compiler warning

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the below code snippet?

Infinite loop

Prints “Hello” once

No output

Compile error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the below code snippet?

Infinite loop

Prints “Hello” once

No output

Compile error

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?