
python basic 1
Authored by Vengadapathiraj M
Computers
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the proper syntax to check if a particular element is present in a list?
if ele in list
if not ele not in list
Both A & B
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
Five neither thrive three
Five neither three thrive
three three three three
Five neither Five neither
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
def check(a):
print("Even" if a % 2 == 0 else "Odd")
check(12)
Even
Odd
Error
None
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
example = ["Sunday", "Monday", "Tuesday", "Wednesday"];
print(example[-3:-1])
['Sunday', 'Monday']
['Sunday', 'Tuesday']
['Monday', 'Tuesday']
['Wednesday', 'Monday']
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
a = [1, 2]
print(a * 3)
Error
[1, 2]
[1, 2, 1, 2]
[1, 2, 1, 2, 1, 2]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
example = ["Sunday", "Monday", "Tuesday", "Wednesday"];
del example[2]
print(example)
['Sunday', 'Monday', 'Wednesday']
['Monday', 'Tuesday', 'Wednesday']
['Sunday', 'Monday', 'Tuesday', 'Wednesday']
['Sunday', 'Monday', 'Tuesday']
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the type of the variable sorted_numbers in the below code snippet?
numbers = (4, 7, 19, 2, 89, 45, 72, 22)
sorted_numbers = sorted(numbers)
print(sorted_numbers)
List
Tuple
String
Int
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
15 questions
Monday Week#2
Quiz
•
University
16 questions
Principles of Information Technology
Quiz
•
9th Grade - University
10 questions
cybercrime
Quiz
•
12th Grade - University
20 questions
C Quest 2.0
Quiz
•
University
12 questions
Python02
Quiz
•
University
11 questions
Understanding Image Representation and Compression
Quiz
•
10th Grade - University
10 questions
CSE205-DCN-QUIZ-UNIT-5
Quiz
•
University
20 questions
PHP First Internal Practical Viva
Quiz
•
University
Popular Resources on Wayground
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
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade