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

O Level Python Paper January 2024

Question: 5 Report Error

PEMDAS में E क्या है?

What is E in PEMDAS?

A)
B)
C)
D)

Question: 6 Report Error

a*=8 ______ के समान है

a*=8 same as ______

A)
B)
C)
D)
Explanation

The expression a *= 8 is shorthand for a = a * 8.

So, the correct answer is:

Answer: (D) a = a * 8

Correct Answer: D) a=a*8


Question: 9 Report Error

165 और 268 के बीच की सीमा में निम्नलिखित में से कौन सी एकमात्र सही फाइबोनैचि संख्या है?

Which of the following is the only correct Fibonacci number in the range between 165 and 268?

A)
B)
C)
D)
Explanation

The Fibonacci sequence starts as: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, ...

Looking at the options:

  • 144 is less than 165.
  • 233 is between 165 and 268.
  • 377 is greater than 268.
  • 200 is not a Fibonacci number.

Thus, the correct Fibonacci number between 165 and 268 is 233.

Answer: (B) 233

Correct Answer: B) 233


Question: 12 Report Error

इस कोड का आउटपुट क्या है:

What is the output of this code:

def add(x, y):
      return x + y;
print(add(3, 4))
A)
B)
C)
D)
Explanation

The function add(x, y) returns the sum of x and y.

When calling add(3, 4), it will return 3 + 4 = 7.

So, the output will be 7.

Answer: (C) 7

Correct Answer: C) 7


Question: 16 Report Error

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code?

def sum(x):
    return x * x
print(sum(4))
A)
B)
C)
D)
Explanation

The function sum(x) returns the square of the input x, as it calculates x * x.

When calling sum(4), it will compute 4 * 4 = 16.

So, the output will be 16.

Answer: (B) 16

Correct Answer: B) 16


Question: 18 Report Error

यदि A = 16 और B = 15 है तो नीचे दिए गए व्यंजक का मूल्यांकन करें।

Evaluate the expression given below if A = 16 and B = 15.

A % B // A
A)
B)
C)
D)
Explanation
  1. Modulo (%): 16 % 15 = 1
  2. Floor division (//): 1 // 16 = 0

So, the result is 0.

Answer: (B) 0

Correct Answer: B) 0


Question: 19 Report Error

निम्नलिखित अभिव्यक्ति का परिणाम क्या होगा?

What will be the result of the following expression?

“4 + 5”
A)
B)
C)
D)
Explanation

The expression "4 + 5" is a string. When the + operator is used with strings, it performs concatenation, not addition.

So, "4" + "5" will result in the string "45", not the sum of the numbers 4 and 5.

Answer: (A) 45

Correct Answer: A) 45


Question: 23 Report Error

इसका आउटपुट क्या होगा: print(5&3)

what will the output of : print(5&3)

A)
B)
C)
D)
Explanation

The bitwise AND of 5 (0101) and 3 (0011) results in 0001, which is 1 in decimal.

Answer: (A) 1

Correct Answer: A) 1


Question: 24 Report Error

print(math.fabs(-3.4)) निष्पादित करने पर क्या प्रदर्शित होता है?

What is displayed on executing print(math.fabs(-3.4))?

A)
B)
C)
D)
Explanation

The math.fabs() function returns the absolute value of a number, meaning it removes the negative sign if the number is negative.

So, math.fabs(-3.4) will return 3.4.

Answer: (B) 3.4

Correct Answer: B) 3.4


Question: 26 Report Error

निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?

What will be the output of the following Python code snippet?

print('Ab!2'.swapcase())
A)
B)
C)
D)
Explanation

The swapcase() method changes uppercase letters to lowercase and vice versa. So, 'Ab!2' becomes 'aB!2'.

Answer: (C) aB!2

Correct Answer: C) aB!2


Question: 27 Report Error

यदि x = math.factorial(0) है तो x का मान क्या है?

What is the value of x if x = math.factorial(0)?

A)
B)
C)
D)
Explanation

The factorial of 0 is defined as 1. This is a standard mathematical definition.

So, if x = math.factorial(0), the value of x will be 1.

Answer: (B) 1

Correct Answer: B) 1


Question: 29 Report Error

निम्नलिखित में से कौन-सी टुपल की विशेषता है/हैं?

Which of the following is/are features of tuple?

A)
B)
C)
D)

Question: 32 Report Error

आउटपुट क्या है

What is the output

>>>max("what are you")
A)
B)
C)
D)
Explanation

The max() function returns the largest element in an iterable based on its lexicographical order (alphabetical order).

For the string "what are you", the largest character (based on ASCII values) is 'y'.

So, the output will be:

Answer: (D) y

Correct Answer: B) u


Question: 33 Report Error

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code?

import numpy as np
arr = np.array([1, 2, 3])
print(arr.shape)
A)
B)
C)
D)
Explanation

The shape attribute of a NumPy array returns a tuple that represents the dimensions of the array.

For the array arr = np.array([1, 2, 3]), it is a one-dimensional array with 3 elements.

So, arr.shape will return (3,), indicating a 1-dimensional array with 3 elements.

Answer: (A) (3,)

Correct Answer: A) (3,)


Question: 34 Report Error

कौन सा सही नहीं है?

Which is not correct?

A)
B)
C)
D)

Question: 35 Report Error

निम्नलिखित स्निपेट का आउटपुट क्या है:

What is the output of following snippet:

x=10 
y=3 
print(divmod(x,y))
A)
B)
C)
D)
Explanation

The divmod(x, y) function returns a tuple with the quotient and remainder of x divided by y.

For x = 10 and y = 3, the result is (3, 1).

Answer: (A) (3, 1)

Correct Answer: A) (3, 1)


Question: 36 Report Error

आउटपुट क्या होगा >>>"abcd"[2:]

What will be the output >>>"abcd"[2:]

A)
B)
C)
D)
Explanation

The slice "abcd"[2:] starts from index 2 and includes everything after it, which is "cd".

Answer: (C) cd

Correct Answer: C) cd


Question: 40 Report Error

(-3)**2 का आउटपुट क्या है?

What is the output of (-3)**2?

A)
B)
C)
D)
Explanation

The expression (-3)**2 means raising -3 to the power of 2.

When you square a negative number, the result is positive, so:

(-3)**2 = 9

Answer: (B) 9

Correct Answer: B) 9


Question: 43 Report Error

pip का मतलब पाइथॉन क्या है?

What does pip stand for python?

A)
B)
C)
D)

Question: 49 Report Error

'पायथन' प्रोग्रामिंग लैंग्वेज में निम्नलिखित में से कौन सा गलत है

Which of the following is false in ‘python’ Programming Language?

A)
B)
C)
D)

Question: 51 Report Error

समस्या समाधान में बुनियादी कदम क्या हैं?

What are the basic steps in problem solving?

A)
B)
C)
D)

Question: 53 Report Error

निम्नलिखित में से कौन सा precedence order पायथन में सही है?

Which of the following order of precedence is correct in fraction?

A)
B)
C)
D)

Question: 55 Report Error

EOL का मतलब है

EOL stands for

A)
B)
C)
D)

Question: 56 Report Error

मान लीजिए L [2, 3, 8, 4, 5] है, L[-1] क्या है?

Suppose L is [2, 3, 8, 4, 5], What is L[-1]?

A)
B)
C)
D)
Explanation

In Python, negative indexing means counting from the end of the list. So, L[-1] refers to the last element of the list.

For the list L = [2, 3, 8, 4, 5], the last element is 5.

Answer: (B) 5

Correct Answer: B) 5


Question: 57 Report Error

लूप में ब्रेक स्टेटमेंट का उद्देश्य क्या है?

What is the purpose of break statement in a loop?

A)
B)
C)
D)

Question: 60 Report Error

जावा एक ________ है

java is a ________

A)
B)
C)
D)

Question: 61 Report Error

निम्नलिखित में से कौन सी त्रुटि दिए गए कोड द्वारा लौटाई जाती है?

Which of the following error is returned by the given code ?

>>> f = open(“test.txt”,”w”) 
>>> f.write(345) 
A)
B)
C)
D)
Explanation

In Python, the write() method expects a string as an argument, but 345 is an integer. Therefore, attempting to write an integer directly to a file will cause a TypeError.

Answer: (B) Type Error

Correct Answer: B) Type Error


Question: 62 Report Error

निम्नलिखित कोड का आउटपुट लिखें:

Write the output of the following code :

>>> L=[‘w’,’e’,’l’,’c’,’o’,’m’,’e’]
>>> print(len(L))
A)
B)
C)
D)
Explanation

The list L contains the following characters: ['w', 'e', 'l', 'c', 'o', 'm', 'e']. It has 7 elements.

The len() function returns the number of elements in the list.

So, the output will be:

Answer: (A) 7

Correct Answer: A) 7


Question: 64 Report Error

यदि x=1 है तो निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?

What will be the output of the following Python code snippet if x=1?

x<<2
A)
B)
C)
D)
Explanation

The << operator shifts the bits to the left. For x = 1, the binary representation of 1 is 0001. Shifting it left by 2 positions gives 0100, which equals 4.

Answer: (D) 4

Correct Answer: D) 4


Question: 65 Report Error
Question: 66 Report Error

Sys.argv की लंबाई कितनी है?

What is the length of sys.argv?

A)
B)
C)
D)

Question: 71 Report Error
Question: 74 Report Error

"ईओएफ" का पूर्ण रूप क्या है?

What is the full form of "EOF"?

A)
B)
C)
D)

Question: 78 Report Error

पायथन में किसी फ़ंक्शन को कैसे घोषित किया जाता है?

How is a function declared in python?

A)
B)
C)
D)

Question: 83 Report Error

NumPy मॉड्यूल कैसे इम्पोर्ट करें?

How to import NumPy module?

A)
B)
C)
D)

Question: 85 Report Error

सुन्न सरणी की विशेषताएँ क्या हैं?

What are the attributes of numpy array ?

A)
B)
C)
D)

Question: 86 Report Error

pickling क्या है?

What is the pickling?

A)
B)
C)
D)

Question: 92 Report Error

पायथन में लैम्ब्डा फ़ंक्शंस का उपयोग करने का प्राथमिक लाभ क्या है?

What is the primary advantage of using lambda functions in Python?

A)
B)
C)
D)

Question: 93 Report Error

Python में NumPy का उद्देश्य क्या है?

What is the purpose of NumPy in Python?

A)
B)
C)
D)

Question: 96 Report Error

सेट के बारे में इनमें से कौन सा सत्य नहीं है?

Which of these about a set is not true?

A)
B)
C)
D)

Question: 97 Report Error

निम्नलिखित function का अध्ययन कीजिए: इस कोड का आउटपुट क्या होगा?

Study the following function: What will be the output of this code?

import math
abs(math.sqrt(36))
A)
B)
C)
D)
Explanation

The function math.sqrt(36) computes the square root of 36, which is 6.0. The abs() function returns the absolute value of a number, and since 6.0 is already positive, abs(6.0) will still be 6.0.

So, the output will be:

Answer: (D) 6.0

Correct Answer: D) 6.0


Question: 99 Report Error
Related Papers



















































Latest Updates