प्रोग्रामिङ – Programming MCQ
प्रोग्रामिङ – कम्प्युटर र IT
Programming · Computer & IT (Technical) · १,५६५ प्रश्न
१,५६५ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्रोग्रामिङ: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ३ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
In a C string, the escape sequence '\t' produces a:
सही उत्तर: ख) horizontal tab
\t inserts a horizontal tab; \n is newline, \b is backspace and \0 is the null character.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Which format specifier should be used with scanf() to read a value into a double variable in C?
सही उत्तर: घ) %lf
scanf() needs %lf for double; %f is for float (printf accepts %f for both).
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Which format specifier prints an integer in hexadecimal using printf() in C?
सही उत्तर: घ) %x
%x prints an unsigned integer in hexadecimal; %o prints octal and %d prints decimal.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
How many elements are there in the C array declared as int a[3][4];?
सही उत्तर: ग) 12
A 3 x 4 two-dimensional array has 3 x 4 = 12 elements.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In a C switch statement, if a case has no break statement:
सही उत्तर: ख) Execution falls through to the next case
Without break, control continues into the following case labels.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
A program that runs without crashing but produces incorrect output most likely has a:
सही उत्तर: ग) Logical error
Logical errors give wrong results without stopping compilation or execution.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In a flowchart, input and output operations are represented by which symbol?
सही उत्तर: ग) Parallelogram
A parallelogram denotes input/output.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In a flowchart, a decision (condition) is represented by which symbol?
सही उत्तर: ग) Diamond
The diamond symbol shows a decision with yes/no branches.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Which traversal of a binary search tree visits the keys in ascending sorted order?
सही उत्तर: घ) Inorder
Inorder visits left subtree, root, then right subtree, giving sorted order in a BST.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The postfix form of the infix expression A + B * C is:
सही उत्तर: ख) ABC*+
* has higher precedence, so B*C becomes BC* and then A is added: ABC*+.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।