
Python Basics
Authored by Josan Tamayo
Computers
University
Used 14+ 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
Insert the missing part of the code below to output "Hello World".
____________("Hello World!")
x=
raw_input
input
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Create a variable named carname and assign the value Volvo to it.
carname = "Volvo"
carname = Volvo
Volvo="carname"
Volvo=carname
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Create a variable named x and assign the value 50 to it.
x=50
x="50"
50=x
"50"=x
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Create a variable called z, assign x + y to it.
x = 5
y = 10
_______
z=x+y
sum=x+y
x+y=sum
x+y=z
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Command to input a text or string?
raw_input
raw-input
input
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following lines has error?
- fname="josan"
- mi="d"
- age=30
- print("you are " +age + " years old")
4
1
2
3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following lines has error?
- x=15
- y=10
- difference=x-y
- print(diff)
4
1
2
3
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
ITE-1-Ch01-Quiz1
Quiz
•
University
10 questions
Node.js
Quiz
•
University
10 questions
Scratch (28th March)
Quiz
•
KG - University
12 questions
unit-3 test-2
Quiz
•
University
10 questions
PHP Introduction - Assignment 1
Quiz
•
University
10 questions
margaret hamilton
Quiz
•
University
9 questions
BASIC HTML
Quiz
•
University
10 questions
Java Control Flow statements
Quiz
•
University
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