Java Basics question class 9 mci

Java Basics question class 9 mci

Assessment

Quiz

Computers

9th - 10th Grade

Medium

Created by

Vivek Chamaria

Used 48+ times

FREE Resource

Student preview

quiz-placeholder

68 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the keyword "final" used for in Java?

identify a constant

identify an integer

identify a string

Identify a final answer

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The keyword "method" is another name for

an object

a class

a function

a variable

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Java was originally named:

Coffee

Oak

New C++

Duke

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is NOT a numeric data type

int

double

float

decimal

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is incorrect?

int count = 50.0;

int salary = 50_000;

int salary = 50_00;

all of these are incorrect

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The numeric type int uses how many bits?

31

32

63

64

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is an example of a reference variable declaration?

int count;

String name;

float gpa;

char firstInitial;

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?