
I Years_Python
Authored by SHANMUGAPRIYA.P MCE-LECT/IT
Other
Professional Development
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the correct way to declare a variable in Python?
int x = 5;
x = 5
x := 5
x -> 5
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is NOT a valid data type in Python?
int
float
char
str
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of print(type(3.14))?
<class 'int'>
<class 'float'>
<class 'double'>
<class 'str'>
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which keyword is used to define a function in Python?
def
function
func
define
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of print("Hello" + "World")?
HelloWorld
Hello World
Hello+World
Error
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the purpose of the len() function in Python?
To convert a string to lowercase
To return the length of an object
To check if a variable is defined
To calculate the square root
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of print(2 ** 3)?
6
8
9
Error
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
50 questions
BASIC FIRE BRIGADE
Quiz
•
Professional Development
55 questions
OIC Reviewer
Quiz
•
Professional Development
50 questions
Toll gate 2 new joinees 1st batch
Quiz
•
Professional Development
51 questions
COSAS BARIAS
Quiz
•
Professional Development
50 questions
UQ/L-3/BK-3/Assessment/English
Quiz
•
Professional Development
50 questions
BL M-02 FIRE CODE FLASHCARDS 01
Quiz
•
University - Professi...
51 questions
BT - Ch-3 (BPP) Culture
Quiz
•
Professional Development
55 questions
BT - Ch-10 Indentifying and Preventing Fraud
Quiz
•
Professional Development
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
Discover more resources for Other
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...