UST
20+ Naresh Radio Interview Questions and Answers
Q1. String Compression Task
Develop an algorithm that compresses a string by replacing consecutive duplicate characters with the character followed by the count of its repetitions, if that count exceeds 1.
Example:...read more
Q2. Next Permutation Task
Design a function to generate the lexicographically next greater permutation of a given sequence of integers that form a permutation.
A permutation contains all integers from 1 to N exactl...read more
Q3. Binary Tree K-Sum Paths Problem
Given a binary tree where each node contains an integer value, and a number 'K', your task is to find and output all paths in the tree where the sum of the node values equals 'K'...read more
Q4. Convert Sentence Problem Statement
Convert a given string 'S' into its equivalent representation based on a mobile numeric keypad sequence. Using the keypad layout shown in the reference, output the sequence of...read more
Q5. Longest Increasing Subsequence Problem Statement
Given an array of integers with 'N' elements, determine the length of the longest subsequence where each element is greater than the previous element. This subse...read more
Q6. Trapping Rainwater Problem Statement
You are provided with an array/list named 'ARR' of size 'N'. This array represents an elevation map where 'ARR[i]' indicates the elevation of the 'ith' bar. Calculate and ou...read more
Q7. Two Sum Pair Finding Task
Given an array of integers ARR
of length N
and an integer Target
, your objective is to find and return all pairs of distinct elements in the array that sum up to the Target
.
Input:
int...read more
Q11. in which tool you are using?
I am currently using Visual Studio Code as my primary tool for software development.
Visual Studio Code is a lightweight and versatile code editor.
It has a wide range of extensions and plugins available for customization.
It supports multiple programming languages and has built-in Git integration.
Other tools I have experience with include Eclipse, IntelliJ IDEA, and Sublime Text.
Q13. How to create custom serializable interface
To create a custom serializable interface, you need to define an interface with the Serializable marker interface and implement the necessary methods.
Define an interface with the Serializable marker interface
Implement the necessary methods for serialization and deserialization
Ensure all fields in the class implementing the interface are serializable
Q14. Write a program to reverse a string
Program to reverse a string using array of characters
Create an array of characters to store the input string
Iterate through the input string and store each character in the array
Iterate through the array in reverse order to construct the reversed string
Q15. what is event loop in js
Event loop in JavaScript is a mechanism that allows asynchronous non-blocking behavior by handling events and callbacks.
Event loop is responsible for handling asynchronous operations in JavaScript.
It allows JavaScript to perform non-blocking operations by queuing tasks in a loop.
Event loop continuously checks the call stack and the task queue, moving tasks from the queue to the stack when the stack is empty.
Example: setTimeout() function in JavaScript uses the event loop to e...read more
Q16. Whatis criteria in hibernate
Criteria in Hibernate is used to create and execute dynamic queries.
Criteria is an interface in Hibernate that allows the creation of dynamic queries without using HQL or SQL.
Criteria queries are type-safe and can be easily modified at runtime.
Criteria queries can be used to fetch entities based on certain conditions or restrictions.
Example: Criteria criteria = session.createCriteria(Employee.class);
Q17. Why use Hibernate?
Hibernate simplifies the process of managing database operations in Java applications.
Provides object-relational mapping (ORM) capabilities
Reduces boilerplate code for database operations
Supports various database vendors and SQL dialects
Enables transparent persistence
Facilitates easy querying and caching of data
Q18. Whats is jvm and jdk
JVM is a virtual machine that executes Java bytecode. JDK is a software development kit that includes the JVM and other tools.
JVM stands for Java Virtual Machine
JVM is responsible for executing Java bytecode
JDK stands for Java Development Kit
JDK includes the JVM, compiler, debugger, and other tools
JDK is used for developing Java applications
Q19. what is node.js
Node.js is a runtime environment that allows you to run JavaScript on the server side.
Node.js is built on Chrome's V8 JavaScript engine.
It uses an event-driven, non-blocking I/O model.
Node.js is commonly used for building scalable network applications.
Q20. Program to write palindrome
Program to check if a given string is a palindrome
Create a function that takes a string as input
Remove all non-alphanumeric characters and convert to lowercase
Compare the string with its reverse to check if it is a palindrome
Q21. Explain oops and wpf concepts
OOPs stands for Object-Oriented Programming and WPF stands for Windows Presentation Foundation.
OOPs is a programming paradigm based on the concept of objects, which can contain data in the form of fields and code in the form of procedures.
WPF is a framework for building Windows client applications with rich user interfaces.
In OOPs, concepts like inheritance, encapsulation, polymorphism, and abstraction are used to design and implement software.
WPF allows developers to create ...read more
More about working at UST
Top HR Questions asked in Naresh Radio
Interview Process at Naresh Radio
Top Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month