Connection restored!
Notification Center
Loading notifications...
Loading announcements...
INCOMING 1v1 DUEL! 10:00
@friend challenged you!
Topic · Room #HQ-0000
Accept & Join
Mention Scholar ↑↓ Enter / Click
Last time you were studying on Page 2.
STUDY & LEARNING DECK

High-Level Languages

Showing 25 of 250 total questions (Latest Added First).

Timed Quiz
Newest Classic 25 Qs
No Questions Match Your Filter

Try clearing filters or unchecking "Saved" / "Hide".

Question 201 NEW
📜 PYQs EASY
What is the output of print("Hi" * 3) in Python?
पायथन में print("Hi" * 3) का आउटपुट क्या होगा?
A
Hi 3
Hi 3
B
Hi3
Hi3
C
Error
एरर
D
HiHiHi
HiHiHi
Correct
Solution Breakdown:
-> In Python, multiplying a string by an integer repeats the string that many times ("Hi" * 3 produces "HiHiHi"). -> Hence, Option (D) is the correct answer.
-> पायथन में किसी स्ट्रिंग को पूर्णांक से गुणा करने पर वह स्ट्रिंग उतनी ही बार दोहराई जाती है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 202 NEW
📜 PYQs MEDIUM
Match the Python Data Structure with its Syntax: List — (a) {"a": 1, "b": 2} Tuple — (b) [1, 2, 3] Dictionary — (c) {1, 2, 3} Set — (d) (1, 2, 3)
पायथन डेटा स्ट्रक्चर को उसके सिंटैक्स से सुमेलित करें: लिस्ट — (a) {"a": 1, "b": 2} टपल — (b) [1, 2, 3] डिक्शनरी — (c) {1, 2, 3} सेट — (d) (1, 2, 3)
A
1-a, 2-b, 3-c, 4-d
1-a, 2-b, 3-c, 4-d
B
1-b, 2-a, 3-d, 4-c
1-b, 2-a, 3-d, 4-c
C
1-b, 2-d, 3-a, 4-c
1-b, 2-d, 3-a, 4-c
Correct
D
1-d, 2-b, 3-a, 4-c
1-d, 2-b, 3-a, 4-c
Solution Breakdown:
-> Correct matches: List ([]), Tuple (()), Dictionary ({key: value}), Set ({items}). -> Hence, Option (C) is the correct answer.
-> सही मिलान: 1-b, 2-d, 3-a, 4-c। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 203 NEW
📜 PYQs EASY
Which of the following is an INVALID comparison operator in Python?
निम्नलिखित में से कौन सा पायथन में एक अमान्य तुलनात्मक ऑपरेटर है?
A
==
==
B
&=
&=
Correct
C
>=
>=
D
!=
!=
Solution Breakdown:
-> ==, !=, >, <, >=, and <= are comparison operators. &= is a bitwise compound assignment operator, not a comparison operator. -> Hence, Option (B) is the correct answer.
-> &= एक बिटवाइज़ असाइनमेंट ऑपरेटर है, तुलनात्मक ऑपरेटर नहीं। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 204 NEW
📜 PYQs MEDIUM
What is the output of the following Python code? for i in range(6, 1, -2): print(i, end=" ")
उपरोक्त पायथन कोड का आउटपुट क्या होगा?
A
6 4 2
6 4 2
Correct
B
6 5 4 3 2
6 5 4 3 2
C
6 4 2 0
6 4 2 0
D
1 3 5
1 3 5
Solution Breakdown:
-> range(6, 1, -2) starts at 6, steps down by -2 each time, and stops before 1: generating 6, 4, and 2. -> Hence, Option (A) is the correct answer.
-> यह लूप 6 से शुरू होकर हर बार 2 घटाते हुए 1 से पहले रुकता है, जिससे 6 4 2 प्रिंट होता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 205 NEW
📜 PYQs MEDIUM
Evaluate the following statements about Python: (I) Python Lists are mutable (can be modified after creation). (II) Python Tuples are immutable (cannot be modified after creation).
पायथन के बारे में निम्नलिखित कथनों का मूल्यांकन करें: (I) पायथन लिस्ट म्यूटेबल (बदली जा सकने वाली) होती हैं। (II) पायथन टपल इम्यूटेबल (न बदली जा सकने वाली) होती हैं।
A
Only (I) is true
केवल (I) सत्य है
B
Only (II) is true
केवल (II) सत्य है
C
Neither (I) nor (II) is true
न तो (I) और न ही (II) सत्य है
D
Both (I) and (II) are true
(I) और (II) दोनों सत्य हैं
Correct
Solution Breakdown:
-> Mutability is the primary difference between Python Lists ([], mutable) and Tuples ((), immutable). -> Hence, Option (D) is the correct answer.
-> लिस्ट को बदला जा सकता है (म्यूटेबल) और टपल को नहीं बदला जा सकता (इम्यूटेबल), अतः दोनों कथन सत्य हैं। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 206 NEW
📜 PYQs EASY
Which popular Python web frameworks are widely used for building backend web applications?
बैकएंड वेब एप्लिकेशन बनाने के लिए किन लोकप्रिय पायथन वेब फ्रेमवर्क का व्यापक उपयोग किया जाता है?
A
Bootstrap and Tailwind
बूटस्ट्रैप और टेलविंड
B
Angular and Vue
एंगुलर और व्यू
C
Django and Flask
जैंगो और फ्लास्क
Correct
D
Spring Boot and Hibernate
स्प्रिंग बूट और हाइबरनेट
Solution Breakdown:
-> Django (full-featured) and Flask (lightweight micro-framework) are the two most famous Python backend web frameworks. -> Hence, Option (C) is the correct answer.
-> जैंगो (Django) और फ्लास्क (Flask) पायथन के सबसे लोकप्रिय वेब डेवलपमेंट फ्रेमवर्क हैं। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 207 NEW
📜 PYQs MEDIUM
Which of the following is the correct block structure for Exception Handling in Python?
पायथन में एक्सेप्शन हैंडलिंग के लिए निम्नलिखित में से कौन सी ब्लॉक संरचना सही है?
A
try ... catch
try ... catch
B
try ... except
try ... except
Correct
C
do ... catch
do ... catch
D
check ... error
check ... error
Solution Breakdown:
-> Unlike Java/C++ which use try...catch, Python uses try...except (with optional else and finally blocks) to handle runtime exceptions. -> Hence, Option (B) is the correct answer.
-> Java और C++ में try...catch होता है, जबकि पायथन में try...except ब्लॉक का उपयोग किया जाता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 208 NEW
📜 PYQs EASY
Which Python keyword is used as a null placeholder (doing nothing) inside an empty function or loop to avoid a syntax error?
पायथन में किसी खाली फंक्शन या लूप के अंदर सिंटैक्स एरर से बचने के लिए किस कीवर्ड का उपयोग प्लेसहोल्डर के रूप में किया जाता है?
A
pass
pass
Correct
B
skip
skip
C
null
null
D
empty
empty
Solution Breakdown:
-> Python does not allow empty indented blocks; writing pass tells the interpreter to do nothing and continue cleanly. -> Hence, Option (A) is the correct answer.
-> pass एक नल स्टेटमेंट है जो खाली ब्लॉक में सिंटैक्स एरर आने से रोकता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 209 NEW
📜 PYQs EASY
What is "PIP" in the Python ecosystem?
पायथन इकोसिस्टम में "PIP" क्या है?
A
A Python compiler
एक पायथन कंपाइलर
B
A built-in web browser
एक इनबिल्ट वेब ब्राउज़र
C
A text editor
एक टेक्स्ट एडिटर
D
Python's standard Package Manager used to install external libraries (like pip install numpy)
पायथन का मानक पैकेज मैनेजर जिसका उपयोग बाहरी लाइब्रेरी इंस्टॉल करने के लिए होता है
Correct
Solution Breakdown:
-> PIP (Pip Installs Packages) downloads and installs third-party packages from the Python Package Index (PyPI). -> Hence, Option (D) is the correct answer.
-> PIP पायथन का पैकेज मैनेजर है जिसकी मदद से numpy, pandas जैसी बाहरी लाइब्रेरी आसानी से इंस्टॉल की जाती हैं। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 210 NEW
📜 PYQs EASY
What is the output of print(type(10.5)) in Python?
पायथन में print(type(10.5)) का आउटपुट क्या होगा?
A
<class 'int'>
<class 'int'>
B
<class 'str'>
<class 'str'>
C
<class 'float'>
<class 'float'>
Correct
D
<class 'double'>
<class 'double'>
Solution Breakdown:
-> Python uses float for all decimal numbers (it does not have a separate double type like C/Java). -> Hence, Option (C) is the correct answer.
-> पायथन में सभी दशमलव संख्याओं के लिए float डेटा टाइप होता है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 211 NEW
📜 PYQs MEDIUM
What is the output of the string slicing expression "PYTHON"[1:4] in Python?
पायथन में स्ट्रिंग स्लाइसिंग व्यंजक "PYTHON"[1:4] का आउटपुट क्या होगा?
A
"PYT"
"PYT"
B
"YTH"
"YTH"
Correct
C
"YTHO"
"YTHO"
D
"PYTH"
"PYTH"
Solution Breakdown:
-> Python string indexing starts at 0 (P=0, Y=1, T=2, H=3, O=4, N=5). Slicing [1:4] starts at index 1 and stops BEFORE index 4, returning "YTH". -> Hence, Option (B) is the correct answer.
-> स्लाइसिंग [1:4] इंडेक्स 1 से शुरू होकर इंडेक्स 4 से ठीक पहले (इंडेक्स 3 तक) के अक्षर लेता है, जिससे "YTH" मिलता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 212 NEW
📜 PYQs MEDIUM
Which Python data type is an unordered collection of UNIQUE elements (automatically removing any duplicate values)?
पायथन में कौन सा डेटा टाइप यूनिक तत्वों का एक अव्यवस्थित संग्रह है जो डुप्लीकेट मानों को अपने आप हटा देता है?
A
set
सेट
Correct
B
list
लिस्ट
C
tuple
टपल
D
string
स्ट्रिंग
Solution Breakdown:
-> A Python set (e.g., {1, 2, 2, 3} becomes {1, 2, 3}) stores only unique items and supports mathematical set operations like union and intersection. -> Hence, Option (A) is the correct answer.
-> पायथन set केवल अद्वितीय (Unique) तत्व रखता है और डुप्लीकेट मानों को स्वतः हटा देता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 213 NEW
📜 PYQs EASY
What is the output of print(15 // 4) in Python?
पायथन में print(15 // 4) का आउटपुट क्या होगा?
A
3.75
3.75
B
4
4
C
3.0
3.0
D
3
3
Correct
Solution Breakdown:
-> // is the Floor Division operator, which divides and rounds DOWN to the nearest whole integer (15 -> Hence, Option (D) is the correct answer.
-> 4 = 3.75, floored to 3). / // (फ्लोर डिवीज़न) भाग देने के बाद दशमलव हटाकर नीचे की ओर निकटतम पूर्णांक (3) देता है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 214 NEW
📜 PYQs EASY
What is the output of print(2 ** 3) in Python?
पायथन में print(2 ** 3) का आउटपुट क्या होगा?
A
6
6
B
5
5
C
8
8
Correct
D
9
9
Solution Breakdown:
-> In Python, ** is the Exponentiation (power) operator. Therefore, 2 ** 3 calculates $2^3 = 8$. -> Hence, Option (C) is the correct answer.
-> पायथन में ** घात (Power) निकालने का ऑपरेटर है, इसलिए 2 ** 3 का मान $2^3 = 8$ होगा। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 215 NEW
📜 PYQs EASY
Which built-in Python function is used to read text input from the user via the keyboard?
कीबोर्ड के माध्यम से उपयोगकर्ता से टेक्स्ट इनपुट लेने के लिए पायथन के किस इनबिल्ट फंक्शन का उपयोग किया जाता है?
A
scan()
scan()
B
input()
input()
Correct
C
read()
read()
D
get()
get()
Solution Breakdown:
-> In Python 3, input() always reads user input and returns it as a String (str), which can be converted to an integer using int(input()). -> Hence, Option (B) is the correct answer.
-> पायथन 3 में input() फंक्शन यूज़र से डेटा लेता है और उसे हमेशा स्ट्रिंग (str) के रूप में लौटाता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 216 NEW
📜 PYQs EASY
Which built-in Python function returns the total number of items in a list, string, tuple, or dictionary?
पायथन का कौन सा इनबिल्ट फंक्शन किसी लिस्ट, स्ट्रिंग, टपल या डिक्शनरी में कुल तत्वों की संख्या बताता है?
A
len()
len()
Correct
B
size()
size()
C
count()
count()
D
length()
length()
Solution Breakdown:
-> len("Python") returns 6, and len([10, 20, 30]) returns 3. -> Hence, Option (A) is the correct answer.
-> len() फंक्शन किसी भी सीक्वेंस या कलेक्शन की लंबाई (तत्वों की कुल संख्या) बताता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 217 NEW
📜 PYQs MEDIUM
Which type of function arguments in Python allow you to pass values out of order by explicitly specifying the parameter names?
पायथन में किस प्रकार के फंक्शन आर्ग्युमेंट्स आपको पैरामीटर का नाम लिखकर किसी भी क्रम में मान पास करने की अनुमति देते हैं?
A
Required Arguments
रिक्वायर्ड आर्ग्युमेंट्स
B
Default Arguments
डिफ़ॉल्ट आर्ग्युमेंट्स
C
Positional Arguments
पोजिशनल आर्ग्युमेंट्स
D
Keyword Arguments
कीवर्ड आर्ग्युमेंट्स
Correct
Solution Breakdown:
-> With Keyword Arguments (e.g., student(age=20, name="Ravi")), Python matches values to parameters by name rather than position. -> Hence, Option (D) is the correct answer.
-> कीवर्ड आर्ग्युमेंट्स में पैरामीटर के नाम से मान मिलाए जाते हैं, इसलिए क्रम बदलने पर भी कोई त्रुटि नहीं होती। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 218 NEW
📜 PYQs MEDIUM
What are the two standard modes in which the Python Interpreter can be used?
पायथन इंटरप्रेटर का उपयोग करने के दो मानक मोड कौन से हैं?
A
Compile Mode and Link Mode
कंपाइल मोड और लिंक मोड
B
Static Mode and Dynamic Mode
स्टैटिक मोड और डायनामिक मोड
C
Interactive Mode and Script Mode
इंटरैक्टिव मोड और स्क्रिप्ट मोड
Correct
D
Online Mode and Offline Mode
ऑनलाइन मोड और ऑफलाइन मोड
Solution Breakdown:
-> In Interactive Mode, you type and run commands one by one at the >>> prompt; in Script Mode, you write code in a .py file and run the entire file. -> Hence, Option (C) is the correct answer.
-> इंटरैक्टिव मोड में एक-एक कमांड सीधे शेल में चलता है, जबकि स्क्रिप्ट मोड में .py फाइल बनाकर पूरा प्रोग्राम चलाया जाता है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 219 NEW
📜 PYQs MEDIUM
In Python-MySQL database connectivity, which data type is returned by the cursor.fetchall() method?
पायथन-MySQL डेटाबेस कनेक्टिविटी में fetchall() मेथड द्वारा सामान्यतः कौन सा डेटा टाइप रिटर्न किया जाता है?
A
A single dictionary
एक सिंगल डिक्शनरी
B
A list of tuples (or an empty list if no rows are available)
टपल्स की एक लिस्ट (या कोई रो न होने पर खाली लिस्ट)
Correct
C
A single string
एक सिंगल स्ट्रिंग
D
An integer
एक पूर्णांक
Solution Breakdown:
-> fetchall() retrieves all remaining rows of a SQL query result set, representing each row as a tuple inside a Python list. -> Hence, Option (B) is the correct answer.
-> fetchall() क्वेरी की सभी पंक्तियों को एक लिस्ट के अंदर टपल्स के रूप में लौटाता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 220 NEW
📜 PYQs MEDIUM
What is the output of the following Python pandas code? import pandas as pd pd.Series([10, 20], index=['A', 'B', 'C'])
उपरोक्त pandas कोड को चलाने पर क्या परिणाम आएगा?
A
ValueError
ValueError
Correct
B
SyntaxError
SyntaxError
C
NameError
NameError
D
IndexError
IndexError
Solution Breakdown:
-> The data list has 2 elements ([10, 20]) while the index list has 3 labels (['A', 'B', 'C']). This length mismatch raises a ValueError in Pandas. -> Hence, Option (A) is the correct answer.
-> डेटा में 2 तत्व और इंडेक्स में 3 लेबल होने के कारण लंबाई का मेल नहीं बैठता, जिससे ValueError आता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 221 NEW
📜 PYQs MEDIUM
What is the output of the following NumPy code? import numpy as np A = np.array([12, 23]) B = np.array([10, 20]) print(A - B)
उपरोक्त NumPy कोड का आउटपुट क्या होगा?
A
[-2 -3]
[-2 -3]
B
[22 43]
[22 43]
C
[12 23]
[12 23]
D
[2 3]
[2 3]
Correct
Solution Breakdown:
-> NumPy performs element-wise subtraction on arrays of the same shape: [12 - 10, 23 - 20], outputting [2 3]. -> Hence, Option (D) is the correct answer.
-> NumPy समान आकार के एरे पर तत्व-दर-तत्व घटाव करता है, जिससे [2 3] प्राप्त होता है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 222 NEW
📜 PYQs MEDIUM
Which of the following is an INVALID attribute of a NumPy ndarray?
निम्नलिखित में से कौन सा NumPy एरे (ndarray) का एक अमान्य एट्रिब्यूट है?
A
shape
shape
B
ndim
ndim
C
length
length
Correct
D
dtype
dtype
Solution Breakdown:
-> Valid NumPy array attributes include ndim (dimensions), shape (tuple of dimensions), size (total elements), and dtype (data type). There is no .length attribute. -> Hence, Option (C) is the correct answer.
-> shape, ndim, size और dtype वैध NumPy एट्रिब्यूट हैं, जबकि length कोई एट्रिब्यूट नहीं है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 223 NEW
📜 PYQs EASY
In Python's NumPy library, what are the dimensions of an array called?
पायथन की NumPy लाइब्रेरी में किसी एरे के आयामों (Dimensions) को क्या कहा जाता है?
A
Lines
लाइन्स
B
Axes
एक्सेस
Correct
C
Bars
बार्स
D
Rows
रोज़
Solution Breakdown:
-> In NumPy, dimensions are called axes, and the total number of axes (dimensions) is returned by the .ndim attribute. -> Hence, Option (B) is the correct answer.
-> NumPy में एरे के आयामों को 'एक्सेस' (Axes) कहा जाता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 224 NEW
📜 PYQs EASY
Which built-in Python module must be imported to use the mean(), median(), and mode() functions directly?
पायथन में mean(), median() और mode() फंक्शन का सीधे उपयोग करने के लिए किस मॉड्यूल को इम्पोर्ट करना होता है?
A
statistics
statistics
Correct
B
math
math
C
stats
stats
D
standard
standard
Solution Breakdown:
-> Python's standard library includes the statistics module specifically for statistical calculations like statistics.mean(), median(), and mode(). -> Hence, Option (A) is the correct answer.
-> पायथन की मानक लाइब्रेरी में सांख्यिकीय गणनाओं के लिए statistics मॉड्यूल दिया गया है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 225 NEW
📜 PYQs MEDIUM
What is the output of the following Python re (Regular Expression) code? import re print(re.sub(r'[ad]', '*', 'abcdef'))
उपरोक्त पायथन कोड का आउटपुट क्या होगा?
A
'*bcdef'
'*bcdef'
B
'abc*ef'
'abc*ef'
C
'bc*ef'
'bc*ef'
D
'*bc*ef'
'*bc*ef'
Correct
Solution Breakdown:
-> re.sub(pattern, replacement, string) replaces every match of the pattern. [ad] matches both 'a' and 'd', replacing them with '*' to produce '*bc*ef'. -> Hence, Option (D) is the correct answer.
-> re.sub() फंक्शन स्ट्रिंग में 'a' और 'd' दोनों को '*' से बदल देता है, जिससे '*bc*ef' प्राप्त होता है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Prev 7 8 9 10 Next
ESSENTIAL STUDY KIT

Master High-Level Languages Faster with Recommended Resources

Pair your daily MCQ practice with these educator-picked books, practice sets, and typing gear tailored for this syllabus.

Visit Exam Store
Dell KB216 Wired Multimedia USB Keyboard (Black)
Typing Keyboards Best for Mangal Typing Amazon
Dell KB216 Wired Multimedia USB Keyboard (Black)

Soft chiclet keys and zero lag — the best keyboard for UPP Computer Operator and DSSSB 40+ WPM Hindi/English typing tests.

₹299 ₹999 70% OFF
Affiliate Disclosure: HappyQuiz may earn a small commission on qualifying purchases at no extra cost to you.
Saved to your dashboard!