Search Header Logo

Revision (Input+if)

Authored by Ruchita Dave

Computers

9th Grade

Used 1+ times

Revision (Input+if)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is right way of defining String variable?

String name = "John";

String name = "John"

String name = John;

String name "John";

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Name the data type: 1.0

double

int

char

boolean

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How would you declare a variable that tells you that someone passed a class?

boolean passed = 'true';

boolean passed = true;

passed = true;

String passed = "true";

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int sum1 = 100 + 50;

int sum2 = sum1 + 250;

int sum3 = sum2 + sum2;

System.out.println(sum3);


What will be the final output?

950

800

sum2sum2

sum1250

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int x = 4;

System.out.println(x < 5 && x < 10);


What will be the output?

false

true

4

x < 5 && x < 10

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output?

more than 7

more than 23

spam

7

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This operator means that one value is the same as the other value

==

!=

>

<

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?