
Untitled Quiz
Authored by SUCHETA MOHARANA
Information Technology (IT)
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct extension of Python files?
.pt
.pyt
.py
.python
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to display output in Python?
echo()
write()
display()
print()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of :
x = 5
print(type(x))
<type: int>
int
<class 'int'>
<int>
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of 10 // 3 in Python?
3.33
3
4
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in Python?
2value
my-value
my_value
my value
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write a single-line comment in Python?
//
/* comment */
# comment
-- comment
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the input() function do?
Displays output
Reads input from user
Ends program
None
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?