Question: Suppose we have: q = [ 1 0 , 3 0 , 5 0 , 7 0 ] Which of the following are true? (

Suppose we have:
q=[10,30,50,70]
Which of the following are true? (Select all that apply)
q[1] will return 10.
q[2]+q[4] will return 70.
q[2]+q[4] will return 100.
q [5] will return 10, because indexing "wraps around" after we reach the last index.
q [5] will return a BoundsError, because q has only 4 elements.
Submit
 Suppose we have: q=[10,30,50,70] Which of the following are true? (Select

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!