
class 12
Authored by YASHWANT YADAV
Computers
11th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of error handling in Python?
To add new features to the code.
To simplify the code structure.
To improve the speed of the program.
The purpose of error handling in Python is to manage exceptions and ensure program stability.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define a function in Python?
function_name: parameters =>
function_name(parameters) =>
def function_name(parameters):
create function_name(parameters)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an identifier in Python? Give an example.
Example of an identifier: my_variable
myVariable123
123_variable
variable-my
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify the error in the following code: print('Hello World'
Missing closing parenthesis in the print statement.
Missing opening parenthesis in the print statement.
Incorrect function name used in the print statement.
Extra characters after the print statement.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code: my_list = [1, 2, 3]; print(my_list[1])?
2
4
3
1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you concatenate two strings in Python?
Use the '*' operator to concatenate strings.
Use the '+' operator to concatenate strings.
Use the '&' operator to combine strings.
Use the 'concat()' method to join strings.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a tuple and how is it different from a list?
A tuple can be changed after creation, whereas a list cannot.
A tuple is a mutable unordered collection of elements, while a list is an immutable ordered collection.
A tuple is an immutable ordered collection of elements, while a list is a mutable ordered collection.
A tuple is a collection of unique elements, while a list can contain duplicates.
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
20 questions
HISTORY OF COMPUTER_SUMMATIVE 1
Quiz
•
11th - 12th Grade
15 questions
Информатика
Quiz
•
9th - 11th Grade
20 questions
UH1_INFO_XII
Quiz
•
11th Grade
15 questions
4.6.4 Logic Gates
Quiz
•
10th Grade - Professi...
20 questions
Quiz
•
7th - 12th Grade
20 questions
แบบทดสอบปลายภาคโปรแกรมแอนิเมชัน
Quiz
•
9th - 12th Grade
17 questions
Data Structures: 1D,2D & List
Quiz
•
11th Grade
25 questions
HTML
Quiz
•
11th Grade
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