one hours help
Which of the following is correct to create an array?
Question 12 options:
|
|||
|
|||
|
|||
|
correct way to create an array are
A)
int[] m = {1, 2, };
B)
int[] m = {1, 2, 3};
C)
int[] m = {1, 2};
Options A,B,C
one hours help Which of the following is correct to create an array? Question 12 options:...
What would be the results of the following code? Create array1 ← [33, 88, 11, 44, 99, 55] value ← array1[0] FOR each value in array1 IF(array1[i] < value) THEN value ← array1[i] ENDIF ENDFOR Question 7 options: A) Value contains the lowest value in array1. B) Value contains the highest value in array1. C) Value contains the sum of all the values in array1. D) Value contains the average of the values in array1. Question 8 (1 point) What...
please help with question 5 and question 6. thank you
12] QUESTIONS Which of the following shows the correct mechanism of the reaction depicted below? Come on 02-0 heyran (2) NH, Na+ CE- A B C Mechanism (1) Mechanism (2) Both mechanisms are correct, the reaction occurs with inversion of stereochemistry, as expected of S2 reactions None of the mechanisms are correct, the competing elimination reaction is not shown. D [2] QUESTION 6 Which of the following reactions is in...
question 1:
Three options for "returning true" are shown in comments within
the method above. Which option is the
correct one? Briefly explain.
question 2:
Assuming the array is of size n × n and it IS square, what is
the complexity using Big-O notation of the method above
for each of the three options for the location of "return
true"? Briefly explain.
for question 2, its basically asking what are the three
options
Below is a method written to determine...
This is for Java. Create ONE method/function that will return an array containing the row and column of the largest integer i the 2D array. If the largest number is located on row 2, column 1, the method needs to return row 2 and column one. Do not use more than one method. Use the code below as the main. Please comment any changes. in java Given the main, create a method that RETURNS the largest number found in the...
1. Given the following peptide, which of the following
statements is true?
Question options:
a) The N-terminal residue is leucine.
b)This peptide contains 4 amino acid residues.
c) The peptide contains a total of 6 ionizable groups.
d) The net charge of this peptide at pH 7 is +1 Locate any
peptide bond along the backbone of the given peptide.
e) The bond between the C (of the C=O) and the N (of the N-H) of
a peptide bond has...
what is the correct answer for this?
Incorrect Question 2 0/1 pts Which of the following correctly demonstrates the use of an array initializer list? Choose all that apply. int[] my_array = {1, 2, 3, 4, 5); int[] my_array = [1, 2, 3, 4, 5]; int my_array = (1,2,3,4,5); int my_array = new {1, 2, 3, 4, 5); none of these
array function
• Create a function called show2D.
• This function should accept a two-dimensional array as parameter
and display its contents that are odd numbers on the screen.
• This function should work with any of the following arrays of
different sizes:
int hours[3][9];
int stamps[7][9];
int cities[15][9];
• Write a demo program to show how to use the function
show2D.
this is c++ program
Task 2: Array functions • Create a function called show2D. • This function should...
(C++ program )Write a function that accepts an int array and the array’s size as arguments. The function should create a new array that is one element larger than the argument array. The first element of the new array should be set to 0. Element 0 of the argument array should be copied to the element 1 of the new array. Element 1 of the argument array should be copied to element 2 of the new array, and so forth....
Which of the following are valid array declarations? a. int[] array- new int[10]; b. double [array double[10]; c. charl charArray "Computer Science"; None of the above Analyze the following code: class Test public static void main(Stringl] args) System.out.println(xMethod(10); public static int xMethod(int n) System.out.println("int"); return n; public static long xMethod(long n) System.out.,println("long"); return n The program displays int followed by 10 The program displays long followed by 10. The program does not compile. None of the above. tions 3-4 are...
QUESTION 1 Using the following declarations and a member of the Array class, int [ ] bArray = new int [10]; int location; Using a method in the Array class, write a statement that would change the order of the elements in the bArray array. The contents of the first cell should hold what was in the last cell. The second cell should hold what was in the next to last cell. __________________________ HINT: You must write the full statement...