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

Programming Languages

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

Timed Quiz
Newest Classic 25 Qs
No Questions Match Your Filter

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

Question 151 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 152 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 153 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 154 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 155 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 156 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 157 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 158 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 159 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 160 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 161 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 162 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 163 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 164 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 165 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) बिल्कुल सही है।
Question 166 NEW
📜 PYQs EASY
Which function in C is used to release dynamically allocated heap memory to prevent memory leaks?
मेमोरी लीक से बचने के लिए डायनामिक रूप से आवंटित हीप मेमोरी को मुक्त करने हेतु C में किस फंक्शन का उपयोग किया जाता है?
A
`delete()`
`delete()`
B
`remove()`
`remove()`
C
`clear()`
`clear()`
D
`free()`
`free()`
Correct
Solution Breakdown:
-> Every `malloc()` or `calloc()` call in C should be paired with `free(ptr)` once the memory is no longer needed. -> Hence, Option (D) is the correct answer.
-> डायनामिक मेमोरी को खाली करने के लिए `free()` फंक्शन का उपयोग किया जाता है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 167 NEW
📜 PYQs MEDIUM
What is the difference between `malloc()` and `calloc()` in C?
C भाषा में `malloc()` और `calloc()` के बीच क्या मुख्य अंतर है?
A
`malloc()` is only for strings
`malloc()` केवल स्ट्रिंग्स के लिए है
B
Both initialize memory to zero
दोनों मेमोरी को शून्य से इनिशियलाइज़ करते हैं
C
`malloc()` leaves allocated memory uninitialized (garbage values), whereas `calloc()` initializes all allocated bytes to ZERO
`malloc()` आवंटित मेमोरी को अन-इनिशियलाइज़्ड (गार्बेज वैल्यू) छोड़ता है, जबकि `calloc()` सभी बाइट्स को शून्य (`0`) से भर देता है
Correct
D
`calloc()` cannot allocate arrays
`calloc()` एरे आवंटित नहीं कर सकता
Solution Breakdown:
-> `malloc(n * sizeof(int))` takes 1 argument and is slightly faster; `calloc(n, sizeof(int))` takes 2 arguments and zeroes out the memory safely. -> Hence, Option (C) is the correct answer.
-> `malloc()` में गार्बेज वैल्यू रहती है, जबकि `calloc()` मेमोरी को `0` से साफ कर देता है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 168 NEW
📜 PYQs MEDIUM
Which standard library function in C dynamically allocates a block of uninitialized memory on the Heap and returns a `void*` pointer?
C भाषा में कौन सा मानक लाइब्रेरी फंक्शन हीप पर डायनामिक मेमोरी आवंटित करता है और `void*` पॉइंटर लौटाता है?
A
`new`
`new`
B
`malloc()`
`malloc()`
Correct
C
`free()`
`free()`
D
`alloc_mem()`
`alloc_mem()`
Solution Breakdown:
-> `malloc(size)` (Memory Allocation, in `stdlib.h`) allocates raw heap memory at runtime; `calloc()` allocates zero-initialized memory, and `free()` releases it. -> Hence, Option (B) is the correct answer.
-> `malloc()` रन-टाइम पर हीप मेमोरी आवंटित करता है और `free()` उसे मुक्त करता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 169 NEW
📜 PYQs EASY
Which shortcut key is used in classic Turbo C/C++ IDE to compile a C program?
क्लासिक टर्बो C/C++ IDE में किसी C प्रोग्राम को कंपाइल करने के लिए किस शॉर्टकट कुंजी का उपयोग किया जाता है?
A
`Alt + F9`
`Alt + F9`
Correct
B
`Ctrl + F9`
`Ctrl + F9`
C
`Alt + F5`
`Alt + F5`
D
`Alt + C`
`Alt + C`
Solution Breakdown:
-> In Turbo C/C++, `Alt + F9` compiles the program, whereas `Ctrl + F9` compiles and runs it. -> Hence, Option (A) is the correct answer.
-> टर्बो C में `Alt + F9` से प्रोग्राम कंपाइल होता है और `Ctrl + F9` से रन होता है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 170 NEW
📜 PYQs MEDIUM
What will be the output of the following C code? int x = 3, y = 9; x = x + y; y = x - y; x = x - y; printf("%d, %d", x, y);
उपरोक्त C कोड का आउटपुट क्या होगा?
A
`3, 9`
`3, 9`
B
`12, 9`
`12, 9`
C
`3, 12`
`3, 12`
D
`9, 3`
`9, 3`
Correct
Solution Breakdown:
-> This is the classic swap-without-temp-variable logic: `x = 12`, then `y = 12 - 9 = 3`, then `x = 12 - 3 = 9`. Output: `9, 3`. -> Hence, Option (D) is the correct answer.
-> यह बिना तीसरे वेरिएबल के मान बदलने (Swapping) का प्रसिद्ध कोड है, जिससे `x=9` और `y=3` प्रिंट होगा। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 171 NEW
📜 PYQs MEDIUM
What is the value of the C ternary expression `(x - 5) ? 15 : 25` when `int x = 4;`?
यदि `int x = 4;` है, तो C टर्नरी व्यंजक `(x - 5) ? 15 : 25` का मान क्या होगा?
A
0
0
B
25
25
C
15
15
Correct
D
-1
-1
Solution Breakdown:
-> In C, ANY non-zero value is treated as `True` and `0` is `False`. Here `x - 5 = 4 - 5 = -1` (non-zero = True), so the ternary operator selects the first branch: `15`. -> Hence, Option (C) is the correct answer.
-> C में शून्य को छोड़कर हर संख्या `True` मानी जाती है। यहाँ `4 - 5 = -1` (`True`) है, इसलिए उत्तर `15` होगा। -> इसलिए विकल्प (C) बिल्कुल सही है।
Question 172 NEW
📜 PYQs MEDIUM
What will be the output of the following C code snippet? int i = 0; for (; i <= 5; i++) ; printf("%d", i);
उपरोक्त C कोड का आउटपुट क्या होगा?
A
5
5
B
6
6
Correct
C
0
0
D
12345
12345
Solution Breakdown:
-> The `for` loop has an empty body (`;`) and keeps incrementing `i` until `i <= 5` becomes false, which happens when `i` becomes `6`. Then `printf()` runs once and prints `6`. -> Hence, Option (B) is the correct answer.
-> `for` लूप `i = 6` होने पर रुकता है और उसके बाहर लिखा `printf` एक बार चलकर `6` प्रिंट करता है। -> इसलिए विकल्प (B) बिल्कुल सही है।
Question 173 NEW
📜 PYQs MEDIUM
What will be the output of the following C code snippet? int array[] = {2, 3, 4, 5}; printf("%d", 2[array]);
उपरोक्त C कोड का आउटपुट क्या होगा?
A
4
4
Correct
B
3
3
C
2
2
D
5
5
Solution Breakdown:
-> In C, array indexing `array[2]` is internally translated by the compiler to `*(array + 2)`, which is mathematically identical to `*(2 + array)` or `2[array]`. Index 2 holds `4`. -> Hence, Option (A) is the correct answer.
-> C कंपाइलर `2[array]` को `array[2]` के समान मानता है, और इंडेक्स 2 पर `4` स्टोर है। -> इसलिए विकल्प (A) बिल्कुल सही है।
Question 174 NEW
📜 PYQs EASY
Which format specifier is used inside `printf()` in C to print a single character?
C भाषा में `printf()` के अंदर एक सिंगल कैरेक्टर प्रिंट करने के लिए किस फॉर्मेट स्पेसिफायर का उपयोग किया जाता है?
A
`%d`
`%d`
B
`%f`
`%f`
C
`%s`
`%s`
D
`%c`
`%c`
Correct
Solution Breakdown:
-> Common C format specifiers: `%c` = single character, `%d` = integer, `%f` = float, `%s` = string. -> Hence, Option (D) is the correct answer.
-> `%c` कैरेक्टर के लिए, `%d` पूर्णांक के लिए, `%f` फ्लोट के लिए और `%s` स्ट्रिंग के लिए उपयोग होता है। -> इसलिए विकल्प (D) बिल्कुल सही है।
Question 175 NEW
📜 PYQs MEDIUM
Consider the C union `union data { int a; float b; char str[20]; };`. If `char = 1`, `int = 2`, and `float = 4` bytes, what is the total memory size of a variable of this union?
C यूनियन `union data { int a; float b; char str[20]; };` में यदि `char=1`, `int=2`, `float=4` बाइट्स हैं, तो इस यूनियन वेरिएबल का कुल आकार क्या होगा?
A
26 bytes
26 बाइट्स
B
4 bytes
4 बाइट्स
C
20 bytes
20 बाइट्स
Correct
D
2 bytes
2 बाइट्स
Solution Breakdown:
-> A union allocates memory equal to the size of its LARGEST member. Here, `char str[20]` takes $20 \times 1 = 20$ bytes (larger than 2 and 4), so the union size is 20 bytes. -> Hence, Option (C) is the correct answer.
-> यूनियन का आकार उसके सबसे बड़े सदस्य के बराबर होता है, जो यहाँ `char str[20]` (20 बाइट्स) है। -> इसलिए विकल्प (C) बिल्कुल सही है।
Prev 5 6 7 8 9 Next
ESSENTIAL STUDY KIT

Master Programming 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!