BPSC TRE – Python & Web Scripting Languages | Test 1

Questions 11-15 of 50

0% completed (0/50 answered)
Your score 0/50 0 answered
Correct 0 Incorrect 0 Unanswered 50 Accuracy 0%

Question 11

MCQ · Single Correct 1 mark

What keyword is used in Python to yield values one at a time from a generator function?

Answers for question 11

Question 12

MCQ · Single Correct 1 mark

What does the Global Interpreter Lock (GIL) in CPython enforce?

Answers for question 12

Question 13

MCQ · Single Correct 1 mark

Which decorator in Python is used to define a method inside a class that does not receive an implicit self or cls reference?

Answers for question 13

Question 14

MCQ · Single Correct 1 mark

What is the output of [x**2 for x in range(5) if x % 2 == 0]?

Answers for question 14

Question 15

MCQ · Single Correct 1 mark

Which module in Python provides support for compiling and matching Regular Expressions?

Answers for question 15
Scroll to Top