Unit 3: Programming in C, C++, Java, JavaScript & Assembly — Solved PYQ & Mock Arena
Topic-wise Unit 3: Programming in C, C++, Java, JavaScript & Assembly previous-year GATE & UGC NET questions with step-by-step LaTeX solutions
How many Machine Cycles and T-States are required by the 8085 microprocessor to fetch and execute the 3-byte instruction STA 4050H?
In an Intel 8086 microprocessor, if the Code Segment register is CS = 348AH and the Instruction Pointer is IP = 4214H, what is the 20-bit physical memory address of the next instruction fetched?
In the Intel 8085 microprocessor, which hardware interrupt has the highest priority, is Non-Maskable (NMI), and what is its hexadecimal vector jump address?
In JavaScript, what does [typeof null, typeof NaN, NaN === NaN] evaluate to?
In JavaScript (ES6+), in what exact order are characters logged by: console.log("A"); setTimeout(() => console.log("B"), 0); Promise.resolve().then(() => console.log("C")); console.log("D");?
In Java, what integer value is returned by static int test() { try { return 10; } finally { return 20; } }?
What does the Java expression String a = "NET"; String b = new String("NET"); System.out.print((a == b) + ":" + (a == b.intern())); print?
Which C++ operators CANNOT be overloaded by a user-defined class?
Which C++ mechanism resolves the Diamond Ambiguity Problem in multiple inheritance (D inherits from both B1 and B2, which both inherit from A) so D contains only one shared subobject of A?
In C++, class Derived publicly inherits from Base. Suppose Base* ptr = new Derived(); is deleted via delete ptr; when Base has a non-virtual destructor. What happens?