Answer:
3) 44 10 44
Explanation:
Given data
int [] val = { 3, 10, 44 };
The total number of parameters of given array are 3, so total length of array is also 3.
The indexing of array starts with '0', Therefore the <u>indexes</u> of array with length zero are: {0,1,2}
The value of array at index 0 is = 3
similarly
value at index 1 = 10
value at index 2 = 44
Any value of index 'i' of an array is selected using array[i].
Therefore,
val[0] is selecting the value of array located at index '0'.
val[0] = 3
val[2] is selecting the value of array located at index '2'.
val[2] = 44
Finally,
val[0] = val[2]; is copying the value placed at index 2 (44) to value placed at index 0 (3). Hence, the output would be { 44 10 44}. So 3rd option is correct.
Answer:
You can't really say it matters whether it's short or long
Explanation:
There several coding language some short and some long with different purposes so it doesn't really make a difference
Although some coders have been able to shorten some codes so I'd say shorter is faster and be[er and easier to memorize
Thanks hope I was helpful
Answer:
A program is a set of instructions that a computer executes.
An algorithm is a set of instructions that must be done in order to get some result.
If an algorithm is written in a programming language, then the program is an implementation of the algorithm.
An algorithm must not, however, be a program. An algorithm can also be performed manually (e.g. calculate 6431 + 8316 on paper or in your head).
Explanation:
Answer:
Option (A) is the correct answer of this question.
Explanation:
The server supports the processing requests from the remote computers. A system is a device built to accommodate inquiries from many other external systems and customers to execute transactions. Employees are called private computer ,tablets, including phones which connect websites.
Network resources are handled through servers.The server is a software application or tool providing a service to some other software program and its customer, also identified as those of the user.
Other options are incorrect because they are not related to the given scenario.
Answer:
public class Triangle
{
public static void main( String[] args )
{
show( 5 );
}
public static void show( int n )
{
int i,j,k;
for (i = 0; i < n - 1; i++ )
{
for (j = 0; j < i; j++ )
{
System.out.print( " " );
}
for (k = n - i; k > 0; k-- )
{
System.out.print( "* " );
}
System.out.println();
}
for (i = 0; i < n; i++ )
{
for (j = n - i; j > 1; j-- )
{
System.out.print( " " );
}
for (k = 0; k < i + 1; k++ )
{
System.out.print( "* " );
}
System.out.println();
}