
Python Programming II CSE A

Quiz
•
Computers
•
12th Grade
•
Hard
satish kumar
Used 4+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following code? x = 10 if x > 5: x += 2 else: x -= 2 print(x)
10
12
8
7
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is correct about Python functions?
A function is defined using the def keyword
A function can return multiple values
A function can be passed as an argument to another function
All of the above
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following code? s = 'Hello' s = s[::-1] print(s)
olleH
Hello
oHell
lleHo
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following operations can be used to add an element to a list?
append()
extend()
insert()
All of the above
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the result of the following code? l = [1, 2, 3, 4] l[1:3] = [7, 8] print(l)
[1, 7, 8, 4]
[1, 2, 3, 4]
[1, 7, 4]
Error
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following code? my_set = {1, 2, 3, 4} my_set.add(2) print(my_set)
{1, 2, 3, 4}
{1, 2, 3}
{1, 2, 3, 4, 2}
Error
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which method is used to remove a key from a dictionary and return its value?
del
remove()
pop()
discard()
Create a free account and access millions of resources
Similar Resources on Wayground
22 questions
EXCEPTION HANDLING IN PYTHON

Quiz
•
University
15 questions
list in python

Quiz
•
10th - 12th Grade
19 questions
Python Loops Review

Quiz
•
9th - 12th Grade
20 questions
Python Programming Quiz

Quiz
•
9th Grade - University
17 questions
Tracing Loops in Java

Quiz
•
12th Grade
20 questions
Python-Lists_Dictionaries

Quiz
•
University
15 questions
Section 3A: Collect and process data using lists

Quiz
•
12th Grade
15 questions
PCEP Section 2a: Make decisions with if instruction

Quiz
•
12th Grade
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 Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade