BPSC TRE – Python & Web Scripting Languages | Test 1

Questions 6-10 of 50

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

Question 6

MCQ · Single Correct 1 mark

What will be the output of bool([]) and bool([0]) in Python?

Answers for question 6

Question 7

MCQ · Single Correct 1 mark

Which function converts a JSON string into a corresponding Python data structure (e.g., dictionary)?

Answers for question 7

Question 8

MCQ · Single Correct 1 mark

What is the output of len({1, 2, 2, 3, 3, 3}) in Python?

Answers for question 8

Question 9

MCQ · Single Correct 1 mark

What does the *args syntax in a Python function definition allow?

Answers for question 9

Question 10

MCQ · Single Correct 1 mark

In Python file handling, what is the behavior of opening a file in 'r+' mode?

Answers for question 10
Scroll to Top