∑GateAndNet
PlannerSign Up
💻UGC NET CSWeightage: 24–30 Marks4 Study Chapters10 Solved PYQs

Unit 3: Programming in C, C++, Java, JavaScript & Assembly

C pointers & memory layout, C++ virtual dispatch & STL, Java JVM & OOP, JavaScript event loop & closures, and 8085/8086/RISC Assembly.

Practice Unit PYQs (10)All UGC NET CS Units
Official Syllabus Micro-Topics
C Programming: Pointer Arithmetic, 2D Array Decay, Function Pointers, Storage Classes (auto, static, extern), Struct Padding & Bitwise OperatorsC++ & OOP: Encapsulation, Virtual Functions (vptr/vtable), Constructor/Destructor Order, Diamond Virtual Inheritance, Templates & STLJava Core & JVM: Stack vs Heap vs String Pool, == vs equals()/hashCode(), Abstract Class vs Interface, Checked Exceptions, Generics & ThreadsJavaScript (ES6+): Call Stack, Microtask (Promise) vs Macrotask (setTimeout) Event Loop, Hoisting/TDZ, Closures, Prototypes & Type CoercionAssembly Languages (8085, 8086 & RISC): Flag Register (S,Z,AC,P,CY), Addressing Modes, T-States, Hardware Interrupts (TRAP, RST 7.5–5.5) & CS:IP Segmentation

Published Study Notes & Chapters (4)

Ch 1 High Yield 4 min read 3 PYQs

C++ & OOP Internals: Virtual Tables (vptr/vtable), Constructors, Diamond Inheritance & STL

Compile-time vs runtime polymorphism, vptr/vtable dispatch, base-to-derived constructor vs reverse destructor order, virtual destructors, diamond virtual inheritance, and C++ STL time complexities.

Read Chapter
Ch 2 High Yield 4 min read 2 PYQs

Java & JVM Architecture: String Pool, Integer Cache, Interfaces, Exceptions & Concurrency

Pass-by-value object references, String Constant Pool vs new String(), Integer缓存 [-128, 127], equals/hashCode contract, Java 8+ default interface methods, and try-catch-finally return overrides.

Read Chapter
Ch 3 4 min read 2 PYQs

JavaScript (ES6+) Runtime: Event Loop (Microtasks vs Macrotasks), Closures, Hoisting & Coercion

Single-threaded JS Call Stack, Microtask Queue (Promise/queueMicrotask/async-await) priority over Macrotask Queue (setTimeout), var hoisting vs let/const TDZ, prototypal chain, and == coercion.

Read Chapter
Ch 4 High Yield 6 min read 3 PYQs

Assembly Languages (8085, 8086 & RISC): Registers, Flags, T-States, Interrupts & Traces

8085 flag byte [S,Z,X,AC,X,P,X,CY], instruction byte sizes & T-states (MVI, LXI, LDA, STA, LHLD, CALL), hardware interrupt priority & vector addresses (TRAP 0024H), 8086 20-bit physical addressing, and RISC assembly.

Read Chapter

Solved Unit 3: Programming in C, C++, Java, JavaScript & Assembly PYQs & Practice Questions

Launch Timed Mock (10 Qs)
Q1UGC 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
Q2UGC 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
Q3UGC 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
Q4UGC 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
Q5UGC 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
Q6UGC 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
Q7UGC 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
Q8UGC 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
Solve All 10 Unit 3: Programming in C, C++, Java, JavaScript & Assembly Questions
Other Units in UGC NET Computer Science & Applications (Code 87) (UGC NET CS)
🔢 Unit 1: Discrete Structures & Optimization🖥️ Unit 2 & 5: Computer Architecture & Operating Systems💻 Unit 3: Programming in C, C++, Java, JavaScript & Assembly🎨 Unit 3B & 4: Computer Graphics, DBMS & Data Mining📐 Unit 6: Software Engineering⚡ Unit 7 & 8: DSA, Theory of Computation & Compilers📡 Unit 9: Data Communication & Computer Networks🧠 Unit 10: Artificial Intelligence & Soft Computing