
питон 2

Quiz
•
English
•
Professional Development
•
Easy
кек .
Used 1+ times
FREE Resource
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.
Create a free account and access millions of resources
Similar Resources on Wayground
24 questions
PRE-INTERMEDIATE 2 EXAM DECEMBER 2024

Quiz
•
Professional Development
26 questions
Repaso Intro 3

Quiz
•
Professional Development
30 questions
Was were

Quiz
•
Professional Development
25 questions
Wh Question Words

Quiz
•
2nd Grade - Professio...
25 questions
Unit 8: much, many, a lot of

Quiz
•
Professional Development
28 questions
Syllabus Quiz- Summer Semester

Quiz
•
Professional Development
24 questions
Adjectives vs adverbs

Quiz
•
KG - Professional Dev...
25 questions
English for Programmers - Preintermediate Level - Unit 2

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