🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

O Level Python Paper January 2025

Question: 1 Report Error

पायथन में निम्नलिखित अभिव्यक्ति का मूल्यांकन किस रूप में किया जाएगा?

What will the following expression be evaluated to in Python?

print(15.0 / 4 + (8 + 3.0))
A)
B)
C)
D)
Explanation
  1. Parentheses first:

    • 8+3.0=11.0 (since 3.0 is a float, the result is also a float)

  2. Division operation:

    • 15.0/4=3.75 (since 15.0 is a float, floating-point division occurs)

  3. Addition:

    • 3.75+11.0=14.75

Correct Answer: A) 14.75


Question: 2 Report Error

फ्लोचार्ट में काउंटर का उपयोग किस लिए किया जाता है?

What is a counter used for in a flowchart?

A)
B)
C)
D)
Explanation

counter in a flowchart is typically used to keep track of how many times a loop or process has been executed. It helps control iterations, often increasing or decreasing in value with each cycle, ensuring that the process stops after a defined number of repetitions.

Correct Answer: A) To track the number of iterations or occurrences


Question: 3 Report Error

पायथन में संख्याओं को घात तक बढ़ाने के लिए प्रयुक्त ऑपरेटर का नाम बताइए?

Name the operator used in Python to raise numbersto the power?

A)
B)
C)
D)
Explanation
The operator used in Python to raise numbers to a power is the Exponentiation Operator.
In Python, this operator is represented by a double asterisk: **.

Correct Answer: B) Exponentiation Operator


Question: 4 Report Error

उस चीज़ का नाम बताइए जो डुप्लिकेट मानों की अनुमति नहीं देती है?

Name the thing which does not allow duplicate values?

A)
B)
C)
D)
Explanation
A set is the data structure that does not allow duplicate values. 
  • Sets: Store only unique elements. Any attempt to add a duplicate value will be ignored.
  • Lists: Are ordered and mutable, and they do allow duplicate members.
  • Tuples: Are ordered and immutable, and they also do allow duplicate members. 

Correct Answer: A) Set


Question: 5 Report Error

उस कथन का नाम बताइए जिसका उपयोग एक मॉड्यूल के सभी कार्यात्मकता को दूसरे में आयात करने के लिए किया जाता है।

Name the statement which is used to import all thefunctionally of one module into another.

A)
B)
C)
D)
Explanation
The correct statement for importing all the functionality of one module into another in Python is the import statement. 
While option A, import, is the correct keyword, there are a few variations of the import statement in Python that can achieve this, including:
  • import module_name: This imports the entire module, and you must access its contents using module_name.function_name.
  • from module_name import *: This statement imports all public functions, classes, and variables directly into the current namespace. However, this is generally discouraged in larger projects because it can cause namespace conflicts. 
The other options are incorrect:
  • assert: Used for debugging and testing to check if a condition is true.
  • try and Exception: Used for error handling. 

Correct Answer: A) import


Question: 6 Report Error

टुपल में किसी मान तक कैसे पहुँचें?

How to access a value in Tuple?

A)
B)
C)
D)
Explanation
The correct way to access a value in a tuple is by using square brackets with the item's index. 
Answer: b) mytuple[1] 
Here's a breakdown of why this is the correct answer and the others are not:
  • Correct: mytuple[1]
    • Tuples are an indexed collection, with the first item being at index 0, the second at index 1, and so on.
    • To access an item, you refer to its index number within square brackets after the tuple's name.

Correct Answer: B) mytuple [1]


Related Papers



















































Latest Updates