
питон 2
Authored by кек .
English
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
29 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax for an if statement in Python?
if x > 5:
if (x > 5)
if x > 5 then:
if x > 5 {}
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used for comparison in Python?
==
=
><
===
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to write an else statement in Python?
else:
else if:
elseif:
else do:
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method in Python is used to convert a string to uppercase?
upper()
toUpperCase()
capitalize()
uppercase()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is used to handle exceptions in Python?
try-except
catch
error
throw
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax for defining a class in Python?
class MyClass:
MyClass class:
define MyClass:
class MyClass():
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the continue statement do in a loop in Python?
Skips the rest of the current loop iteration.
Exits the loop completely.
Restarts the loop from the beginning.
Breaks the loop and goes to the next statement.
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
26 questions
irregular verbs (past)
Quiz
•
Professional Development
25 questions
MOD ALC B. 10 L. 3
Quiz
•
Professional Development
25 questions
MOD ALC B. 10 L. 1
Quiz
•
Professional Development
25 questions
Lil Champs Test 🏆
Quiz
•
Professional Development
25 questions
FIRST UNIT QUIZ, ENG-5, NOVEMBER 13TH
Quiz
•
Professional Development
25 questions
Revision English M1 - for test 2
Quiz
•
Professional Development
24 questions
Unit 3 Quiz
Quiz
•
Professional Development
26 questions
Grammar general
Quiz
•
Professional Development
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
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
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for English
44 questions
Would you rather...
Quiz
•
Professional Development
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
12 questions
Mardi Gras Trivia
Quiz
•
Professional Development
14 questions
Valentine's Day Trivia!
Quiz
•
Professional Development
7 questions
Copy of G5_U5_L14_22-23
Lesson
•
KG - Professional Dev...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development