Reference no: EM1378918
3- In a two-dimensional array, every row must have the same number of columns. it is true or false
5- Discuss how do you access the element of array a located at row 2 and column 4?
9- An ArrayList can be returned by a method. True or False
11- Is is possible to declare and instantiate an ArrayList of a user-defined class type. True or False
For question 14 to 24, consider the following two-dimensional array declaration and initialization:
String [ ] [ ] cities = { {"New York", "LA", "San Francisco", "Chicago" },
{"Munich", "Stuttgart", " Berlin", "Bonn" },
{ "Paris", "Ajaccio", "Lyon" },
{ " Montreal", "Ottawa", "Vancouver" }};
15- What is the value of the expression cities[2][1]?
17-What are the row and column indexes of Chicago in the array cities?
21- What is the output of this code sequence?
for ( int i = 0; i < cities.length; i++ )
{
for ( int j = 0; j < cities [i].length; j++ )
System.out.print( cities[i][j] + "t" );
System.out.println( );
}
23- What is the output of this code sequence?
int count = 0;for ( int i = 0; i < cities.length; i++ )
{
for ( int j= 0; j< cities.length; i++ )
{
If ( cities [i][j].length( ) ==7 )
count++;
}
}
System.out.println( " count is " + count );
Complete life cycle data management
: MS Excel is one of the most comprehensive environments for the compilation and interpretation of information. With its information structuring, analysis, and graphing capabilities.
|
Example of a business related report
: Recognize an example of a business related report created with MS Excel. Attach a sample of the report in an Microsoft Excel file.
|
Determine the output of the code sequenc
: Determine the output of this code sequence? The user successively enters 3, 5, and -1.
|
Calculation of the hypotenuse
: Construct a C# console application that calculate the hypotenuse of a right triangle. The calculation of the hypotenuse of a right triangle is based on the Pythagorean Theorem:
|
Element of array
: Discuss how do you access the element of array a located at row two and column four?
|
Java questions
: The linked list that given represents a stack. After we push the player onto the stack, what are first and last items on the stack?
|
Aspects of software development
: Unit testing is the driving technology behind a software design method termed Test Driven Development, which, in turn, is a factor of the agile school of software development.
|
Element of object oriented systems
: Several people view the four foundational factors of object-orientation as abstraction, encapsulation, inheritance, and polymorphism. There is a certain purity in being minimal.
|
Construct the homogeneous solution
: Construct the homogeneous solution in terms of four constant that could be determined from initial conditions and show the equations of motion
|