Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1.)What is the size of the array? double[] billy = new double[10]; a 0 b 10 c 11 d 9 What is the size of

1.)What is the size of the array? double[] billy = new double[10];

a 0
b 10
c 11
d 9

What is the size of the array? list[7]; list.length();

a 10
b Cannot be determined, since this is a call not a initialization
c 7
d 0

3.)What is the correct way to declare and initialize an array?

a char list = new char[10];
b double list = double[10];
c list = new double[10];
d double list = new double(10);
e String list = new String();

4.)What is the correct way to assign a value to an int array called myList that has a size of 10?

a myList(10) = 6;
b myList[9] = 6;
c myList[9] = 5.6;
d myList[10] = 6;

5.)What is the correct way to get a value from an int array called myList that has a size of 10?

a int x = myList;
b int x = myList.getValue(10);
c int x = myList(10);
d int x = myList[9];
e int x = myList[10]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

3. Develop a case study.

Answered: 1 week ago