
Python Quiz -7 Summer Internship

Quiz
•
Professional Development
•
Professional Development
•
Medium

Gnaneshwar Reddy
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to create a list in Python?
A. list = {}
B. list = ()
C. list = []
D. list = <>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the first element of a list named my_list?
A. my_list(0)
B. my_list[0]
C. my_list{0}
D. my_list<0>
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of print(len([1, 2, 3, 4]))?
A. 3
B. 4
C. 5
D. Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you add an element 5 to the end of a list named numbers?
A. numbers.append(5)
B. numbers.add(5)
C. numbers.insert(5)
D. numbers.extend(5)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to remove the last element from a list named items?
A. items.delete()
B. items.remove()
C. items.pop()
D. items.clear()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of print([1, 2, 3] + [4, 5, 6])?
A. [1, 2, 3, 4, 5, 6]
B. [[1, 2, 3], [4, 5, 6]]
C. [1, 2, 3, [4, 5, 6]]
D. [1, 2, 3, 4, 5]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of print([1, 2, 3] * 2)?
A. [1, 2, 3, 1, 2, 3]
B. [2, 4, 6]
C. [1, 2, 3, 3, 2, 1]
D. [1, 2, 3, 1]
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Kiểm tra nghi thức Đội TNTP Hồ Chí Minh

Quiz
•
Professional Development
15 questions
VĐH TUẦN 04-06-2024

Quiz
•
Professional Development
10 questions
REFRESH PERSONAL LOCK HOLDER

Quiz
•
Professional Development
10 questions
Communication and Interpersonal Skills

Quiz
•
Professional Development
8 questions
Preparing for Work

Quiz
•
Professional Development
15 questions
QUIZ ON SRENGTHENING EARLY CHILDHOOD CARE AND EDUCATION

Quiz
•
Professional Development
14 questions
Treasure Hunt

Quiz
•
Professional Development
11 questions
ILA brg module 13 post test

Quiz
•
Professional Development
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