Python QCM

Quiz
•
Other
•
University
•
Hard
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
Similar Resources on Wayground
25 questions
EXAM MMI

Quiz
•
University
22 questions
Barelang Robotics 2025 - Basic Programming

Quiz
•
University
16 questions
Mimas

Quiz
•
University
20 questions
Diagnostic Kognitif KKA - Fase E

Quiz
•
10th Grade - University
26 questions
Python Quiz SE 27/10/2023

Quiz
•
University
26 questions
python programming quiz

Quiz
•
12th Grade - University
20 questions
Week 1 QUIZ

Quiz
•
University
19 questions
NSI : Les fonctions en Python

Quiz
•
2nd Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University