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 1351 NEW
📜 PYQs EASY
JavaScript is primarily designed as a ________ scripting language that runs directly inside web browsers without preliminary compilation.
जावास्क्रिप्ट मुख्य रूप से एक ________ स्क्रिप्टिंग भाषा है जो बिना पूर्व कंपाइलेशन के सीधे वेब ब्राउज़र के अंदर चलती है।
A
Client-side
क्लाइंट-साइड
Correct
B
Assembly-level
असेंबली-लेवल
C
Machine-level
मशीन-लेवल
D
Hardware-only
केवल हार्डवेयर
Solution Breakdown:
-> JavaScript is an interpreted client-side scripting language embedded directly in web pages to make them interactive (though with Node.js, it can now also run on servers). -> Hence, Option (A) is the correct answer.
-> जावास्क्रिप्ट एक इंटरप्रेटेड क्लाइंट-साइड स्क्रिप्टिंग भाषा है जो वेब पेजों को इंटरैक्टिव बनाती है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1352 NEW
📜 PYQs EASY
What is the official standardized specification name of JavaScript?
जावास्क्रिप्ट का आधिकारिक मानकीकृत नाम क्या है?
A
WireScript
वायरस्क्रिप्ट
B
JavaLite
जावालाइट
C
ECMAScript
एकमास्क्रिप्ट
Correct
D
WebScript
वेबस्क्रिप्ट
Solution Breakdown:
-> JavaScript is officially standardized by Ecma International under the specification name "ECMAScript" (such as ES6 -> Hence, Option (C) is the correct answer.
-> ES2015). / जावास्क्रिप्ट का आधिकारिक मानक नाम 'एकमास्क्रिप्ट' (ECMAScript) है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 1353 NEW
📜 PYQs EASY
Who invented the "JavaScript" programming language in 1995 (originally named "LiveScript")?
1995 में "जावास्क्रिप्ट" प्रोग्रामिंग भाषा का आविष्कार किसने किया था (जिसे शुरू में "लाइवस्क्रिप्ट" कहा गया)?
A
James Gosling
जेम्स गोसलिंग
B
Tim Berners-Lee
टिम बर्नर्स-ली
C
Brendan Eich
ब्रेंडन ईच
Correct
D
Linus Torvalds
लिनस टोरवाल्ड्स
Solution Breakdown:
-> Brendan Eich created JavaScript in just 10 days at Netscape in 1995. It was first called Mocha, then LiveScript, and finally renamed JavaScript. -> Hence, Option (C) is the correct answer.
-> ब्रेंडन ईच ने 1995 में नेटस्केप में जावास्क्रिप्ट का आविष्कार किया था, जिसका शुरुआती नाम लाइवस्क्रिप्ट था। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 1354 NEW
📜 PYQs MEDIUM
Why does Java NOT support "Multiple Inheritance" using classes (i.e., a class cannot extend two parent classes directly)?
जावा क्लासेस के माध्यम से "मल्टीपल इनहेरिटेंस" को सपोर्ट क्यों नहीं करता?
A
Because Java is not object-oriented
क्योंकि जावा ऑब्जेक्ट-ओरिएंटेड नहीं है
B
To avoid ambiguity and complexity such as the "Diamond Problem" (achieved cleanly via Interfaces instead)
"डायमंड प्रॉब्लम" जैसी अस्पष्टता और जटिलता से बचने के लिए (इसके बजाय इंटरफेस का उपयोग किया जाता है)
Correct
C
Because Java cannot use constructors
क्योंकि जावा में कंस्ट्रक्टर नहीं होते
D
Because Java only runs on Windows
क्योंकि जावा केवल विंडोज़ पर चलता है
Solution Breakdown:
-> If two parent classes had methods with the same name, the child class wouldn't know which one to inherit. Java solves this cleanly by allowing a class to implement multiple Interfaces. -> Hence, Option (B) is the correct answer.
-> दो पैरेंट क्लासेस में समान नाम के मेथड होने से उत्पन्न होने वाले भ्रम (डायमंड प्रॉब्लम) से बचने के लिए जावा में एक क्लास केवल एक ही क्लास को एक्सटेंड कर सकती है, लेकिन कई इंटरफेस लागू कर सकती है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1355 NEW
📜 PYQs EASY
Which keyword in Java is used to inherit properties and methods from a parent class?
जावा में किसी पैरेंट क्लास से गुणों और मेथड्स को इनहेरिट करने के लिए किस कीवर्ड का उपयोग किया जाता है?
A
`inherits`
`inherits`
B
`extends`
`extends`
Correct
C
`implements`
`implements`
D
`super`
`super`
Solution Breakdown:
-> In Java, a class uses `extends` to inherit from another class (e.g., `class Dog extends Animal`), and `implements` to implement an Interface. -> Hence, Option (B) is the correct answer.
-> जावा में एक क्लास दूसरी क्लास को इनहेरिट करने के लिए `extends` और इंटरफेस को लागू करने के लिए `implements` कीवर्ड का उपयोग करती है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1356 NEW
📜 PYQs MEDIUM
What is the difference between JDK, JRE, and JVM in Java?
जावा में JDK, JRE और JVM के बीच क्या अंतर है?
A
JDK is for developing Java apps (includes compiler & JRE), JRE is for running Java apps (includes libraries & JVM), and JVM executes Bytecode
JDK विकास के लिए (कंपाइलर व JRE सहित), JRE चलाने के लिए (लाइब्रेरी व JVM सहित), और JVM बाइटकोड निष्पादित करता है
Correct
B
All three are identical
तीनों बिल्कुल एक समान हैं
C
JVM is larger than JDK
JVM, JDK से बड़ा होता है
D
JRE is a web browser
JRE एक वेब ब्राउज़र है
Solution Breakdown:
-> Hierarchy: `JDK = JRE + Development Tools (javac, debugger)` and `JRE = JVM + Standard Class Libraries`. Developers install the JDK, while end-users only need the JRE. -> Hence, Option (A) is the correct answer.
-> डेवलपर्स को कोडिंग व कंपाइल करने के लिए JDK चाहिए, जबकि सामान्य उपयोगकर्ता को केवल जावा ऐप चलाने के लिए JRE की आवश्यकता होती है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1357 NEW
📜 PYQs EASY
Which programming language is historically the primary official language for native Android mobile app development (alongside Kotlin)?
कोटलिन के साथ-साथ नेटिव एंड्रॉइड मोबाइल ऐप डेवलपमेंट की प्रमुख आधिकारिक भाषा कौन सी है?
A
COBOL
कोबोल
B
FORTRAN
फोरट्रान
C
Java
जावा
Correct
D
Pascal
पास्कल
Solution Breakdown:
-> Java has been the foundational language for Android app development since Android's launch, running on Android's runtime (ART/Dalvik). -> Hence, Option (C) is the correct answer.
-> एंड्रॉइड की शुरुआत से ही जावा एंड्रॉइड मोबाइल एप्लिकेशन बनाने की प्रमुख भाषा रही है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 1358 NEW
📜 PYQs EASY
What is the full form of "JVM" in Java?
जावा में "JVM" का पूर्ण रूप क्या है?
A
Java Visual Monitor
जावा विजुअल मॉनिटर
B
Java Variable Manager
जावा वेरिएबल मैनेजर
C
Java Virtual Machine
जावा वर्चुअल मशीन
Correct
D
Java Version Module
जावा वर्जन मॉड्यूल
Solution Breakdown:
-> The Java Virtual Machine (JVM) is an abstract computing engine that provides the runtime environment to convert Java Bytecode into native machine instructions for the host CPU. -> Hence, Option (C) is the correct answer.
-> जावा वर्चुअल मशीन (JVM) वह रन-टाइम इंजन है जो जावा बाइटकोड को होस्ट कंप्यूटर की मशीन भाषा में बदलकर निष्पादित करता है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 1359 NEW
📜 PYQs EASY
When Java source code (`.java`) is compiled by `javac`, what intermediate code is generated?
जब जावा सोर्स कोड (`.java`) को `javac` द्वारा कंपाइल किया जाता है, तो कौन सा मध्यवर्ती कोड बनता है?
A
Assembly Code
असेंबली कोड
B
Bytecode
बाइटकोड
Correct
C
ASCII Code
एएससीआईआई कोड
D
Native Machine Code
नेटिव मशीन कोड
Solution Breakdown:
-> The Java compiler converts `.java` source files into platform-independent Bytecode (`.class` files). This bytecode is then executed on any operating system by the Java Virtual Machine (JVM). -> Hence, Option (B) is the correct answer.
-> जावा कंपाइलर सोर्स कोड को प्लेटफॉर्म-इंडिपेंडेंट बाइटकोड (`.class`) में बदलता है, जिसे JVM किसी भी ऑपरेटिंग सिस्टम पर चला सकता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1360 NEW
📜 PYQs EASY
Who developed the Java programming language at Sun Microsystems (initially released in 1995)?
सन माइक्रोसिस्टम्स में जावा प्रोग्रामिंग भाषा का विकास किसने किया था (जिसे 1995 में रिलीज़ किया गया)?
A
Dennis Ritchie
डेनिस रिची
B
James Gosling
जेम्स गोसलिंग
Correct
C
Brendan Eich
ब्रेंडन ईच
D
Bjarne Stroustrup
ब्योर्न स्ट्राउस्ट्रप
Solution Breakdown:
-> Java was created by James Gosling and his team at Sun Microsystems (later acquired by Oracle). Its famous motto is "Write Once, Run Anywhere" (WORA) because of platform independence. -> Hence, Option (B) is the correct answer.
-> जावा का विकास जेम्स गोसलिंग ने सन माइक्रोसिस्टम्स में किया था। अपनी प्लेटफॉर्म इंडिपेंडेंस के कारण इसका प्रसिद्ध सिद्धांत "Write Once, Run Anywhere" है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1361 NEW
📜 PYQs EASY
Which statement best explains why C is still called the "Mother of Modern Programming Languages"?
कौन सा कथन सबसे अच्छी तरह बताता है कि C को आज भी "आधुनिक प्रोग्रामिंग भाषाओं की जननी" क्यों कहा जाता है?
A
Because C directly inspired the syntax, concepts, and compilers of C++, Java, C#, Python, and major operating systems like UNIX, Linux, and Windows
क्योंकि C ने C++, Java, C#, Python के सिंटैक्स और कंपाइलर तथा UNIX, Linux और Windows जैसे प्रमुख ऑपरेटिंग सिस्टम की नींव रखी
Correct
B
Because C is the only language used for websites
क्योंकि C वेबसाइटों के लिए उपयोग होने वाली एकमात्र भाषा है
C
Because C does not need a compiler
क्योंकि C को कंपाइलर की ज़रूरत नहीं होती
D
Because C was invented in 2020
क्योंकि C का आविष्कार 2020 में हुआ था
Solution Breakdown:
-> Most modern compilers, interpreters (like CPython), and OS kernels are still written in C due to its unmatched speed and hardware control. -> Hence, Option (A) is the correct answer.
-> अपनी अत्यधिक गति और हार्डवेयर नियंत्रण के कारण आज भी अधिकांश OS कर्नेल और कंपाइलर C में लिखे जाते हैं। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1362 NEW
📜 PYQs MEDIUM
Match the C Function with its Header File: 1. `printf()` — (a) `<math.h>` 2. `malloc()` — (b) `<stdio.h>` 3. `strlen()` — (c) `<stdlib.h>` 4. `sqrt()` — (d) `<string.h>`
C फंक्शन को उसकी हेडर फाइल से सुमेलित करें: 1. `printf()` — (a) `<math.h>` 2. `malloc()` — (b) `<stdio.h>` 3. `strlen()` — (c) `<stdlib.h>` 4. `sqrt()` — (d) `<string.h>`
A
1-a, 2-b, 3-c, 4-d
1-a, 2-b, 3-c, 4-d
B
1-b, 2-c, 3-d, 4-a
1-b, 2-c, 3-d, 4-a
Correct
C
1-b, 2-d, 3-c, 4-a
1-b, 2-d, 3-c, 4-a
D
1-c, 2-b, 3-d, 4-a
1-c, 2-b, 3-d, 4-a
Solution Breakdown:
-> Correct matches: `printf()` (`<stdio.h>`), `malloc()` (`<stdlib.h>`), `strlen()` (`<string.h>`), `sqrt()` (`<math.h>`). -> Hence, Option (B) is the correct answer.
-> सही मिलान: 1-b, 2-c, 3-d, 4-a। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1363 NEW
📜 PYQs MEDIUM
Match the C Storage Class with its Key Behavior: 1. `auto` — (a) Default class for local variables 2. `static` — (b) Requests storage inside a fast CPU register 3. `register` — (c) Declares a global variable defined in another file 4. `extern` — (d) Retains local variable value across function calls
C स्टोरेज क्लास को उसके मुख्य व्यवहार से सुमेलित करें: 1. `auto` — (a) लोकल वेरिएबल्स की डिफ़ॉल्ट क्लास 2. `static` — (b) तेज़ CPU रजिस्टर में स्टोरेज का अनुरोध 3. `register` — (c) किसी अन्य फाइल में परिभाषित ग्लोबल वेरिएबल को दर्शाना 4. `extern` — (d) फंक्शन कॉल्स के बीच लोकल वेरिएबल का मान बनाए रखना
A
1-a, 2-d, 3-b, 4-c
1-a, 2-d, 3-b, 4-c
Correct
B
1-a, 2-b, 3-c, 4-d
1-a, 2-b, 3-c, 4-d
C
1-b, 2-d, 3-a, 4-c
1-b, 2-d, 3-a, 4-c
D
1-d, 2-a, 3-b, 4-c
1-d, 2-a, 3-b, 4-c
Solution Breakdown:
-> Correct matches: `auto` (Default local), `static` (Retains value), `register` (CPU register), `extern` (External global variable). -> Hence, Option (A) is the correct answer.
-> सही मिलान: 1-a, 2-d, 3-b, 4-c। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1364 NEW
📜 PYQs EASY
Which escape sequence in C moves the cursor to the next horizontal tab stop?
C भाषा में कौन सा एस्केप सीक्वेंस कर्सर को अगले हॉरिजॉन्टल टैब स्टॉप पर ले जाता है?
A
`\n`
`\n`
B
`\r`
`\r`
C
`\v`
`\v`
D
`\t`
`\t`
Correct
Solution Breakdown:
-> `\t` inserts a horizontal tab space, ` -> ` inserts a new line, and `\r` performs a carriage return. -> Hence, Option (D) is the correct answer.
-> `\t` हॉरिजॉन्टल टैब स्पेस के लिए और ` -> ` नई लाइन के लिए उपयोग होता है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 1365 NEW
📜 PYQs MEDIUM
What is the output of the following C loop? for (int i = 0; i < 6; ++i) printf("%d", i & 1);
उपरोक्त C लूप का आउटपुट क्या होगा?
A
`111111`
`111111`
B
`000000`
`000000`
C
`010101`
`010101`
Correct
D
`101010`
`101010`
Solution Breakdown:
-> `i & 1` checks the last binary bit of `i` (`0` for even, `1` for odd). For `i = 0, 1, 2, 3, 4, 5`, it prints `010101`. -> Hence, Option (C) is the correct answer.
-> `i & 1` सम संख्या के लिए `0` और विषम संख्या के लिए `1` देता है, अतः `0` से `5` तक `010101` प्रिंट होगा। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 1366 NEW
📜 PYQs MEDIUM
Evaluate the following statements about C: (I) `struct` and `union` are both user-defined data types in C. (II) A `union` can have many members, and all of them can hold separate values simultaneously.
C के बारे में निम्नलिखित कथनों का मूल्यांकन करें: (I) `struct` और `union` दोनों C में यूज़र-डिफाइंड डेटा टाइप हैं। (II) एक `union` में कई सदस्य हो सकते हैं, और वे सभी एक ही समय में अलग-अलग मान स्टोर रख सकते हैं।
A
Both (I) and (II) are true
(I) और (II) दोनों सत्य हैं
B
Only (I) is true
केवल (I) सत्य है
Correct
C
Only (II) is true
केवल (II) सत्य है
D
Neither (I) nor (II) is true
न तो (I) और न ही (II) सत्य है
Solution Breakdown:
-> Statement (I) is true. Statement (II) is false because union members share the same memory location, so only ONE member can hold a valid value at a time. -> Hence, Option (B) is the correct answer.
-> कथन (I) सत्य है, जबकि यूनियन में एक समय पर केवल एक ही सदस्य मान रख सकता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1367 NEW
📜 PYQs EASY
What is the index of the VERY FIRST element of any array in C?
C भाषा में किसी भी एरे के सबसे पहले तत्व का इंडेक्स क्या होता है?
A
`0`
`0`
Correct
B
`1`
`1`
C
`-1`
`-1`
D
`100`
`100`
Solution Breakdown:
-> C uses 0-based indexing: for an array of `N` elements, valid indices run from `0` to `N - 1`. -> Hence, Option (A) is the correct answer.
-> C में एरे की इंडेक्सिंग हमेशा `0` से शुरू होकर `N - 1` तक जाती है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1368 NEW
📜 PYQs MEDIUM
What is the purpose of the `typedef` keyword in C?
C भाषा में `typedef` कीवर्ड का क्या उद्देश्य होता है?
A
To delete a data type
किसी डेटा टाइप को डिलीट करना
B
To convert float to int
फ्लोट को पूर्णांक में बदलना
C
To allocate heap memory
हीप मेमोरी आवंटित करना
D
To create a new, shorter alias (alternative name) for an existing data type
किसी मौजूदा डेटा टाइप के लिए एक नया, छोटा उपनाम (Alias) बनाना
Correct
Solution Breakdown:
-> For example, `typedef unsigned int uint;` lets programmers write `uint` instead of `unsigned int`, improving code readability. -> Hence, Option (D) is the correct answer.
-> `typedef` किसी लंबे डेटा टाइप (जैसे `struct` या `unsigned int`) को छोटा और आसान नाम देने के काम आता है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 1369 NEW
📜 PYQs MEDIUM
In C, which statement is FALSE regarding functions?
C भाषा में फंक्शंस के संबंध में निम्नलिखित में से कौन सा कथन असत्य है?
A
A function prototype specifies its name, return type, and parameters
फंक्शन प्रोटोटाइप फंक्शन का नाम, रिटर्न टाइप और पैरामीटर बताता है
B
Arguments passed during a function call are called actual parameters
फंक्शन कॉल के समय भेजे गए मान वास्तविक पैरामीटर कहलाते हैं
C
Every function definition in C MUST contain a `return` statement
C में प्रत्येक फंक्शन की परिभाषा में `return` स्टेटमेंट होना अनिवार्य है
Correct
D
A `void` function does not return a value
`void` फंक्शन कोई मान रिटर्न नहीं करता
Solution Breakdown:
-> Functions declared with a `void` return type do NOT require a `return` statement. Therefore, statement (C) is false. -> Hence, Option (C) is the correct answer.
-> `void` रिटर्न टाइप वाले फंक्शन में `return` स्टेटमेंट लिखना अनिवार्य नहीं है, इसलिए कथन (C) असत्य है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 1370 NEW
📜 PYQs EASY
Which function is the mandatory entry point where execution ALWAYS begins in every standard C program?
प्रत्येक मानक C प्रोग्राम में निष्पादन हमेशा किस अनिवार्य फंक्शन से शुरू होता है?
A
`start()`
`start()`
B
`main()`
`main()`
Correct
C
`init()`
`init()`
D
`begin()`
`begin()`
Solution Breakdown:
-> Every executable C program must contain exactly one `main()` function; the OS transfers control directly to `main()` when the program launches. -> Hence, Option (B) is the correct answer.
-> हर C प्रोग्राम का निष्पादन हमेशा `main()` फंक्शन से ही शुरू होता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1371 NEW
📜 PYQs MEDIUM
What will be the output of the following C code? int b = 1, c = 5; int a = 0 - (++b) + c++; printf("%d, %d, %d", a, b, c);
उपरोक्त C कोड का आउटपुट क्या होगा?
A
`3, 2, 6`
`3, 2, 6`
Correct
B
`4, 2, 6`
`4, 2, 6`
C
`3, 1, 5`
`3, 1, 5`
D
`4, 1, 5`
`4, 1, 5`
Solution Breakdown:
-> Pre-increment `++b` increments `b` to `2` BEFORE use. Post-increment `c++` uses `5` FIRST and then increments `c` to `6`. Thus `a = 0 - 2 + 5 = 3`, `b = 2`, `c = 6`. -> Hence, Option (A) is the correct answer.
-> `++b` पहले बढ़कर `2` हो जाता है और `c++` पहले `5` उपयोग होकर बाद में `6` बनता है, अतः `a = 0 - 2 + 5 = 3`। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 1372 NEW
📜 PYQs MEDIUM
What is the only integer constant that can be directly assigned to a pointer variable in C without typecasting?
C भाषा में वह एकमात्र पूर्णांक कॉन्स्टेंट कौन सा है जिसे बिना टाइपकास्टिंग के सीधे किसी पॉइंटर वेरिएबल को सौंपा जा सकता है?
A
`1`
`1`
B
`-1`
`-1`
C
`100`
`100`
D
`0` (representing `NULL`)
`0` (representing `NULL`)
Correct
Solution Breakdown:
-> Assigning `0` to a pointer initializes it as a `NULL` pointer, indicating that it does not point to any valid memory address. -> Hence, Option (D) is the correct answer.
-> किसी पॉइंटर को सीधे `0` (`NULL`) सौंपा जा सकता है, जिसका अर्थ है कि वह किसी वैध एड्रेस की ओर संकेत नहीं कर रहा है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 1373 NEW
📜 PYQs MEDIUM
What is a "Dangling Pointer" in C programming?
C प्रोग्रामिंग में "डैंगलिंग पॉइंटर" क्या होता है?
A
A pointer initialized to `NULL`
`NULL` से इनिशियलाइज़ किया गया पॉइंटर
B
A pointer to an integer
पूर्णांक की ओर संकेत करने वाला पॉइंटर
C
A pointer that still points to a memory location that has already been freed or deallocated
एक ऐसा पॉइंटर जो अभी भी उस मेमोरी स्थान की ओर संकेत कर रहा है जिसे पहले ही मुक्त (`free`) किया जा चुका है
Correct
D
A syntax error
एक सिंटैक्स एरर
Solution Breakdown:
-> Accessing a dangling pointer leads to undefined behavior or crashes; setting `ptr = NULL;` right after `free(ptr);` prevents this bug. -> Hence, Option (C) is the correct answer.
-> मुक्त की जा चुकी मेमोरी की ओर संकेत करने वाला पॉइंटर 'डैंगलिंग पॉइंटर' कहलाता है, जिससे प्रोग्राम क्रैश हो सकता है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 1374 NEW
📜 PYQs EASY
In C, what does `strcmp(str1, str2)` return when both strings `str1` and `str2` are completely IDENTICAL?
C भाषा में, जब दोनों स्ट्रिंग्स `str1` और `str2` बिल्कुल समान हों, तो `strcmp(str1, str2)` क्या रिटर्न करता है?
A
`1`
`1`
B
`0`
`0`
Correct
C
`-1`
`-1`
D
`True`
`True`
Solution Breakdown:
-> `strcmp()` compares two strings lexicographically and returns `0` if they are equal, a negative value if `str1 < str2`, and a positive value if `str1 > str2`. -> Hence, Option (B) is the correct answer.
-> दोनों स्ट्रिंग्स के बिल्कुल समान होने पर `strcmp()` शून्य (`0`) लौटाता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 1375 NEW
📜 PYQs EASY
Which header file in C provides string manipulation functions like `strlen()`, `strcpy()`, and `strcmp()`?
C भाषा में `strlen()`, `strcpy()` और `strcmp()` जैसे स्ट्रिंग फंक्शंस किस हेडर फाइल में होते हैं?
A
`<string.h>`
`<string.h>`
Correct
B
`<stdio.h>`
`<stdio.h>`
C
`<math.h>`
`<math.h>`
D
`<stdlib.h>`
`<stdlib.h>`
Solution Breakdown:
-> `<string.h>` contains all standard C string functions, while `<math.h>` provides mathematical functions like `sqrt()` and `pow()`. -> Hence, Option (A) is the correct answer.
-> सभी स्ट्रिंग फंक्शंस `<string.h>` हेडर फाइल में परिभाषित होते हैं। -> इसलिए विकल्प (A) बिल्कुल सही है।
Prev 53 54 55 56 57 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!