Home
SELF STUDY
BrowsePracticeTestsPlaylistDoubts & solutionsOther coursesPrime

Python

Quick practice

Question 1 of 5

Consider the following code snippet:

arr = [2, 4, 6, 8]

print(arr[0] + arr[2])

What will be printed after the execution of above code?

A

12

B

6

C

10

D

8

Get unlimited practice with GATE - CSIT, DSAI & Interview Preparation subscription

pick

Boost your performance with adaptive practice tests

pick

Practice every concept in the syllabus

pick

Compare your speed and accuracy with your peers

pick

Download the app and practice on the go