Java  Variables 1.1 to 1.4 Review

Java Variables 1.1 to 1.4 Review

11th Grade - University

10 Qs

quiz-placeholder

Similar activities

TES AWAL MODUL 2

TES AWAL MODUL 2

University

10 Qs

11° Evaluación bimestral de informática

11° Evaluación bimestral de informática

11th Grade

15 Qs

Quiz 9 (15.09.2021)

Quiz 9 (15.09.2021)

1st - 12th Grade

10 Qs

Round 2 for Preplacement Bootcamp

Round 2 for Preplacement Bootcamp

University

15 Qs

Python Level 3 - Minecraft

Python Level 3 - Minecraft

5th - 12th Grade

11 Qs

Teste python- Unesp-Jaboticabal

Teste python- Unesp-Jaboticabal

University

10 Qs

Начала программирования на языке Паскаль

Начала программирования на языке Паскаль

8th - 11th Grade

15 Qs

have fun with econometrics

have fun with econometrics

University

15 Qs

Java  Variables 1.1 to 1.4 Review

Java Variables 1.1 to 1.4 Review

Assessment

Quiz

Computers

11th Grade - University

Medium

Created by

Brent Hopkins

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a primitive data type in java?

int

boolean

number

double

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You want to know if a user has a sibling. What type of variable should you create?

int

double

string

boolean

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way of defining a String variable?

String name = "John";

String name = "John"

String name = John;

String name "John";

4.

MULTIPLE CHOICE QUESTION

30 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

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the right way of defining char variable?

char myGrade = 'B';

char myGrade = "B";

char myGrade 'B';

char myGrade = "B"

6.

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

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

int x = 10;

x = x + 5;

System.out.println(x);


What will be the output?

15

5

55

x5

Create a free account and access millions of resources

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?