• Register
0 votes
124 views

Problem:

I am trying to run a query, can any one guide me what does this query means?
What does the following statement do?

double[] array1 = new double[10];



a. Declares array1 to be a reference to an array of double values
b. Creates an instance of an array of 10 double values
c. Will allow valid subscripts in the range of 0 - 9
d. All of these

7 5 3
5,380 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution:

When you run this query

 

double[] array1 = new double[10];

This statement do following action:

  • Declares array1 to be a reference to an array of double values
  • Creates an instance of an array of 10 double values
  • Will allow valid subscripts in the range of 0 - 9

Hopw this will help you. 

8 5 2
10,530 points

Related questions

0 votes
1 answer 521 views
521 views
Problem: I am new and my logic is not so strong can any one give me right solution? What does the following statement mean? num1, num2 = get_num() a. The function get_num() is expected to return a value each for num1 and num2. b. The function get_num() is expected to return a value and assign it to num1 and num2. c. Statement will cause a syntax error. d. Statement will cause a run-time error.
asked Feb 22, 2020 maddi86 5.4k points
1 vote
1 answer 55 views
55 views
Problem: In Python while practising the few question from c language i tried to implement the few of the program but most of the time it come up with the syntax error or the intend error can you help what actually i am missing the syntax error in python every time i execute it.
asked Jun 3, 2020 Gavin 15.3k points
0 votes
0 answers 50 views
50 views
Problem: What does the following UML diagram entry mean? + setHeight(h : double) : void A) this is a public attribute named Height and is a double data type B) this is a private method with no parameters and returns a double data type C) this is a private attribute named Height and is a double data type D) this is a public method with a parameter of data type double and does not return a value
asked Aug 4, 2020 ArifulIslam 7.5k points
0 votes
1 answer 208 views
208 views
Problem: I am new in programming and my logic is not good, can anyone give the right solution? Which of the following could not be a linear programming problem constraint? A.1A + 2B ≤ 3 B.1A + 2B ≥ 3 C.1A + 2B = 3 D.1A + 2B + 3C + 4D ≤ 5 E.1A + 2B
asked Feb 22, 2020 maddi86 5.4k points
0 votes
1 answer 165 views
165 views
Problem: I am finding code and not able to used right code so that I can get right output, can anyone tell the right code? Rearrange the code so that it forms a correct program that prints out the letter q:?
asked Feb 19, 2020 maddi86 5.4k points
0 votes
1 answer 24 views
24 views
Problem: Hello! I tried running following program: class Program { static void Main(string[] args) { int x = 9; while (x++ < 10) Console.WriteLine(x); Console.ReadKey(); } } The output that I assumed was nothing but a blank screen because x++ = 9 ... 10 I am unable to understand the output. I want to know how that output was generated and in what manner the conditions and operators are evaluated.
asked Nov 28, 2020 Code Learner 5.7k points
0 votes
1 answer 99 views
99 views
Problem: You need to install a customized console on 10 computers. What is the best way to do that? a. When installing the console on the fi rst computer, write down each step to make it easier to do the same chore on the other nine. b. Create the console on one computer ... le to the other nine. c. Create the console on one computer and copy the .msc file to the other nine. d. None of the above.
asked Feb 18, 2020 maddi86 5.4k points
0 votes
1 answer 107 views
107 views
Problem: What best defines a programming language?
asked Mar 9, 2020 ArifulIslam 7.5k points
0 votes
1 answer 312 views
312 views
Problem: Can anyone help it was actually asked in exam as following and I need to know whether my answer was right or not? What makes system changes to repair design flaws, coding errors, or implementation issues? A. Corrective maintenance B. Preventative maintenance C. Pilot implementation D. Phased implementation
asked Feb 24, 2020 maddi86 5.4k points
0 votes
1 answer 398 views
398 views
Problem: Hello Guys, I am kinda new to python I was attempting a quiz and I was not able to attempt this question I think this question is wrongly define,or I am not able to understand. what is the output of the following print statement? print('the path is d:\\sample\\test.'). This was the question that was asked.
asked Jun 5, 2020 Gavin 15.3k points