
list sort and concatenation
Authored by Jumanah Alqurnah
Computers
12th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following Python code print the list X in a reverse order
a) print(X.reverse ())
b) X.sort(reverse= FALSE)
print(X)
c) print(X[: : -1])
d) b and c.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following Python code sort the list X in an ascending order:
sort.X( )
X.sort[ ]
X.sort(reverse = True)
X.sort( )
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following python code adds the List 1 as an extension to the original List 2
a) List1.extend(List2)
b) List2.extend(List1)
c) List1.append(List2)
d) a and c.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Let x= "17" and y=["My age is"], the output of print(x + y) is ["My age is", "17"]
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following Python code sort the list x in an descending order:
x.reverse ( )
x.sort( )
x.sort(key = len)
x.sort(reverse = True)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
let x = [2,5,0,8,9], the output of the following Python code is
x.reverse( )
print(x[0])
x.sort(key=len)
print(x)
9
Error
2
[9, 8, 0,5,2]
9
[0, 2, 5, 8, 9]
2
[0, 2, 5, 8, 9]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
let x= ["my name is"] and y = "Ali", which of the following Python code will print my name is Ali as a string
print(x +[ y ])
print(str(x) + y)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Internet Technologies
Quiz
•
12th Grade
10 questions
Avaliação 1T - JavaScript
Quiz
•
9th - 12th Grade
10 questions
VLAN 1
Quiz
•
12th Grade
12 questions
Wee Word Intro
Quiz
•
7th - 12th Grade
10 questions
Tugas kelas XII RPL
Quiz
•
12th Grade
10 questions
Abhyudaya coding class - Grade 7
Quiz
•
6th Grade - University
13 questions
Topic 1: SKEE1103
Quiz
•
12th Grade
14 questions
Bài 29. Nhận biết lỗi chương trình
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade
18 questions
Success Strategies
Quiz
•
9th - 12th Grade
10 questions
Valentine's Day Trivia
Quiz
•
9th - 12th Grade