Ask Computer Engineering Expert

Please help me with these quiz C#:

QUESTION 1

double [ ] price = new double [ ] {3, 2.2, 4.7, 6.1, 4};

With the declaration above, price[2] refers to 2.2.

True

False.

QUESTION 2

Arrays can be used as fields or instance variables in classes; and, arrays of objects can be declared.

True

False

QUESTION 3:

What happens when you assign one array to another using the assignment operator?

a. Both arrays reference the same memory locations.

b. Elements are copied to new memory locations.

c. Both arrays become value type data elements.

d. An error message is generated.

QUESTION 4:

Array elements are normally stored in contiguous, side-by-side, memory locations with the first index in all arrays being referenced by index 0.

True

False

QUESTION 5:

One of the special properties in the Array class is Length?

It returns ____.

a. an int representing the size the array was dimensioned

b. an int representing the number of values currently stored in the array

c. how much storage is consumed by the entire array

d. the length of an individual element of the array

QUESTION 6:

When you pass an array to a method, by default, a copy of each element in the array is made and passed to the method.

True

False

QUESTION 7:

If an array is to be sent to a method, which of the following is a valid heading for a method?

a. void DisplayOutput(double anArray)

b. void DisplayOutput(double [10 ] anArray)

c. void DisplayOutput(double [ ] anArray)

d. void DisplayOutput(double anArray [10])

QUESTION 8:

Given an array declared to hold 100 values, the largest index that can be used with the array is:

a. 100

b. 99

c. undetermined

d. based on what index is used when the first value is placed in the array

QUESTION 9:

Arrays are reference variables.

True

False

QUESTION 10:

There are several ways to do a compile-time initialization of arrays. All of the following are valid ways EXCEPT ____.

a. int [ ] anArray = new int [10 ] {100, 100, 100};

b. int [ ] anArray = {100, 100, 100};

c. int [ ] anArray = new int [3 ] {100, 100, 100};

d. int [ ] anArray = new int [ ] {100, 100, 100};

QUESTION 11:

A Hashtable represents a collection of key/value pairs that are organized based on the hash code of the key.

True

False

QUESTION 12:

The string method that retrieves part of a string from a string argument is ____.

a. Trim( )

b. Retrieve( )

c. IndexOf( )

d. Substring( )

QUESTION 13:

The method that deletes a number of characters beginning at a specified position is ____.

a. Replace( )

b. Remove( )

c. Delete( )

d. ReplaceAt( )

QUESTION 14:

Multi-dimensional array identifiers are normally defined using a plural noun.

True

False

QUESTION 15:

string sValue = "Life is about choices";
string [ ] sn = sValue.Split(‘ ');

Using the Substring( ) method with sValue, which of the following references the word choices?

a. sValue.Substring(14, 7);

b. sValue.Substring(3);

c. sValue.Substring(15, 7);

d. sValue.Substring("choices");

QUESTION 16:

There are several ways to do a compile-time initialization of two-dimensional arrays. All of the following are valid ways EXCEPT ____.

a. int [ , ] anArray = new int [ , ] {{100, 100, 100} {100, 100, 100}};

b. int [, ] anArray = {{100, 100, 100} {100, 100, 100}};

c. int [ ] anArray = new int [10 ] {{100, 100, 100} {100, 100, 100}};

d. int [ , ] anArray = new int [2, 3 ] {{100, 100, 100} {100, 100, 100}};

QUESTION 17:

double [ , ] price = new double [2 , 5] {{1.1, 1.2, 1.3, 1.5, 1.4}{2.1, 2.2, 2.3, 2.5, 2.4}};

Looking above, the value of price.Length is 10.

True

False

QUESTION 18:

One of the special properties in the ArrayList class is Count. It returns ____.

a. an int representing the size the array was dimensioned

b. how much storage is consumed by the entire array

c. the length of an individual element of the array

d. an int representing the number of values currently stored in the array

QUESTION 19:

For a declaration such as, int [ , ] anArray = new int [6, 5], a total of 11 memory locations can be accessed using the identifier anArray.

True

False

QUESTION 20

Normally you will want to use two integral values to reference individual elements in a two-dimensional array. If you use just one integral value, you get all of the values for that row.

True

False

QUESTION 21

The static method that stops the application and closes all of its windows is ____.

a. Application.Exit( )

b. Application.Stop( )

c. Application.Quit( )

d. Application.Close( )

QUESTION 22

A good design principle to follow when developing Windows applications is ____.

a. register events as soon as possible

b. use dark foreground and medium dark backgrounds on the form

c. to keep data entry to a minimum

d. to add all buttons before any other controls are added

QUESTION 23

Visual Studio automatically imports the System.Windows.Forms namespace for you when you create a Windows Application Project using the IDE.

True

False

QUESTION 24

Which TextBox property can be set to enable several lines of data to be entered by the user?

a. ScrollBars

b. Lines

c. MultiLine

d. MaxLength

QUESTION 25

Windows forms and controls offer a wide variety of changeable properties including ____.

a. Font

b. Text

c. Color

d. all of the above

QUESTION 26

The GUI should be different if the application is going to be displayed on a WAP (Wireless AccessProtocol)-enabled device such as a tablet or a smart phone.

True

False

QUESTION 27

The order of when labels, buttons and controls are placed on the form does not impact anything.

True

False

QUESTION 28

Double-clicking on the form when you are using the Form Designer brings up the Code Editor and also ____.

a. adds a form load method heading

b. runs the application

c. creates a syntax error

d. registers a double click event

QUESTION 29:

It is more important to spend time designing a prototype for Windows applications than console-based applications.

True

False

QUESTION 30:

When a program is placed in a process loop, the program cannot be minimized, resized, or closed like other Windows applications.

True

False

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M93083564

Have any Question?


Related Questions in Computer Engineering

Does bmw have a guided missile corporate culture and

Does BMW have a guided missile corporate culture, and incubator corporate culture, a family corporate culture, or an Eiffel tower corporate culture?

Rebecca borrows 10000 at 18 compounded annually she pays

Rebecca borrows $10,000 at 18% compounded annually. She pays off the loan over a 5-year period with annual payments, starting at year 1. Each successive payment is $700 greater than the previous payment. (a) How much was ...

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Suppose you make 30 annual investments in a fund that pays

Suppose you make 30 annual investments in a fund that pays 6% compounded annually. If your first deposit is $7,500 and each successive deposit is 6% greater than the preceding deposit, how much will be in the fund immedi ...

Question -under what circumstances is it ethical if ever to

Question :- Under what circumstances is it ethical, if ever, to use consumer information in marketing research? Explain why you consider it ethical or unethical.

What are the differences between four types of economics

What are the differences between four types of economics evaluations and their differences with other two (budget impact analysis (BIA) and cost of illness (COI) studies)?

What type of economic system does norway have explain some

What type of economic system does Norway have? Explain some of the benefits of this system to the country and some of the drawbacks,

Among the who imf and wto which of these governmental

Among the WHO, IMF, and WTO, which of these governmental institutions do you feel has most profoundly shaped healthcare outcomes in low-income countries and why? Please support your reasons with examples and research/doc ...

A real estate developer will build two different types of

A real estate developer will build two different types of apartments in a residential area: one- bedroom apartments and two-bedroom apartments. In addition, the developer will build either a swimming pool or a tennis cou ...

Question what some of the reasons that evolutionary models

Question : What some of the reasons that evolutionary models are considered by many to be the best approach to software development. The response must be typed, single spaced, must be in times new roman font (size 12) an ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As