प्रोग्रामिङ – Programming MCQ
प्रोग्रामिङ – कम्प्युटर र IT
Programming · Computer & IT (Technical) · १,५६५ प्रश्न
१,५६५ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्रोग्रामिङ: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ३ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
In C, what value does the call printf("Nepal") return?
सही उत्तर: ख) 5
printf() returns the number of characters it printed; 'Nepal' has 5 characters.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
What is printed by the C statement printf("%5.2f", 3.14159); ?
सही उत्तर: घ) a space followed by 3.14
Width 5 with 2 decimal places gives '3.14' (4 characters) right-justified, so one leading space is added.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Using the %c conversion, which character does printf("%c", 66); display on an ASCII system?
सही उत्तर: घ) B
The %c specifier prints the character whose code is given; ASCII 66 is 'B'.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Testing a program only through its inputs and outputs, without looking at its internal code, is called:
सही उत्तर: ख) black-box testing
Black-box testing checks functionality against specifications; white-box testing examines internal logic.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
According to structured programming, any program can be built from which three basic control structures?
सही उत्तर: क) Sequence, selection and iteration
The structured program theorem (Bohm-Jacopini) shows that sequence, selection and repetition are sufficient.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
An error that occurs while the program is running, such as division by zero, is called a:
सही उत्तर: घ) run-time error
Run-time errors arise during execution and may crash the program.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
An error such as a missing semicolon in a C program is a:
सही उत्तर: ख) syntax error
Violations of the language's grammar are syntax errors, detected by the compiler.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In a flowchart, the start and end of a process are shown by the:
सही उत्तर: घ) oval (terminal) symbol
The oval or rounded terminal symbol marks the beginning and end of a flowchart.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The property that an algorithm must terminate after a finite number of steps is called:
सही उत्तर: ग) finiteness
Finiteness requires the algorithm to stop; definiteness requires each step to be unambiguous.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Two nested loops, each running from 1 to n, have a time complexity of:
सही उत्तर: क) O(n^2)
The inner loop runs n times for each of the n outer iterations, giving n x n operations.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।