Page 1 of 1

Question 1 Consider the following array declaration in Python: vector = [2, 4, 6, 8, 10, 12, 14, 16] What is the value o

Posted: Tue Jul 12, 2022 8:17 am
by answerhappygod
Question 1
Consider the following array declaration in Python:
vector = [2, 4, 6, 8, 10, 12, 14, 16]
What is the value of vector [2:3]?
Question 1 options:
[6, 8]
[6]
6, 8
[4, 6]
Question 2 (2 points)
What is the memory address of the element m[2, 3] of a 2D arraym, which contains 3 rows and 4 columns? The array is storedcolumn-wise, size of each cell is 1 byte, and the starting addressof the array is 200. m[2, 3] refers to the array element at row 2and column 3. The lower bounds of row and column are 1 and 1,respectively.
Question 2 options:
208
207
206
205