Coditas Technologies
J B Chemicals And Pharmaceuticals Interview Questions and Answers
Q1. Difference between ENTRYPOINT, CMD, and RUN in docker. Can we use RUN instead of CMD in a Dockerfile? Difference between ARGS and ENV.
Explaining the differences between ENTRYPOINT, CMD, and RUN in Docker and the usage of ARGS and ENV.
ENTRYPOINT is the command that runs when the container starts
CMD is the default command that runs after ENTRYPOINT, can be overridden
RUN executes commands during the build process
RUN can be used instead of CMD, but it will not be the default command
ARGS are used to pass arguments to the Dockerfile during build time
ENV sets environment variables that can be used in the Dockerfil...read more
Q2. Difference between verification and validation
Verification ensures that the product is built according to the design specifications, while validation ensures that the product meets the customer's needs and requirements.
Verification checks if the product is being built correctly, while validation checks if the right product is being built.
Verification is a process of evaluating the intermediate work products, while validation is a process of evaluating the final product.
Verification is done before validation.
Examples of v...read more
Q3. Difference between sanity and smoke
Sanity and smoke are types of testing in software engineering.
Sanity testing is a quick test to check if the major functionalities of the application are working after a small change is made.
Smoke testing is a quick test to check if the application is stable enough to proceed with further testing.
Sanity testing is done to ensure that the application is ready for further testing.
Smoke testing is done to ensure that the application is stable enough to proceed with further testi...read more
Q4. What is header?
A header is a section of data at the beginning of a file or packet that contains information about the file or packet.
Headers are used in various protocols such as HTTP, SMTP, and TCP/IP.
HTTP headers contain information about the request or response, such as the content type and encoding.
SMTP headers contain information about the email, such as the sender, recipient, and subject.
TCP/IP headers contain information about the packet, such as the source and destination IP address...read more
Q5. Most Frequent Element of Array.
Find the most frequent element in an array of strings.
Create an object to store the frequency of each element in the array.
Iterate through the array and update the frequency count in the object.
Find the element with the highest frequency in the object.
Q6. Unique elements out of array
Return unique elements from an array of strings
Use Set to store unique elements
Convert array to Set and then back to array to get unique elements
Example: ['apple', 'banana', 'apple', 'orange'] should return ['apple', 'banana', 'orange']
Q7. Closures in the JavaScript
Closures in JavaScript allow functions to access variables from an outer function even after the outer function has finished executing.
Closures are created when a function is defined within another function and the inner function references variables from the outer function.
Closures have access to the outer function's scope chain, allowing them to access variables even after the outer function has returned.
Closures are commonly used in event handlers, callbacks, and for data ...read more
Q8. List vs Set difference
List allows duplicate elements and maintains insertion order, while Set does not allow duplicates and does not maintain order.
List can contain duplicate elements, while Set cannot.
List maintains the order of elements based on insertion, while Set does not guarantee any specific order.
Examples: ArrayList is a List implementation, HashSet is a Set implementation.
Top HR Questions asked in J B Chemicals And Pharmaceuticals
Interview Process at J B Chemicals And Pharmaceuticals
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month