Question
In which programming language are pointers explicitly
supported and used for memory manipulation?Solution
Pointers are variables that store the memory address of another variable. They are explicitly supported in languages like C and C++. Pointers provide low-level access to memory, enabling operations like dynamic memory allocation, arrays, and data structure manipulation. Example in C++: int x = 10;  int* ptr = &x; // Pointer to variable x  std::cout << "Value of x: " << *ptr << std::endl; // Dereferencing pointer ________________________________________ Why Other Options Are Incorrect: 1. Java: Java uses references instead of pointers, abstracting away memory management for safety and simplicity. 2. Python: Python abstracts memory management and does not expose raw pointers to developers. 3. JavaScript: JavaScript is a high-level language that does not support pointers or manual memory manipulation. 4. Kotlin: Kotlin, like Java, does not expose pointers and relies on managed memory through JVM.
Which tree traversal is most suitable for finding the shortest path in an unweighted graph represented as a tree?
Which of the following algorithms is used for finding Minimum Spanning Tree?
Which of the following algorithms is most commonly used in Operating Systems for deadlock prevention?
Which of the following is true about C++ destructors?
- Which network device operates at the Data Link Layer of the OSI model and helps to filter and forward data between LAN segments?
In Java, which method is called when an object is garbage collected?
Which of the following is a valid operation on a linked list data structure?
In C, what is the output of printf("%d", 5/2);?
In Java, which data type is used to store true or false values?
- Which of the following is a core feature of Cloud Computing that distinguishes it from traditional computing models?