PYTHON QUIZ3

PYTHON QUIZ3

University - Professional Development

10 Qs

quiz-placeholder

Similar activities

Python List and Tuples

Python List and Tuples

Professional Development

15 Qs

aXQtMjktMTEtMjAyMg==

aXQtMjktMTEtMjAyMg==

Professional Development

10 Qs

Python Quiz

Python Quiz

University

15 Qs

CRYPT-IN (Finals)

CRYPT-IN (Finals)

University

10 Qs

Python Quiz 1.4

Python Quiz 1.4

University

12 Qs

Python_Quiz_2

Python_Quiz_2

University

15 Qs

Python Quiz - 4 Lists,Loops,String Manipulation

Python Quiz - 4 Lists,Loops,String Manipulation

University

15 Qs

Code X Trade

Code X Trade

Professional Development

15 Qs

PYTHON QUIZ3

PYTHON QUIZ3

Assessment

Quiz

Computers

University - Professional Development

Hard

Created by

MSK PSGRKCW

Used 6+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

1. Find the output of the following program:

nameList = ['Harsh', 'Pratik', 'Bob', 'Dhruv']

print nameList[1][-1]

h

k

v

b

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

2. Find the output of the following program:

input = [1, 2, 3, 4]

input. append([5,6,7,8])

print(input)

[1,2,3,4,5,6,7,8]

[1,2,3,4]

[1,2,3,4,[5,6,7,8]]

[1,2,3,4][5,6,7,8]

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

3. Find the output of the following program:

list1 = range(100, 110)

print (list1.index(105))

105

5

106

4

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

4. Find the output of the following program

list1 = [1, 2, 3, 4, 5]

list2 = list1

list2[0] = 0;

print( list1)

[1, 2, 3, 4, 5, 0]

[0,1, 2, 3, 4, 5]

[0, 2, 3, 4, 5]

[1, 2, 3, 4, 0]

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

5. Find the output of the following code

list1 = [1998, 2002]

list2 = [2014, 2016]

print ((list1 + list2)*2)

[1998, 2002, 2014, 2016, 1998, 2002, 2014, 2016]

[1998, 2002, 2014, 2016]

[1998, 2002, 1998, 2002]

[2014, 2016, 2014, 2016]

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

6. A Program Runs And, During Running, Is Asked To Divide By Zero. The Program Crashes. This Is An Example Of ----------

Runtime Error

Logic Error

Syntax Error

semantic Error

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

7. What will be output for the folllowing code?

try:

print(x)

except:

print("An exception occurred")

x

An exception occurred

Error

None of the above

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?