Python

Python

10th Grade

15 Qs

quiz-placeholder

Similar activities

Ch.8 - Introducing Python

Ch.8 - Introducing Python

6th Grade - Professional Development

20 Qs

Python variables and Data types

Python variables and Data types

10th - 12th Grade

10 Qs

Python_2R

Python_2R

KG - Professional Development

20 Qs

Procedures and Functions

Procedures and Functions

10th Grade

20 Qs

Data Types and Operations

Data Types and Operations

10th Grade

15 Qs

Python Input/Output

Python Input/Output

9th - 12th Grade

10 Qs

Hangman Game - Programming Questions

Hangman Game - Programming Questions

7th - 11th Grade

15 Qs

Python Syntax

Python Syntax

6th - 12th Grade

14 Qs

Python

Python

Assessment

Quiz

Computers

10th Grade

Hard

Created by

MIZANUL HAKIM

Used 5+ times

FREE Resource

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 BLANK 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"

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?