1.
Strongest Programming Language
My strongest language is C++ because I have good command over OOP concepts like classes,
inheritance, and polymorphism.
2. Two Ways to Concatenate Strings
1. Using + operator: string s3 = s1 + s2; 2. Using strcat(): strcat(s1, s2);
3. SQL and Oracle Joins
INNER JOIN, LEFT JOIN, RIGHT JOIN using ON condition between tables.
4. Factorial using Recursion
int fact(int n){ return (n==0)?1:n*fact(n-1); }
5. Header Files
Functions are declared in header files, defined in source files.
6. Print an Address
cout << &a;
7. Modularity in C++
Achieved using functions and classes.
8. Pass by Reference vs Pass by Value
Value: Copy passed; Reference: Address passed, affects original.
9. Macros
Code replaced before compile time. +Fast, -No type check.
10. Call by Value vs Reference Example
Value: void fun(int a); Reference: void fun(int &a;);
11. Reverse a String
for(int i=[Link]()-1; i>=0; i--) cout<<s[i];
12. Data Mining
Extracting patterns from large data sets.
13. Pointers Not Recommended
Can cause memory leaks and unsafe access.
14. Stack vs Queue
Stack=LIFO, Queue=FIFO.
15. Function Overloading
Same name, different parameters.
16. Class
Blueprint containing data and functions.
17. Function & Operator Overloading
Function: same name diff params; Operator: redefine operator.
18. Inline Function
Replaces function call with code for speed.
19. Abstract Class
Has at least one pure virtual function, cannot be instantiated.
20. Friend Function
Accesses private members of a class.
21. realloc() vs free()
realloc changes size; free deallocates memory.
22. SMAC
Social, Mobile, Analytics, Cloud - digital tech model.
23. 8 Dots Puzzle
Not possible with 3 lines, need 4 (think outside box).
24. OOP Concepts
Polymorphism, Inheritance, Abstraction - key principles.
25. Cloud Computing
Using internet servers for computing (e.g. AWS, Azure).
26. Volume Problem
h = 176 / (16 * π) ≈ 3.5 inches.
27. Stack Applications
Function calls, undo, expression evaluation.
28. Array vs List
Array: fixed; List: dynamic.
29. Data Structure Applications
Compilers, OS, AI, Databases.
30. Data Structure
Way to store/organize data efficiently.
31. Integrity Rules in DBMS
Entity integrity & Referential integrity.
32. Advantages of Inheritance
Code reuse, maintainability.
33. Deadlock
Processes wait forever; avoid circular wait.
34. Sorting Differences
Insertion: one-by-one; Selection: min swap; Bubble: adjacent swap.
35. Doubly Linked List
Nodes with next and previous pointers.
36. Private Static Method
Yes, accessible only inside class.
37. Copy vs Default Constructor
Copy duplicates; Default initializes new.
38. Loop Detection
Use Floyd’s Cycle Detection algorithm.
39. #ifdef
Checks if macro defined, for conditional compile.
40. Command Line Argument
Values passed to main(int argc, char *argv[]).
41. Macro vs Function
Macro: fast, no check; Function: safe, debuggable.
42. Storage Classes
auto, register, static, extern.
43. Variable Argument Function
#include <stdarg.h>
44. Debugger
Tool to run and test code step-by-step.
45. Memory Alignment
Aligning data in memory for fast access.
46. Keyword vs Identifier
Keyword: reserved; Identifier: user-defined.
47. Big-O Notation
Shows time complexity like O(n).
48. C++ Shorthands
x+=5 same as x=x+5.
49. Garbage Collection (Java)
Automatic memory cleanup, not forced.
50. Prime Number Program
Check divisibility from 2 to n/2; if none, it's prime.