
Python5

Quiz
•
Science
•
Professional Development
•
Hard
Cebotar Gabriela
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct syntax to output "Hello World" in Python?
echo "Hello World"
p(Hello World)
print("Hello World")
echo("Hello World");
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you insert COMMENTS in Python code?
/*This is a com*/
//This is a com
#This is a com
"This is a com"
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one is NOT a legal variable name?
my_var
_my_var
my-var
MyVar
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable with the numeric value 5?
x = 5
x = int(5)
both
none
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct file extension for Python files
.pyth
.py
.pt
.pyt
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable with the floating number 2.8?
x = float(2.8)
both
none
x = 2.8
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to output the type of a variable or object in Python?
print(typeof(x))
print(typeof x)
print(type(x))
print(typeOf(x))
Create a free account and access millions of resources
Similar Resources on Wayground
8 questions
KUIS EDUREKREASI - PAKET 2

Quiz
•
Professional Development
15 questions
Kodlama ve Bilişim

Quiz
•
Professional Development
7 questions
Your Background

Quiz
•
Professional Development
13 questions
Nuevo modelo de contribución: Sesión 2

Quiz
•
Professional Development
7 questions
Quiz til Anne og Kirsten

Quiz
•
Professional Development
9 questions
319 IDE

Quiz
•
Professional Development
10 questions
Module 5 & Module 6

Quiz
•
University - Professi...
12 questions
Vårblommande lignoser 2/2

Quiz
•
Professional Development
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade