Search Header Logo

Variables-DataTypes-Operators

Authored by Cassie Langlinais

Professional Development

CCSS covered

Used 21+ times

Variables-DataTypes-Operators
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is NOT a data types in java

int

String

number

double

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is right way of defining String variable?

String name = "John";

String name = "John"

String name = John;

String name "John";

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

int x = 5;

int y = 6

int z = 50;

System.out.println(x + y + z);


What will be the output?

61

5650

66

x + y + z

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Based on, the general rules for constructing names for variables.

Pick false statement.

Names can contain letters, digits, underscores, and dollar signs.

Names are NOT case sensitive

Reserved words (like Java keywords, such as int or String) cannot be used as names

Names can also begin with $ and _

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

which of the following is NOT a simple data type?

byte

array

char

boolean

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is assignment operator?

==

=

=+

++

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

int x = 10;

x += 5;

System.out.println(x);


What will be the output?

15

5

55

x5

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?