
Exploring Python Basics
Authored by Hemalatha Kota
Computers
9th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the main data types in Python?
int, float, str, list, tuple, dict, set
float, string, boolean
string, number, object
boolean, character, array
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used for exponentiation in Python?
^
**
**/
**-
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write a conditional statement in Python?
if condition: # code to execute if condition is true elif another_condition: # code to execute if another_condition is true else: # code to execute if none of the above conditions are true
when condition: # code to execute
if condition: # execute code here
if condition then: # code to execute
4.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What is the escape sequence for a newline in Python?
\n
newline
\n
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you print 'Hello, World!' in Python?
echo 'Hello, World!'
print('Hello, World!')
console.log('Hello, World!')
print('Hello World')
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the print function in Python?
To store data in a variable.
To read data from a file.
To output data to the console.
To create a new function in Python.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you take user input in Python?
get_user_input()
read_input()
input()
input_value()
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 Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?