Python Mcqs Test Online

Start your preparation for Python Mcqs Test Online. This online test contains important MCQs from past papers. Attempting this test will help you prepare for Annual Exams and Entry Tests. Read the questions carefully and select the correct option below to see your result.

Python Mcqs Test

Total Questions: 20
Time Allowed: 10 Minutes
Total Marks: 20
How to Attempt Test: Please choose the right Option in MCQ-type question.
Test Helpful For: Computer Test
Competitive exam
Forces test
Fpsc
Entry test
Recruitment test

Python Mcqs Test Practice Online

 0%

Page 1 of 1

1. The output of executing string.ascii_letters can also be achieved by?

2. What is the output when following code is executed ?

>>>print r"\nhello"

The output is?

3. What is the output of the following?

print("xyyzxyzxzxyy".count('yy'))

4. What arithmetic operators cannot be used with strings ?

5. What is the output when following code is executed ?

>>>str1="helloworld"

>>>str1[::-1]

6. What is the output when following statement is executed ?

>>>"abcd"[2:]

7. Given a function that does not return any value, What value is thrown by itby default when executed in shell?

8. Which of these in not a core datatype?

9. What is the output of the following?

x = 'abcd'
for i in range(x):
print(i)

10. What is the return type of function id ?

11. What is the output when following statement is executed ?

>>>"a"+"bc"

12. What is the output when following statement is executed ?

>>>print '\x97\x98'

13. What is the output of the following?

x = 'abcd'
for i in x:
print(i)
x.upper()

14. What is the output when following code is executed ?

>>> str1 = 'hello'

>>> str2 = ','

>>> str3 = 'world'

>>> str1[-1:]

15. Print 0xA + 0xB + 0xC ?

16. What is the output of the following?

x = 'abcd'
for i in range(len(x)):
print(x)
x = 'a'

17. What is the output of the following?

x = 'abcd'
for i in x:
print(i.upper())

18. What is the output when following statement is executed ?

>>>print 'new' 'line'

19. What error occurs when you execute?
apple = mango

20. Following set of commands are executed in shell, what will be the output?

>>>str="hello"

>>>str[:2]

>>>


 

Study Plan for Python Mcqs Test Online

This test is crucial for your selection. It allows you to practice key questions from past papers.

How to Use GoTest for Preparation:

  • Focus on Keywords: Examiners often twist the question. Read the statement twice.
  • Instant Feedback: Use the “View Answers” feature after the test.
  • Consistency: Attempting 50 MCQs daily significantly improves retention.

Maan Ali

Hey there! I'm Maan Ali, your online test prep pal. Join me in the adventure of acing exams with ease. I'll share tricks, practice tests, and all you need to rock your studies. Let's make learning fun and success a sure thing!

One Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button