python

python

University

19 Qs

quiz-placeholder

Similar activities

AVINYA 2K25

AVINYA 2K25

University

19 Qs

DPSD QUIZ 1

DPSD QUIZ 1

University

20 Qs

DLD Unit 1 _ 2

DLD Unit 1 _ 2

University

20 Qs

wp_css

wp_css

University

20 Qs

Quizotronics Quiz

Quizotronics Quiz

University

20 Qs

Quiz Round For Group 1

Quiz Round For Group 1

University

20 Qs

NEXUS'25

NEXUS'25

University

20 Qs

QUIZ

QUIZ

University

23 Qs

python

python

Assessment

Quiz

Engineering

University

Easy

Created by

Avakaza Technologies

Used 1+ times

FREE Resource

19 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

1.      What will be the output of the following code?

x = 5

y = "5"

print(x + int(y))

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will be the output of the following expression?

print(2*3 **2)

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will be the output of the following code?

s = "Python"

print(s[-2])

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What does the following code output?

s = "hello world"

print(s.title())

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will be the output of the following code?

numbers = [10, 20, 30]

numbers.append(40)

print(numbers)

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will be the result of the following code?

lst = [1, 2, 3, 4, 5]

print(lst[1:4])

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will be the output of the following code?

d = {"a": 1, "b": 2}

print(d.get("c", 3))

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?