Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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