Search Header Logo
Python - Type Casting

Python - Type Casting

Assessment

Interactive Video

Computers

8th Grade

Practice Problem

Medium

Created by

aaisha Shafqat

Used 4+ times

FREE Resource

30 questions

Show all answers

1.

SLIDE QUESTION

30 sec • Ungraded

2.

SLIDE QUESTION

30 sec • Ungraded

3.

SLIDE QUESTION

30 sec • Ungraded

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To display something on the screen, use this command:

print()

Print()

screen()

write()

display()

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

x = 5

y = 6

print(x*y)


The code above displays the following:

11

x*y

Syntax Error

30

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

cakeAmount = input()

print ("We have", cakeAmount, " cakes")


The above code is run. You type:

six


Select the correct output.

We have 6 cakes

We have six cakes

Error

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Operators used in python:


divide, multiply, add, subtract

/, *, +, -

div, mul, +, -

\, x, +, -

~, *, +, -

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?