
Python Fundamentals
Authored by Rudy Emonvuon
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct syntax to output "Hello World" in Python?
p("Hello World")
echo "Hello World"
echo("Hello World")
print("Hello World")
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you insert COMMENTS in Python code?
#This is a comment
/*This is a comment*/
//This is a comment
#This is a comment#
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one is NOT a legal variable name?
myvar
my-var
Myvar
myvar
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable with the numeric value 5?
x = int(5)
x = 5
Both the other answers are correct
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct file extension for Python files?
.py
.pt
.pyth
.pyt
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following function convert a string to a float in python?
int(x [,base])
long(x [,base] )
float(x)
str(x)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable with the floating number 2.8?
x = float(2.8)
x = 2.8
Both the other answers are correct
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
20 questions
C Programming Unit-1 Test-2
Quiz
•
University
17 questions
Đề ôn tập cuối HKI lớp 5
Quiz
•
6th Grade - University
17 questions
Music, Politics, Poetry, Tech 2021
Quiz
•
3rd Grade - University
20 questions
TEST1.PY
Quiz
•
10th Grade - University
16 questions
Quiz #1
Quiz
•
University
19 questions
Javascript - Revisão
Quiz
•
University - Professi...
16 questions
LA3.C3: Variables
Quiz
•
9th Grade - University
20 questions
UTS Komputer dan Teknologi Informasi
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