PYTHON QUIZ3

PYTHON QUIZ3

University - Professional Development

10 Qs

quiz-placeholder

Similar activities

Latihan Ujian TKJ - Bagian A1

Latihan Ujian TKJ - Bagian A1

7th Grade - University

10 Qs

SOAL PTS 1 KOMPUTER AKUNTANSI KELAS XI

SOAL PTS 1 KOMPUTER AKUNTANSI KELAS XI

11th Grade - University

10 Qs

AB1401 Case Study: Facebook

AB1401 Case Study: Facebook

University

12 Qs

C quiz

C quiz

11th Grade - University

10 Qs

GIS Unit III

GIS Unit III

University

15 Qs

Topic Quiz-1 : Python Basics

Topic Quiz-1 : Python Basics

Professional Development

10 Qs

Quiz 1 CCE

Quiz 1 CCE

University

15 Qs

Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera

Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera

1st Grade - Professional Development

10 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