q4 g7 w2

q4 g7 w2

7th Grade

10 Qs

quiz-placeholder

Similar activities

Learn C

Learn C

6th - 8th Grade

14 Qs

Milestone Exkul SMP SMA - Q8_2022_Python Exploration

Milestone Exkul SMP SMA - Q8_2022_Python Exploration

6th - 8th Grade

15 Qs

Year 7 Python

Year 7 Python

7th Grade

12 Qs

ASK Tingkatan 2 - Bab 003 (3.1.1-3.1.2)

ASK Tingkatan 2 - Bab 003 (3.1.1-3.1.2)

7th - 9th Grade

15 Qs

TH7-HKI-2

TH7-HKI-2

7th Grade

10 Qs

Python Basic

Python Basic

6th - 8th Grade

10 Qs

Basic Python

Basic Python

6th - 8th Grade

15 Qs

N5 SDD - Python input and output

N5 SDD - Python input and output

7th - 11th Grade

12 Qs

q4 g7 w2

q4 g7 w2

Assessment

Quiz

Computers

7th Grade

Hard

Created by

Fatma Maher

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the different data types in Python?

String, Integer, Float

Strings, Integers, Booleans

ASCII, Float, Integer

Characters, Numbers, Decimals

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you convert a variable to an integer data type in Python?

convert(variable)

variable = int(variable)

variable(int)

int(variable) = variable

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to add two numbers in Python?

total = number1 - number2

total = number1 * number2

total = number1 / number2

total = number1 + number2

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store whole numbers in Python?

Integer

Boolean

Float

String

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the command to convert a variable to float data type in Python?

variable = float(variable)

float(variable) = variable

convert(variable)

variable(float)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to get user input in Python?

enter_value()

user_input()

get_input()

input()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store numbers with a decimal point in Python?

String

Float

Integer

Boolean

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?