Search Header Logo

0100100101-1

Authored by Michi koh

Computers

Professional Development

Used 1+ times

0100100101-1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the Type Conversions available in Java language?

Narrowing Type Conversion

Widening Type Conversion

A and B

None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Name the data type: '3'

int

char

String

Float

None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How would you declare a variable storing the tax rate?

int taxRate = 5.1;

taxRate = "5.1";

double taxRate = 5.1;

double taxRate = "5.1";

4.

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";

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The first value of an array called quizzes can be accessed with which of the following statements?

quizzes[1] = 100;

quizzes[0] = 100;

quizzes[zero] = 100;

quizzes[one] = 100;

quizzes = 100;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For the array:

int stats[3];

What is the range of the index?

0 to 3

0 to 2

1 to 3

0 to 4

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int [] nums = {2, 3, 5, 8, 9, 11};

How would you access the fourth element in nums?

nums[4]

nums[3]

nums(4)

nums(3)

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?