Question: c# language will be used to solve these m.c.q 8. Which of the following correctly declares an array of five floats? A. float array[5]; B.

c# language will be used to solve these m.c.q

8. Which of the following correctly declares an array of five floats? A. float array[5]; B. float[5] array; C. float[] array = 5; D. float[] array = new float[5];

9. Which of the following correctly declares an array of four integers? A. int[] ages = new int[4] {20, 30, 40, 50}; B. int[] ages = new int[] {20, 30, 40, 50}; C. int[] ages = {20, 30, 40, 50}; D. all of these

10. Most methods in a class are created with the ____________________ modifier. A. public B. new C. protected D. private

11. To allocate memory for an object instantiation, you must use the ____________________ operator. A. mem B. new C. alloc D. instant

12. Assume that you have created a class named MyClass. The header of the MyClass constructor can be ____________________. A. public MyClass() B. public MyClass (double d) C. Either of these can be the constructor header. D. Neither of these can be the constructor header.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!