Search Header Logo

Python Programming: Variables, F-string, User Input

Authored by Ivy Professional School

Education

Professional Development

13 Questions

Used 2+ times

Python Programming: Variables, F-string, User Input
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

OPEN ENDED QUESTION

3 mins • 1 pt

Full Name

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

Email ID

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • 1 pt

Student ID

Evaluate responses using AI:

OFF

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. What is the output of the following code?

x = 10

x= x + 5

print(x)

10

15

Error

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following?

x = 'hello'

y = x

x = x + ' world'

print(y)

'hello'

'hello world'

'world'

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code print?

x = 10

y = 20

print(f"{x=} and {y=}")

10 and 20

10= and 20=

x=10 and y=20

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following variable names is valid in Python?

1variable

variable name

variable-name

_variable

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?