PYTHON QUIZ3

PYTHON QUIZ3

University - Professional Development

10 Qs

quiz-placeholder

Similar activities

Perangkat komputer

Perangkat komputer

University

10 Qs

Logika Fuzzy

Logika Fuzzy

University

10 Qs

Streams

Streams

Professional Development

10 Qs

Quis 1 APSI

Quis 1 APSI

University

10 Qs

Computational Thinking in Python[Quiz 3]

Computational Thinking in Python[Quiz 3]

University

15 Qs

C Programming

C Programming

Professional Development

10 Qs

Python Quiz 1.4

Python Quiz 1.4

University

12 Qs

PYTHON QUIZ3

PYTHON QUIZ3

Assessment

Quiz

Computers

University - Professional Development

Hard

Created by

MSK PSGRKCW

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers