Cognizant
40+ Vidal Health Tpa Interview Questions and Answers
Q1. If there are 10 ball 2 red, 5 blue ,3 orange and one ball is picked randomly what is probability that the ball picked is red?
What is the probability of picking a red ball out of 10 balls with 2 red, 5 blue, and 3 orange?
There are 2 red balls out of 10 total balls
The probability of picking a red ball is 2/10 or 1/5
The probability can also be expressed as 20%
Q2. How to check the object locks and steps to make the job run.
To check object locks, use system tools like Process Explorer or Task Manager. To make the job run, ensure necessary dependencies are met.
Use system tools like Process Explorer or Task Manager to check object locks
Ensure necessary dependencies are met for the job to run smoothly
Q3. What are the types of job scheduler in as400
There are two types of job schedulers in AS400: the native job scheduler and the advanced job scheduler.
The native job scheduler is the default scheduler provided by AS400.
It allows scheduling jobs based on time, date, and other criteria.
The advanced job scheduler is a third-party tool that offers more advanced scheduling capabilities.
It provides features like dependency management, event-based scheduling, and workload balancing.
Examples of advanced job schedulers for AS400 i...read more
Q4. How to download the files from as400 system .
To download files from AS400 system, use FTP or a file transfer utility like IBM i Access Client Solutions.
Use FTP (File Transfer Protocol) to transfer files from AS400 system to another system.
Install and configure an FTP client on your local machine.
Connect to the AS400 system using the FTP client.
Navigate to the directory where the files are located on the AS400 system.
Use the 'get' command to download the files to your local machine.
Alternatively, you can use a file trans...read more
Q5. How to check the data area value in as400
To check the data area value in AS400, you can use the DSPDTAARA command.
Use the DSPDTAARA command followed by the library and data area name to display the value.
You can also use the RTVDTAARA command to retrieve the value into a program variable.
If the data area is in a different library, specify the library name before the data area name.
Ensure that you have the necessary authority to access the data area.
Q6. How to make job run from one jobq to another.
To make a job run from one jobq to another, you can use the CHGJOBQ command in IBM i (AS/400) system.
Use the CHGJOBQ command to change the job queue of a job
Specify the new job queue name in the JOBQ parameter of the CHGJOBQ command
The job will be moved to the specified job queue when it is next eligible to run
Q7. Explain Polymorphism and write a program to show it.
Polymorphism is the ability of an object to take on many forms. It allows objects of different classes to be treated as if they were of the same class.
Polymorphism is achieved through method overriding and method overloading.
Method overriding is when a subclass provides a specific implementation of a method that is already provided by its parent class.
Method overloading is when a class has two or more methods with the same name but different parameters.
Example: A shape class ...read more
Q8. write a query for fetching the second highest salary from the table.
Query for fetching the second highest salary from a table.
Use ORDER BY and LIMIT to fetch the second highest salary.
Exclude the highest salary using subquery or WHERE clause.
Q9. How to check source object in AS400 .
To check source object in AS400, use the DSPOBJD command.
Use the DSPOBJD command followed by the library name and object name to display object details.
The source object type should be specified as *PGM or *FILE.
The output will include information like source file, member, and source type.
Q10. How to insert your data in as400
To insert data in AS400, use SQL INSERT statement with appropriate table name and column values.
Connect to AS400 database using JDBC or ODBC driver
Construct an SQL INSERT statement with the table name and column names
Provide the values to be inserted for each column in the VALUES clause
Execute the INSERT statement using a prepared statement or statement object
Q11. What are Arrays and difference between Arrays and ArrayList
Arrays are a collection of elements of the same data type, while ArrayList is a dynamic array that can grow or shrink in size.
Arrays have a fixed size, while ArrayList can dynamically resize.
Arrays can only store elements of the same data type, while ArrayList can store elements of different data types.
Arrays are faster in terms of performance compared to ArrayList.
Arrays are part of the core Java language, while ArrayList is a class in the Java Collections Framework.
Q12. Write a c program to swap alternative letters in a given string.
A C program to swap alternative letters in a given string.
Declare a character array to store the input string.
Use a loop to iterate through the string and swap alternative letters.
Print the modified string.
Q13. Difference between abstract class & functional interface
Abstract class can have both abstract and non-abstract methods, while functional interface can have only one abstract method.
Abstract class can have constructors, fields, and methods, while functional interface can only have one abstract method.
Abstract class can have abstract and non-abstract methods, while functional interface can only have one abstract method.
Abstract class can provide default implementations for methods, while functional interface cannot.
Example: Abstract...read more
Q14. What is jobq in as400
JobQ is a job queue in AS400 that manages the execution of batch jobs.
JobQ is used to prioritize and schedule batch jobs on AS400.
It allows multiple jobs to be submitted and executed in a specific order.
Jobs in the queue can be held, released, or deleted as needed.
JobQ provides a way to manage and control the execution of batch jobs efficiently.
Example: WRKJOBQ command is used to display the jobs in a specific job queue.
Q15. What are MQ's in AS400
MQ's in AS400 are message queues used for inter-process communication.
MQ's in AS400 allow different programs or processes to communicate with each other by sending and receiving messages.
They provide a reliable and asynchronous way of exchanging data between applications.
MQ's can be used for various purposes such as sending notifications, transferring data between systems, or triggering actions based on events.
They are commonly used in enterprise applications for integrating ...read more
Q16. What is the software you worked on
I worked on a web-based project management software for tracking tasks and deadlines.
Developed front-end using React.js
Implemented back-end using Node.js and MongoDB
Integrated third-party APIs for additional functionality
Q17. Tell about stream API in java-8
Stream API in Java-8 is a powerful tool for processing collections of data.
Stream API provides a functional approach to processing data.
It allows for parallel processing of data.
Stream API includes methods like filter, map, reduce, and collect.
Example: List
numbers = Arrays.asList(1, 2, 3, 4, 5); numbers.stream().filter(n -> n % 2 == 0).forEach(System.out::println); Example: List
names = Arrays.asList("John", "Mary", "Bob"); String result = names.stream().map(String::toUpperCa...read more
Q18. How to reverse an array of numbers?
To reverse an array of numbers, iterate through the array and swap elements from start to end.
Iterate through the array using two pointers, one starting from the beginning and the other from the end.
Swap elements at the two pointers and move the pointers towards the center until they meet.
Example: Input array [1, 2, 3, 4, 5], after reversing becomes [5, 4, 3, 2, 1].
Q19. What is the main concepts on Java
Main concepts in Java include object-oriented programming, inheritance, polymorphism, encapsulation, and abstraction.
Object-oriented programming: Java is an object-oriented language where everything is treated as an object.
Inheritance: Allows a class to inherit properties and behavior from another class.
Polymorphism: Ability of an object to take on many forms.
Encapsulation: Bundling of data and methods that operate on the data into a single unit.
Abstraction: Hiding the implem...read more
Q20. How authentication and authorization works
Authentication verifies user identity, while authorization determines user access rights.
Authentication confirms user identity through credentials like passwords or biometrics
Authorization checks if authenticated user has permission to access specific resources
Common authentication methods include username/password, OAuth, and biometric authentication
Authorization can be role-based, attribute-based, or rule-based
Example: User logs in with username/password (authentication) an...read more
Q21. What you know about SQL
SQL is a domain-specific language used for managing and manipulating relational databases.
SQL stands for Structured Query Language
It is used to communicate with databases to retrieve, insert, update, and delete data
Common SQL commands include SELECT, INSERT, UPDATE, DELETE
SQL can be used to create and modify database schemas
Joins are used to combine data from multiple tables in SQL
Q22. Does platform independent in JAVA?
Yes, Java is platform independent due to its ability to compile code into bytecode that can run on any platform with a Java Virtual Machine (JVM).
Java code is compiled into bytecode, which can run on any platform with a JVM.
The JVM acts as an intermediary between the Java code and the underlying platform.
This allows Java programs to be written once and run on any platform without modification.
Q23. Write a program to find addition of two numbers
A program to find the addition of two numbers
Declare two variables to store the numbers
Take input from user or use predefined values
Add the two numbers together
Print the result
Q24. What version controls you are aware
I am aware of Git, SVN, Mercurial, and CVS.
Git is the most popular and widely used version control system.
SVN is a centralized version control system.
Mercurial is similar to Git but with a simpler design.
CVS is an older version control system that is not commonly used anymore.
Q25. Do you Know about OOPS?
OOPS stands for Object-Oriented Programming System. It is a programming paradigm based on the concept of objects.
OOPS focuses on creating objects that contain both data and methods to manipulate that data.
Encapsulation, inheritance, and polymorphism are key principles of OOPS.
Examples of OOPS languages include Java, C++, and Python.
Q26. Write a programof palindrome of string?
A program to check if a given string is a palindrome or not.
Create a function that takes a string as input.
Reverse the string and compare it with the original string.
If they are the same, then the string is a palindrome.
Examples: 'madam' is a palindrome, 'hello' is not a palindrome.
Q27. What is oops concepts?
Object-oriented programming concepts that focus on objects and classes for code organization and reusability.
Encapsulation: Bundling data and methods that operate on the data into a single unit (class).
Inheritance: Ability of a class to inherit properties and behavior from another class.
Polymorphism: Ability to present the same interface for different data types.
Abstraction: Hiding the complex implementation details and showing only the necessary features to the user.
Q28. What you know in java
I have knowledge in Java programming language including OOP concepts, data structures, multithreading, and exception handling.
Strong understanding of Object-Oriented Programming (OOP) principles
Experience with data structures like arrays, linked lists, stacks, and queues
Knowledge of multithreading and synchronization in Java
Familiarity with exception handling and error management
Proficiency in using Java libraries and frameworks like Spring, Hibernate, and JUnit
Q29. Define internal working of Hashmap
Hashmap is a data structure that stores key-value pairs and uses hashing to quickly retrieve values based on keys.
Hashmap uses an array to store key-value pairs.
Keys are hashed to determine the index where the value will be stored.
Collision handling techniques like chaining or open addressing are used to deal with multiple keys hashing to the same index.
Retrieving a value involves hashing the key to find the index and then accessing the value stored at that index.
Example: Has...read more
Q30. Define multi threading & synchronisation
Multithreading is the ability of a CPU to execute multiple threads concurrently, while synchronization is the coordination of multiple threads to ensure data consistency.
Multithreading allows multiple threads to run concurrently on a single CPU core.
Synchronization is used to coordinate access to shared resources among multiple threads.
Examples of synchronization mechanisms include locks, semaphores, and monitors.
Multithreading can improve performance by utilizing idle CPU ti...read more
Q31. Which technology you used
I have experience with technologies such as Java, Python, SQL, HTML, CSS, and JavaScript.
Java
Python
SQL
HTML
CSS
JavaScript
Q32. What is generic in cpp
Generics in C++ allow for writing generic algorithms and data structures that work with any data type.
Generics in C++ are implemented using templates, which allow for writing code that can work with any data type.
Templates are a way to create generic functions or classes without specifying the data type.
For example, a generic function to find the maximum of two values can be written using templates.
Another example is a generic class like a linked list that can store any data ...read more
Q33. What is Pointers ?
Pointers are variables that store memory addresses of other variables in programming languages like C and C++.
Pointers allow direct access to memory locations
They are used for dynamic memory allocation
Pointers can be used to pass variables by reference
Example: int *ptr; ptr = # // ptr now points to the memory address of num
Q34. What are data types?
Data types are classifications of data items that determine the possible values and operations that can be performed on them.
Data types define the type of data that a variable can hold, such as integers, strings, or booleans.
Examples of data types include int (integer), float (floating point number), char (character), and bool (boolean).
Data types also determine the size of the variable in memory and the range of values it can store.
Q35. String reverse with different approaches
Reverse a string using different approaches
Use built-in functions like reverse() or StringBuilder.reverse()
Iterate through the string and build a new string in reverse order
Use recursion to reverse the string
Q36. Define the Oops pillars.
Oops pillars are the four main principles of object-oriented programming: Inheritance, Encapsulation, Abstraction, and Polymorphism.
Inheritance: Allows a class to inherit properties and behavior from another class.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Abstraction: Hiding the complex implementation details and showing only the necessary features of an object.
Polymorphism: Ability of an object to take on many forms.
Q37. Stored Procedure in SQL
Stored procedures in SQL are precompiled SQL statements that are stored in the database for reuse.
Stored procedures can improve performance by reducing network traffic and increasing security.
They can be used to encapsulate business logic and complex queries.
Stored procedures can accept input parameters and return output parameters or result sets.
Examples: CREATE PROCEDURE, EXECUTE PROCEDURE.
Q38. Explain what is java
Java is a high-level programming language known for its portability, security, and object-oriented features.
Java is platform-independent, meaning it can run on any device with a Java Virtual Machine (JVM)
It is object-oriented, allowing for modular and reusable code
Java is known for its security features, such as sandboxing and encryption
Popular frameworks and libraries in Java include Spring, Hibernate, and Apache Struts
Q39. What is react hooks
React Hooks are functions that let you use state and other React features without writing a class.
React Hooks were introduced in React 16.8.
They allow you to use state and other React features in functional components.
Some commonly used hooks are useState, useEffect, useContext, and useRef.
Hooks provide a more concise and readable way to work with React components.
Q40. Sort array using stream api
Sort array of strings using Java Stream API
Use Arrays.stream() to convert array to stream
Use sorted() method to sort the stream
Use collect() method to convert the sorted stream back to array
Q41. Oops in cpp programing
In C++, 'oops' typically refers to Object-Oriented Programming concepts and principles.
Oops in C++ refers to Object-Oriented Programming concepts like classes, objects, inheritance, polymorphism, and encapsulation.
Common mistakes in C++ programming include memory leaks, null pointer dereferencing, and improper use of pointers.
Example: Forgetting to delete dynamically allocated memory can lead to memory leaks in C++ programs.
Q42. Explain package
A package is a way to organize related classes and interfaces in Java.
Packages help in organizing code and avoiding naming conflicts
Packages can be nested within each other
Packages are declared using the 'package' keyword at the beginning of a Java file
Q43. Reverse a string
Reverse a given string
Use a loop to iterate through the characters of the string
Swap the characters from start to end of the string
Repeat until the entire string is reversed
More about working at Cognizant
Top HR Questions asked in Vidal Health Tpa
Interview Process at Vidal Health Tpa
Top Junior Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month