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
16 questions
IEEE Excursion

Quiz
•
University
25 questions
THCS Kiểm tra kiến thức về xâu trong Python

Quiz
•
University
20 questions
App Development with Swift Quiz 1

Quiz
•
University
20 questions
Round 3

Quiz
•
University
24 questions
Conceptes probabilitat

Quiz
•
KG - University
22 questions
Funções e Estruturas em Programação C - Parte I

Quiz
•
9th Grade - Professio...
20 questions
Mastering Advanced Python Concepts

Quiz
•
University
20 questions
CE Lesson 2 Quiz

Quiz
•
6th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University