0% found this document useful (0 votes)
2 views2 pages

Python Questions 1

The document contains a series of programming questions related to Python, including tuple and list operations, string methods, dictionary usage, and list methods. It also includes true/false statements and assertions about Python behavior. The questions test knowledge on various Python concepts and syntax.

Uploaded by

stechnology741
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Python Questions 1

The document contains a series of programming questions related to Python, including tuple and list operations, string methods, dictionary usage, and list methods. It also includes true/false statements and assertions about Python behavior. The questions test knowledge on various Python concepts and syntax.

Uploaded by

stechnology741
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

21.

State if the following statement is True or False:

If T is a tuple and L is a list, then T+L is a valid statement in Python.

22. Identify the output:

s = "an apple. a toy."

s = [Link]('a', 2)

print(s)

23. What is the value of the following expression?

3 + 3, 3**3

24. What is the output?

Sports = "Paralympic Games"

print([Link]("m"))

25. What will be the output?

p = list("Session 2024-25")

print(p[10:20:])

26. If dictionary D1 = {1:'a', 2:'b'}, which statement is incorrect?

(A) [Link](1)

(B) [Link](3)

(C) [Link](1)

(D) [Link]()

27. Which list method accepts exactly two parameters?

(A) append()

(B) extend()

(C) insert()

(D) pop()

28. State True or False:

print() evaluates the expression before displaying.

29. Assertion & Reason:


Assertion: Every object has a unique ID.

Reason: ID remains same during lifetime.

30. Difference between = and == with examples.

You might also like