Python QCM

Python QCM

University

21 Qs

quiz-placeholder

Similar activities

First Meet Sains Data 2022

First Meet Sains Data 2022

University

20 Qs

round 2

round 2

University

25 Qs

Round 3: Coding Round

Round 3: Coding Round

University

24 Qs

Kuiz Phyton 2

Kuiz Phyton 2

University

25 Qs

EMPAT RUANG With Algomarine

EMPAT RUANG With Algomarine

University

20 Qs

Programação em Python Introdução

Programação em Python Introdução

12th Grade - University

20 Qs

Introduction to Python and Data Analytics Basics

Introduction to Python and Data Analytics Basics

University

25 Qs

Python Programming Quiz

Python Programming Quiz

University

25 Qs

Python QCM

Python QCM

Assessment

Quiz

Other

University

Hard

Created by

Abdelouahab Bella

Used 23+ times

FREE Resource

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

l=[1,2,3,4]

l.append(index(3))

print(l)

[1, 4, 3, 4, 2]

[1, 2, 3, 4, 2]

[]

none of above !

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

l=[1,2,3,4]


l.append(l.index(3))

print(l)

[1,2,3,4,5]

[1,2,3,2,4]

[1,2,3,4,2]

none of above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

print([i**3 for i in range(5)])

[0,1,2,3,4]

[0,2,4,6,8]

[0,3,6,8,10]

[0,3,6,9,12]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

i=1

j=2

print([(i,j)for i in range(j) for j in range(i)])

[(1, 0)]

[(1, 2)]

[(1, 1)]

[(0, 1)]

5.

FILL IN THE BLANK QUESTION

20 sec • 1 pt

let's say that we want to open and read a file named index.html and effect it to the varibale name : pt

whrite the correct form

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what is the type of x:

x=pt.readliens

string

tuple

list

none of above

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

the same qstn for this:

print(pt.readline)

string

tuple

list

none type variable

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?