What is the output of the following list operations?
aList = [10, 20, 30, 40, 50, 60, 70, 80]
print(aList[2:5])
python basics_mattannur poly
Quiz
•
Professional Development
•
1st Grade
•
Hard
Nithin G
Used 2+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following list operations?
aList = [10, 20, 30, 40, 50, 60, 70, 80]
print(aList[2:5])
[20, 30, 40, 50]
[30, 40, 50,60]
[10, 20, 30, 40]
[30, 40, 50]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to create a python List?
list1 = [1,2,"apple"]
list1 = (1,2,3)
list1 = {1,2,"'apple"}
list1 = 1,2,3
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
list1 = ["apple", "banana", "cherry", "orange"]
Write a program to print banana from the above list.
print(list1[0])
print(list1[1])
print(list1[2])
print(list1[3])
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
array1 = np.array([1,2,3])
array2 = np.array([6,7,8])
print(array1+array2)
what is the output of this program?
[1,2,3,6,7,8]
[7,9,11]
[6,14,24]
[1,2,3,4,5,6]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to remove "ID" column from a dataframe named df.
df.drop("ID",axis=1)
df.drop("ID")
df.remove("ID")
df.remove("ID",axis=1)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Select the correct way to get the value of marks key.
student = { "name": "Emma", "class": 9, "marks": 75 }
m = student.get(2)
m = student([2])
m = student['marks'])
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following machine learning techniques use labelled data for training?
Unsupervised Learning
Supervised Learning
Reinforcement Learning
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a classification algorithm?
Logistic Regression
K-Nearest Neighbours
Support Vector Machine
Agglomerative Hierarchical Algorithm
10 questions
Quiz email belajar.id
Quiz
•
1st Grade - Professio...
8 questions
Sales
Quiz
•
1st Grade
10 questions
Quis Meeting Bulanan
Quiz
•
1st Grade
10 questions
Python Marathon (Average Round)
Quiz
•
1st - 6th Grade
10 questions
Educación Activo 20-30 1.0
Quiz
•
1st - 12th Grade
10 questions
Novae 3
Quiz
•
1st - 12th Grade
10 questions
ID Pr#d#ct H#ng##t: D#sb#rs#m#nt
Quiz
•
1st Grade
10 questions
Android Java Programming - Q1
Quiz
•
1st Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz
Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set
Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025
Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)
Quiz
•
9th - 12th Grade
15 questions
June Review Quiz
Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles
Quiz
•
8th Grade
25 questions
Triangle Inequalities
Quiz
•
10th - 12th Grade