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:
See Explaination
Explanation:
package testscores;
import java.util.ArrayList;
import java.util.List;
public class TestScores {
public List<Integer> scorearray=new ArrayList<>();
public TestScores(List<Integer> scores) throws InvalidTestScore{
this.scorearray=scores;
for(int i=0;i<scorearray.size();i++){
if(scorearray.get(i)>100 || scorearray.get(i)<0){
throw new InvalidTestScore(this.scorearray.get(i));
}
}
}
public double average(){
int tot=0;
for(int i=0;i<this.scorearray.size();i++){
tot=tot+this.scorearray.get(i);
}
return tot*(1.0)/(this.scorearray.size());
}
class InvalidTestScore extends Exception
{
private double amount;
public InvalidTestScore(int Score)
{
System.out.println("Invalid Score "+Score);
}
}
}
Answer:
O DTP programs are basically layout programs.
Explanation:
Desktop publishers are vector-based graphics software, and a perfect example of one such software is Microsoft Publisher. You can consider Adobe Illustrator, and Corel Draw as well, but they are huge software meant for many more things, and hence let's include only Microsoft publisher. And a long list follows as well. And they are in general a layout program used to prepare cards, advertisements, infographics, etc, and in fact the layout for them. And hence its more appropriate to say that it is basically a layout program that uses vector graphics to accomplish its goal. Various formats supported are like SVG, EPS, PDF,AI etc. And these are vector graphics based formats. The other type is Raster, and that includes Photoshop etc, with formats iike jpeg, gif etc, and which are pixel based.
Answer:
TRUE
Explanation:
The while loop is used to run the block of statement again and again until condition is TRUE. if condition false program terminate the loop and execute the next of while statement.
syntax:
initialize;
while(condition)
{
statement;
increment/decrement;
)
when condition is TRUE, the block of statement execute again and again.
Deep Learning enables image processing, speech recognition, and complex game play in artificial intelligence.
<h3>What is Deep learning?</h3>
This is known to be a part of machine learning, and it is seen as neural network that is made up of three or more layers which tries to simulate the behavior of the human brain.
Note that Deep Learning enables image processing, speech recognition, and complex game play in artificial intelligence.
See options below
1)Expert Systems
2)Deep Learning
3)Natural Language Understanding (NLU)
4)Artificial General Intelligence (AGI)
Learn more about Deep Learning from
brainly.com/question/27844272
#SPJ1