I Years_Python
Quiz
•
Other
•
Professional Development
•
Practice Problem
•
Hard
SHANMUGAPRIYA.P MCE-LECT/IT
Used 2+ times
FREE Resource
Enhance your content in a minute
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
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
53 questions
OSHA, NFPA, Workplace Safety
Quiz
•
8th Grade - Professio...
45 questions
Chapter 1: The History of Barbering
Quiz
•
Professional Development
47 questions
Stage 2 - Miscellaneous
Quiz
•
Professional Development
50 questions
WEEKLY QUIZ - FINALE
Quiz
•
KG - Professional Dev...
55 questions
National Identity
Quiz
•
Professional Development
50 questions
SOAL LATIHAN AKG GURU MADRASAH 2020 TAHAP 2
Quiz
•
Professional Development
50 questions
LET Reviewer - General Education (1-50)
Quiz
•
KG - Professional Dev...
50 questions
ETC review
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
