∑GateAndNet
PlannerSign Up

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

Showing 10 questions in C++, Java, JS & 8085Click A / B / C / D for instant verification
Q1UGC NET CS 2021Unit 3: Programming in C, C++, Java, JavaScript & AssemblyMCQMEDIUM
+2M • 0 Neg

How many Machine Cycles and T-States are required by the 8085 microprocessor to fetch and execute the 3-byte instruction STA 4050H?

⚡ Click an option above to verify instantly
Q2UGC NET CS June 2023Unit 3: Programming in C, C++, Java, JavaScript & AssemblyMCQMEDIUM
+2M • 0 Neg

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?

⚡ Click an option above to verify instantly
Q3UGC NET CS Dec 2024Unit 3: Programming in C, C++, Java, JavaScript & AssemblyMCQEASY
+2M • 0 Neg

In the Intel 8085 microprocessor, which hardware interrupt has the highest priority, is Non-Maskable (NMI), and what is its hexadecimal vector jump address?

⚡ Click an option above to verify instantly
Q4UGC NET CS Web TechUnit 3: Programming in C, C++, Java, JavaScript & AssemblyMCQEASY
+2M • 0 Neg

In JavaScript, what does [typeof null, typeof NaN, NaN === NaN] evaluate to?

⚡ Click an option above to verify instantly
Q5UGC NET CS Dec 2023 JSUnit 3: Programming in C, C++, Java, JavaScript & AssemblyMCQMEDIUM
+2M • 0 Neg

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");?

⚡ Click an option above to verify instantly
Q6UGC NET CS Dec 2022Unit 3: Programming in C, C++, Java, JavaScript & AssemblyMCQMEDIUM
+2M • 0 Neg

In Java, what integer value is returned by static int test() { try { return 10; } finally { return 20; } }?

⚡ Click an option above to verify instantly
Q7UGC NET CS June 2024Unit 3: Programming in C, C++, Java, JavaScript & AssemblyMCQMEDIUM
+2M • 0 Neg

What does the Java expression String a = "NET"; String b = new String("NET"); System.out.print((a == b) + ":" + (a == b.intern())); print?

⚡ Click an option above to verify instantly
Q8UGC NET CS Dec 2023Unit 3: Programming in C, C++, Java, JavaScript & AssemblyMCQEASY
+2M • 0 Neg

Which C++ operators CANNOT be overloaded by a user-defined class?

⚡ Click an option above to verify instantly
Q9UGC NET CS June 2024Unit 3: Programming in C, C++, Java, JavaScript & AssemblyMCQEASY
+2M • 0 Neg

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?

⚡ Click an option above to verify instantly
Q10UGC NET CS Dec 2024Unit 3: Programming in C, C++, Java, JavaScript & AssemblyMCQMEDIUM
+2M • 0 Neg

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?

⚡ Click an option above to verify instantly