
python - ML1
Authored by Niranjani V
Computers
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
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the "input()" function in Python?
To print output on the console
To receive user input from the console
To convert strings to integers
To define new variables
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to prompt the user for input and store it in a variable called "name"?
a) input("Enter your name: ")
b) input("name")
c) name = input(0)
d) name = input("Enter your name: ")
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the "print()" function do in Python?
a) It receives user input from the console.
b) It converts strings to integers.
c) It displays output on the console.
d) It defines new variables.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is used to assign a value to a variable in Python?
a) store
b) var
c) val
d) =
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet?
message = "Hello, World!"
print(message[7:])
a) "World!"
b) "Hello"
c) "Hello, "
d) "World"
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the type of the variable "num" after executing the following code?
num = input("Enter a number: ")
a) integer
b) string
c) float
d) boolean
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
x = 10
y = "5"
print(x + int(y))
a) 15
b) "105"
c) "15"
d) 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
10 questions
Microsoft 365 for Teachers
Quiz
•
Professional Development
10 questions
CyberCrime
Quiz
•
5th Grade - Professio...
10 questions
Introduction to AI - Healthcare & Business
Quiz
•
University - Professi...
11 questions
5. Echo - Query And ORM
Quiz
•
Professional Development
10 questions
Name that App/Site
Quiz
•
Professional Development
10 questions
Table relationships, SQL and Pandas joins
Quiz
•
Professional Development
11 questions
APN Immersion Day - TTT
Quiz
•
Professional Development
10 questions
CEH Pre Assessment
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 Computers
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...