
Python Basics

Quiz
•
Computers
•
University
•
Medium
Josan Tamayo
Used 14+ times
FREE Resource
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
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following declares a variable x and assigned a value josan?
x="josan"
x=josan
print("josan")
input("josan")
9.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following are correct? Select two.
x="10"
x=10
x=input
x=sum=x
Similar Resources on Wayground
12 questions
C Basics

Quiz
•
University
10 questions
Session 2

Quiz
•
University
14 questions
Pseudocode Keywords

Quiz
•
11th Grade - University
10 questions
Python Basics

Quiz
•
University
14 questions
Java Operators

Quiz
•
University
12 questions
Gerbang Logika

Quiz
•
University
10 questions
PHP MCQ

Quiz
•
University
10 questions
DS UNIT-2 TEST-3

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University