Which of the following would correctly make matrix2 a shallow copy of matrix1? O matrix2 = matrix1 O matrix2 = matrix1[:] matrix2 = copy.deepcopy (matrix1) O None of the above

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter8: Restricting Rows And Sorting Data
Section: Chapter Questions
Problem 10MC
icon
Related questions
Question
Which of the following would correctly make matrix2 a shallow copy of matrix1?
O matrix2 = matrix1
matrix2 = matrix1[:]
matrix2 = copy.deepcopy (matrix1)
O None of the above
Transcribed Image Text:Which of the following would correctly make matrix2 a shallow copy of matrix1? O matrix2 = matrix1 matrix2 = matrix1[:] matrix2 = copy.deepcopy (matrix1) O None of the above
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning