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

GAMTEK - PERTEMUAN 2

GAMTEK - PERTEMUAN 2

University

10 Qs

Dictionary Python

Dictionary Python

University

15 Qs

informatika

informatika

7th Grade - University

10 Qs

Alapismeretek

Alapismeretek

7th - 12th Grade

10 Qs

Bài tập trắc nghiệm C++(tiếp)

Bài tập trắc nghiệm C++(tiếp)

3rd Grade - University

10 Qs

Java: repetition control structure for & while

Java: repetition control structure for & while

10th - 12th Grade

10 Qs

 QUIZ  MS Core Java Quiz-3 2023

QUIZ MS Core Java Quiz-3 2023

University

11 Qs

Java Fundamentals

Java Fundamentals

12th Grade

10 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

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?