subject

Consider the following code segment. int[] arr = {1, 2, 3, 4, 5};

Which of the following code segments would correctly set the first two elements of array arr to 10 so that the new value of array arr will be {10, 10, 3, 4, 5} ?

a. arr[0] = 10;
arr[1] = 10;

b. arr[1] = 10;
arr[2] = 10;

c. arr[0, 1] = 10;

d. arr[1, 2] = 10;
e. arr = 10, 10, 3, 4, 5;

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 07:40
What type of multimedia are live news feeds? live news feeds are examples of multimedia.
Answers: 2
question
Computers and Technology, 24.06.2019 14:30
Which computer network component connects two different networks together and allows them to communicate? a is a node (or a device) that connects two different networks together and allows them to communicate.
Answers: 1
question
Computers and Technology, 24.06.2019 22:30
What are the 4 basic items that are traded throughout the world?
Answers: 1
question
Computers and Technology, 25.06.2019 04:30
What is the purpose of network permissions? a)to control access to network resources b)to convert to wireless networking c)to enable the installation of nics d)to reduce operating costs
Answers: 1
You know the right answer?
Consider the following code segment. int[] arr = {1, 2, 3, 4, 5};

Which of the followin...
Questions
question
Mathematics, 23.09.2021 14:00
question
Mathematics, 23.09.2021 14:00
question
Mathematics, 23.09.2021 14:00
question
Mathematics, 23.09.2021 14:00
question
Mathematics, 23.09.2021 14:00
question
Mathematics, 23.09.2021 14:00
question
Mathematics, 23.09.2021 14:00
Questions on the website: 13722362