Python Programming: Variables, F-string, User Input

Python Programming: Variables, F-string, User Input

Professional Development

13 Qs

quiz-placeholder

Similar activities

Solving and Graphing Integers

Solving and Graphing Integers

4th Grade - Professional Development

16 Qs

Huruf ABAHATA - Tunggal

Huruf ABAHATA - Tunggal

1st Grade - Professional Development

15 Qs

Ms.Excel

Ms.Excel

Professional Development

15 Qs

HPK - KE

HPK - KE

Professional Development

11 Qs

Quiz Upgrading Wafa 1

Quiz Upgrading Wafa 1

Professional Development

10 Qs

Weekly Contest #1 - TechXNinjas

Weekly Contest #1 - TechXNinjas

Professional Development

12 Qs

Glaze Education

Glaze Education

Professional Development

18 Qs

Batch E420 - Python module Quiz

Batch E420 - Python module Quiz

Professional Development

15 Qs

Python Programming: Variables, F-string, User Input

Python Programming: Variables, F-string, User Input

Assessment

Quiz

Education

Professional Development

Medium

Created by

Ivy Professional School

Used 2+ times

FREE Resource

13 questions

Show all answers

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

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?