Search Header Logo

Python

Authored by MIZANUL HAKIM

Computers

10th Grade

Used 5+ times

Python
AI

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

20 sec • 2 pts

What is a correct way to declare a Python variable?

_x = 5

2 x = 5

x : 5
5 = x

2.

MULTIPLE CHOICE QUESTION

20 sec • 4 pts

True or False:
You can declare string variables with single or double quotes.
x = "Sma Muhammadiyah 8 Ciputat"
# is the same as
x = 'Sma Muhammadiyah 8 Ciputat'

False

True

3.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

True or False:
Variable names are not case-sensitive.
x = 7
# is the same as
X = 7

False

True

4.

DRAG AND DROP QUESTION

20 sec • 4 pts

Select the correct functions to print the data type of a variable:​

​ (a)   ( ​ (b)   (​ variabel))

print
type
typ
print(
echo

5.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

If name = "indah", what is a correct syntax for printing the data type of the variable name?

print(name.data_type())
print(type of name)
print(name.type)
print(type(name))

6.

FILL IN THE BLANKS QUESTION

20 sec • 2 pts

I have a variable and I want to print its data type, what is the data type of the variable?

data = "Andriano M. Daffa"

(a)  

7.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

What will be the result of the following code:

x1 = 90.597

x2 = int(x1)

print(str(x2))

90.597

90,597

91
90

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?