• Register
0 votes
270 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 6 2
10,530 points

Related questions

0 votes
1 answer 907 views
907 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
0 votes
1 answer 8 views
8 views
Problem: Please help me &hellip; how can I solve it? what does the following statement do? vector<int> v(10);
asked Mar 24 Ifra 37.2k points
0 votes
1 answer 17 views
17 views
Problem: Hello ... Can anyone tell me that why I got this error? what does the following statement do? vector<int> v(10);
asked Mar 23 Ifra 37.2k points
0 votes
1 answer 3 views
3 views
Problem: I am in VB and I'm trying to create some buttons so when you click them, it changes the background of my form. Instead of this happening, the background of the button changes. How do I fix this? public Form1() { InitializeComponent(); } private ... System.Drawing.Color.Red; } private void button4_Click(object sender, EventArgs e) { this.button4.BackColor = System.Drawing.Color.Blue; } } }
asked Apr 26 sumaiya simi 43.9k points
0 votes
1 answer 7 views
7 views
Problem: Now, doesnt it work this way: If I have a try and catch block in the method itself then I need not write method_name(int n) throws Exception?
asked Apr 11 ummesalma 29.2k points
0 votes
1 answer 12 views
12 views
Problem I'm not a c# programmer I have the following line of code pageSizeFactor = PrintingRequirements.FormSize == FormSize.A4 ? 1 : 2; I just need to confirm if I am correct, the above means the following, pageSizeFactor = the Form size, so if the Form size is A4 pageSizeFactor will be 1 else it will be 2?
asked Mar 16 neeraj 10.5k points
1 vote
1 answer 76 views
76 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 5 views
5 views
Problem: I'll make a submission for a response to my question. Please, I have searched the internet but have not found any useful material, and I am now having trouble continuing my studies.
asked Mar 29 tuhin1 48.9k points
0 votes
1 answer 25 views
25 views
Problem: How do we write a program that prints a triangle, rectangle, square and a inverted triangle of stars on the screen using loops?
asked Feb 27 Code Learner 9.9k points
0 votes
1 answer 336 views
336 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 &le; 3 B.1A + 2B &ge; 3 C.1A + 2B = 3 D.1A + 2B + 3C + 4D &le; 5 E.1A + 2B
asked Feb 22, 2020 maddi86 5.4k points