
Exploring Python Fundamentals
Authored by Harikrishnan CS
Engineering
University
Used 1+ 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
10 sec • 1 pt
What is the output of the following code: print(type(5))?
int
char
float
error
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following is not a built-in data type in Python?
list
tuple
array
dictionary
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code: x = 10; while x > 0: x -= 1; print(x)?
10
1
0
-1
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How do you create a string in Python?
You can create a string in Python using single quotes, double quotes, or triple quotes.
You must use a specific library to create strings.
You can create a string using only numbers.
Strings can only be created with special characters.
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the result of the expression 'Hello' + ' World'?
HelloWorld
Hello World
Hello, World!
Hello World!
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which data type is used to store a sequence of characters?
boolean
integer
float
string
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What will be the output of print('Python'[::-1])?
nohtyP
nohtyP!
Python
Pyhton
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?