
Python basic interactions
Authored by Sarbagya Malla
Computers
9th Grade
Used 14+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
28 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following Python program print?
x = 9 + 6 / 3 * 2 - 1
print(x)
9
12
11
21
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the correct declaration of a float variable with the value 3.14.
myFloat = int(3.14);
myFloat = 3;
pi= 3.14
myFloat = (int)3.14159;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following choices is NOT a Python variable type?
pineapple
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following program print?
a = "hi"
b = 4
c = a * b
print(type(c))
The program crashes and doesn’t print anything.
<type 'float'>
<type 'int'>
<type 'str'>
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose you have a variable defined a = "4". What is the variable type of a?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What kind of data does a float variable contain?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code print?
x = 3.4
y = 1
print(int(x))
print(x + y)
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
27 questions
Adobe Illustrator Quiz Review
Quiz
•
9th - 12th Grade
26 questions
Keyboard Letters
Quiz
•
1st - 12th Grade
23 questions
WordPress
Quiz
•
1st - 12th Grade
25 questions
PENILAIAN HARIAN 2 KELAS IX TIK
Quiz
•
9th - 12th Grade
24 questions
WORD Module 2 Review
Quiz
•
9th - 12th Grade
31 questions
Quiz
•
6th - 10th Grade
30 questions
Impact of Emerging Technologies
Quiz
•
7th - 9th Grade
24 questions
Unit 5 - Network Protocols
Quiz
•
9th - 11th Grade
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