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 Filtered: 📜 PYQs

Computer PYQs

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

Timed Quiz
Newest Classic 25 Qs
No Questions Match Your Filter

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

Question 1401 NEW
📜 PYQs EASY
Which operator is used as the "Address-of" operator in C to obtain the memory address of a variable?
C भाषा में किसी वेरिएबल का मेमोरी एड्रेस प्राप्त करने के लिए किस ऑपरेटर का उपयोग किया जाता है?
A
`*`
`*`
B
`%`
`%`
C
`&`
`&`
Correct
D
`/`
`/`
Solution Breakdown:
-> The Ampersand (`&`) returns the RAM address of a variable (e.g., `&x` in `scanf("%d", &x)`), whereas `*` is the dereference (indirection) operator. -> Hence, Option (C) is the correct answer.
-> एम्परसैंड (`&`) ऑपरेटर किसी वेरिएबल का मेमोरी एड्रेस देता है, जिसका उपयोग `scanf()` और पॉइंटर्स में होता है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 1402 NEW
📜 PYQs EASY
Which operator is used in C to find the storage size (in bytes) of a data type or variable at compile time?
C भाषा में किसी डेटा टाइप या वेरिएबल का मेमोरी आकार (बाइट्स में) ज्ञात करने के लिए किस ऑपरेटर का उपयोग किया जाता है?
A
`length()`
`length()`
B
`sizeof`
`sizeof`
Correct
C
`count()`
`count()`
D
`typedef`
`typedef`
Solution Breakdown:
-> `sizeof` is a compile-time unary operator in C that returns the exact memory size in bytes allocated to a data type or variable (e.g., `sizeof(int)`). -> Hence, Option (B) is the correct answer.
-> `sizeof` एक कंपाइल-टाइम यूनरी ऑपरेटर है जो किसी डेटा टाइप या वेरिएबल द्वारा घेरी गई मेमोरी को बाइट्स में बताता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1403 NEW
📜 PYQs EASY
Which character is NOT allowed inside a variable name in C?
C भाषा में किसी वेरिएबल के नाम के अंदर किस प्रकार का कैरेक्टर वर्जित है?
A
White space characters (such as space or tab)
व्हाइट स्पेस कैरेक्टर (जैसे स्पेस या टैब)
Correct
B
Alphabets (`A-Z`, `a-z`)
अंग्रेजी अक्षर (`A-Z`, `a-z`)
C
Underscore (`_`)
अंडरस्कोर (`_`)
D
Digits (`0-9`, after the first character)
अंक (`0-9`, पहले अक्षर के बाद)
Solution Breakdown:
-> C variable names can contain letters, digits, and underscores (must not start with a digit), and spaces or special symbols like `@` or `-` are strictly prohibited. -> Hence, Option (A) is the correct answer.
-> C वेरिएबल नाम में स्पेस या विशेष चिह्नों (अंडरस्कोर को छोड़कर) का उपयोग नहीं किया जा सकता। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1404 NEW
📜 PYQs EASY
Which of the following is NOT a type of loop in the C programming language?
निम्नलिखित में से कौन सा C प्रोग्रामिंग भाषा में लूप का प्रकार नहीं है?
A
`for`
`for`
B
`while`
`while`
C
`do-while`
`do-while`
D
`if-else`
`if-else`
Correct
Solution Breakdown:
-> C provides three loops: `for`, `while`, and `do-while`. `if-else` is a conditional branching statement, not a loop. -> Hence, Option (D) is the correct answer.
-> C में तीन लूप होते हैं (`for`, `while`, `do-while`), जबकि `if-else` निर्णय लेने का कंडीशनल स्टेटमेंट है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 1405 NEW
📜 PYQs EASY
Which preprocessor directive is used to insert pre-written header file code (such as `stdio.h`) into a C program?
किसी C प्रोग्राम में पहले से लिखे गए हेडर फाइल कोड को शामिल करने के लिए किस प्रीप्रोसेसर डायरेक्टिव का उपयोग किया जाता है?
A
`#read`
`#read`
B
`#get`
`#get`
C
`#include`
`#include`
Correct
D
`#put`
`#put`
Solution Breakdown:
-> `#include <stdio.h>` tells the C preprocessor to copy the contents of the Standard Input/Output header file into the program so functions like `printf()` and `scanf()` can be used. -> Hence, Option (C) is the correct answer.
-> `#include` प्रीप्रोसेसर को निर्देश देता है कि वह संबंधित हेडर फाइल का कोड प्रोग्राम में शामिल करे। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 1406 NEW
📜 PYQs EASY
All Preprocessor directives (such as `include` and `define`) in a C program must begin with which symbol?
C प्रोग्राम में सभी प्रीप्रोसेसर डायरेक्टिव्स किस प्रतीक से शुरू होते हैं?
A
`&`
`&`
B
`#`
`#`
Correct
C
`$`
`$`
D
`@`
`@`
Solution Breakdown:
-> Preprocessor commands start with `#` (e.g., `#include <stdio.h>` or `#define PI 3.14`) and do not end with a semicolon. They are processed before actual compilation begins. -> Hence, Option (B) is the correct answer.
-> प्रीप्रोसेसर कमांड `#` से शुरू होते हैं और कंपाइलेशन शुरू होने से पहले ही प्रोसेस कर लिए जाते हैं। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1407 NEW
📜 PYQs EASY
In C programming, every executable statement MUST be terminated by which symbol?
C प्रोग्रामिंग में प्रत्येक निष्पादन योग्य स्टेटमेंट को किस चिह्न से समाप्त किया जाता है?
A
Semicolon (`;`)
सेमीकोलन (`;`)
Correct
B
Comma (`,`)
कॉमा (`,`)
C
Colon (`:`)
कोलन (`:`)
D
Period (`.`)
डॉट (`.`)
Solution Breakdown:
-> The semicolon (`;`) acts as the statement terminator in C, C++, and Java. Missing a semicolon results in a compile-time Syntax Error. -> Hence, Option (A) is the correct answer.
-> C भाषा में हर स्टेटमेंट के अंत में सेमीकोलन (`;`) लगाना अनिवार्य है, वरना कंपाइल-टाइम सिंटैक्स एरर आता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1408 NEW
📜 PYQs EASY
Which of the following is NOT a valid keyword in the C programming language?
निम्नलिखित में से कौन सा C प्रोग्रामिंग भाषा में एक वैध कीवर्ड नहीं है?
A
`auto`
`auto`
B
`enum`
`enum`
C
`register`
`register`
D
`myfile`
`myfile`
Correct
Solution Breakdown:
-> `auto`, `enum`, and `register` are all part of the 32 standard C keywords, whereas `myfile` is a user-defined identifier, not a keyword. -> Hence, Option (D) is the correct answer.
-> `auto`, `enum` और `register` C के मानक कीवर्ड्स हैं, जबकि `myfile` कोई कीवर्ड नहीं है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 1409 NEW
📜 PYQs EASY
How many total reserved keywords are available in standard ANSI C (C89/C90)?
मानक ANSI C में कुल कितने आरक्षित कीवर्ड्स (Keywords) उपलब्ध हैं?
A
24
24
B
28
28
C
32
32
Correct
D
48
48
Solution Breakdown:
-> Standard ANSI C contains exactly 32 reserved keywords (such as `auto`, `break`, `case`, `char`, `const`, `int`, `return`, `struct`, `void`, `while`). -> Hence, Option (C) is the correct answer.
-> मानक ANSI C में कुल 32 कीवर्ड्स होते हैं जिनका अर्थ पहले से निश्चित है और इन्हें वेरिएबल के नाम के रूप में उपयोग नहीं किया जा सकता। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 1410 NEW
📜 PYQs EASY
Who developed the C programming language in 1972 at AT&T Bell Laboratories?
1972 में AT&T बेल लैबोरेटरीज़ में C प्रोग्रामिंग भाषा का विकास किसने किया था?
A
James Gosling
जेम्स गोसलिंग
B
Dennis Ritchie
डेनिस रिची
Correct
C
Bjarne Stroustrup
ब्योर्न स्ट्राउस्ट्रप
D
Guido van Rossum
गुइडो वैन रोसुम
Solution Breakdown:
-> The C programming language was developed by Dennis Ritchie in 1972 at Bell Laboratories, primarily to build the UNIX operating system. -> Because C combines high-level readability with low-level memory access, it is often called a middle-level language. -> Hence, Option (B) is the correct answer.
-> C प्रोग्रामिंग भाषा का विकास 1972 में डेनिस रिची द्वारा बेल लैब्स में किया गया था, जिसका मुख्य उद्देश्य UNIX ऑपरेटिंग सिस्टम बनाना था। -> चूंकि C में हाई-लेवल की सरलता और लो-लेवल की मेमोरी क्षमता दोनों हैं, इसलिए इसे मिडिल-लेवल भाषा भी कहा जाता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1411 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 1412 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 1413 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 1414 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 1415 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 1416 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 1417 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 1418 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 1419 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 1420 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 1421 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 1422 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 1423 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 1424 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 1425 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) बिल्कुल सही है।
Prev 55 56 57 58 59 Next
ESSENTIAL STUDY KIT

Master Computer PYQs 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!