Vidyalelo
Python · Q112

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 112

Q112

What will be the output of the following Python code? matrix = [[1, 2, 3, 4], [4, 5, 6, 7], [8, 9, 10, 11], [12, 13, 14, 15]] for i in range(0, 4): print(matrix[i][1], end = " ")

A.
1 2 3 4
B.
4 5 6 7
C.
1 3 8 12
D.
2 5 9 13
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board