Search Header Logo

Predict the output

Authored by Murugeswari.k Murugeswari.k

Professional Development

Professional Development

Used 9+ 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

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will be the output of the program?

x = 0

x = 1

compile error

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the program?

count = 0

count = 2

count = 3

count = 4

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the program?

9 7 7 foo 7 7foo

72 34 34 foo34 34foo

9 7 7 foo34 34foo

72 7 34 foo34 7foo

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Which one is correct?

If a is true and b is true then the output is "A && B"

If a is true and b is false then the output is "notB"

f a is false and b is true then the output is "ELSE"

If a is false and b is false then the output is "ELSE"

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the program?

Zero

Twelve

Default

Compile Error

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

finally

exception finished

finally exception finished

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following line of code is suitable to start a thread ?

Thread t = new Thread(X);

Thread t = new Thread(X); t.start();

X run = new X(); Thread t = new Thread(run); t.start();

Thread t = new Thread(); x.run();

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?