प्रोग्रामिङ – Programming MCQ
प्रोग्रामिङ – कम्प्युटर र IT
Programming · Computer & IT (Technical) · १,५६५ प्रश्न
१,५६५ प्रश्न उपलब्ध। मोड छान्नुहोस्:
प्रोग्रामिङ: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ३ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
LISP, a language widely used in early artificial intelligence research, was created by:
सही उत्तर: क) John McCarthy
John McCarthy designed LISP (LISt Processing) in 1958.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
FORTRAN, one of the first high-level languages, was developed at IBM by a team led by:
सही उत्तर: ख) John Backus
John Backus led the FORTRAN (FORmula TRANslation) project, released in 1957.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The data structure a compiler uses to record identifiers together with their types, scopes and other attributes is the:
सही उत्तर: घ) Symbol table
The symbol table is built and consulted throughout compilation for information about each name.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The compiler phase that checks the sequence of tokens against the grammar and builds a parse tree is:
सही उत्तर: घ) Syntax analysis (parsing)
The parser receives tokens from the lexical analyser and verifies they form valid grammatical constructs.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
A just-in-time (JIT) compiler, such as the one inside a Java virtual machine:
सही उत्तर: ख) Translates bytecode into native machine code while the program is running
JIT compilers (as in the JVM) compile frequently used bytecode to native code at run time for speed.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
A C program compiles, but building it fails with the message 'undefined reference to foo'. This error is reported by the:
सही उत्तर: ग) Linker
The linker reports undefined references when a called function or variable has no definition in any object file or library.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In C, memory obtained with malloc() comes from the:
सही उत्तर: क) Heap
Dynamic memory is allocated from the heap and stays allocated until it is freed.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
When a function is called, its parameters, local variables and return address are stored in a(n):
सही उत्तर: ख) Activation record (stack frame) on the call stack
Each call pushes an activation record on the stack, which is removed when the function returns.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
With coins of denominations 1, 3 and 4, a greedy algorithm (largest coin first) makes change for 6 using how many coins, compared with the optimum?
सही उत्तर: घ) 3 coins, while the optimum is 2
Greedy picks 4 + 1 + 1 = 3 coins, but 3 + 3 = 2 coins is optimal, showing greedy change-making can fail.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The N-Queens problem, placing N queens so that none attack each other, is classically solved by:
सही उत्तर: क) Backtracking
Backtracking places queens row by row and undoes a placement as soon as it leads to a conflict.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।