Find Interview Questions for Top Companies
Uvj technologies pvt.ltd - india Interview Questions and Answers
Ques:- Hi Friends, I am new to java, please provide some use full docs, and where can i get basic Java script docs… thanx in advance
Comments
Admin May 17, 2020

Dear Friend,
Pls go thru www.w3schools.com, I guess it is much helpful to
you.
All The Best.

Admin May 17, 2020

Hey Surendra;
Go through the following sites, If you read all through out
then you will get perfection in Javascript.
1. w3schools.com
2. brainjar.com
--
Cheers
Vikram

Ques:- what is the source code for sendRedirect method()java Servlet program?
Comments
Admin May 17, 2020

first,u have to use sendRedirect in form of JSP browserside.
<form method="POST"
action="/SendRedirect/SendRedirectServlet">
second in SendRedirectServlet, u have giving a response to
browser side
response.sendRedirect("/SendRedirect/ValidUserServlet");
it makes a request to one resource in server.
in server, gives response to browser. session is lost at a
time.

Ques:- Write a javascript program to make a simple calculator
Comments
Admin May 17, 2020

<html>
<head>
<title>A simple JavaScript calculator</title>
<script language='JavaScript'>
Default = "0";
Current = "0";
Operation = 0;
MaxLength = 30;
function AddDigit(dig) {
if (Current.indexOf("!") == -1) {
if ((eval(Current) == 0) && (Current.indexOf(".") == -1)) {
Current = dig;
} else {
Current = Current + dig;
}
Current = Current.toLowerCase();
} else {
Current = "Hint! Press 'AC'";
}
if (Current.indexOf("e0") != -1) {
var epos = Current.indexOf("e");
Current = Current.substring(0,epos+1) + Current.substring(epos+2);
}
if (Current.length > MaxLength) {
Current = "Too long";
}
document.Calculator.Display.value = Current;
}
function Dot() {
if ( Current.length == 0) {
Current = "0.";
} else {
if (( Current.indexOf(".") == -1) && (Current.indexOf("e") == -1)) {
Current = Current + ".";
}
}
document.Calculator.Display.value = Current;
}
function DoExponent() {
if ( Current.indexOf("e") == -1 ) {
Current = Current + "e0";
document.Calculator.Display.value = Current;
}
}
function PlusMinus() {
if(Current.indexOf("e") != -1) {
var epos = Current.indexOf("e-");
if (epos != -1) {
Current = Current.substring(0,1+epos) + Current.substring(2+epos);
} else { epos = Current.indexOf("e");
Current = Current.substring(0,1+epos) + "-" + Current.substring(1+epos);
}
} else {
if ( Current.indexOf("-") == 0 ) {
Current = Current.substring(1);
} else {
Current = "-" + Current;
}
if ((eval(Current) == 0) && (Current.indexOf(".") == -1 )) {
Current = "0"; }
}
document.Calculator.Display.value = Current;
}
function Clear() {
Current = "0";
document.Calculator.Display.value = Current;
}
function AllClear() {
Current = "0";
Operation = 0;
Default = "0";
document.Calculator.Display.value = Current;
}
function Operate(op) {
if (Operation != 0) { Calculate(); };
if (op.indexOf("*") > -1) { Operation = 1; };
if (op.indexOf("/") > -1) { Operation = 2; };
if (op.indexOf("+") > -1) { Operation = 3; };
if (op.indexOf("-") > -1) { Operation = 4; };
Default = Current;
Current = "";
document.Calculator.Display.value = Current;
}
function Calculate() {
if (Operation == 1) { Current = eval(Default) * eval(Current); };
if (Operation == 2) {
if (eval(Current) != 0) {
Current = eval(Default) / eval(Current)
} else {
Current = "Divide by zero";
}
}
if (Operation == 3) { Current = eval(Default) + eval(Current); };
if (Operation == 4) { Current = eval(Default) - eval(Current); };
Operation = 0;
Default = "0";
Current = Current + "";
if (Current.indexOf("Infinity") != -1) {
Current = "Value too big";
}
if (Current.indexOf("NaN") != -1) {
Current = "I don't understand";
}
document.Calculator.Display.value = Current;
}
function FixCurrent() {
Current = document.Calculator.Display.value;
Current = "" + parseFloat(Current);
if (Current.indexOf("NaN") != -1) {
Current = "I don't understand";
}
document.Calculator.Display.value = Current;
}
</script>
</head>
<hr><div align="center">
<FORM name="Calculator">
<table width="40%" height="40%" border="4" bgcolor="#FFEBCD"><tr>
<td colspan="2" align="center">
<b><font face="Verdana, Arial, Helvetica" color="#000080" size="3">
A Simple JavaScript Calculator<br></font>
<font face="Courier" size="5">
<input type="text" maxlength="40" size="25" name="Display" onChange="FixCurrent()">
</font></b>
</td></tr>
<tr><td width="65%" align="center">
<table><tr>
<td><input type="button" name="seven" value=" 7 " OnClick="AddDigit('7')"></td>
<td><input type="button" name="eight" value=" 8 " OnClick="AddDigit('8')"></td>
<td><input type="button" name="nine" value=" 9 " OnClick="AddDigit('9')"></td>
</tr><tr>
<td><input type="button" name="four" value=" 4 " OnClick="AddDigit('4')"></td>
<td><input type="button" name="five" value=" 5 " OnClick="AddDigit('5')"></td>
<td><input type="button" name="six" value=" 6 " OnClick="AddDigit('6')"></td>
</tr><tr>
<td><input type="button" name="one" value=" 1 " OnClick="AddDigit('1')"></td>
<td><input type="button" name="two" value=" 2 " OnClick="AddDigit('2')"></td>
<td><input type="button" name="three" value=" 3 " OnClick="AddDigit('3')"></td>
</tr><tr>
<td><input type="button" name="plusmin" value=" +/- " OnClick="PlusMinus()"></td>
<td><input type="button" name="one" value=" 0 " OnClick="AddDigit('0')"></td>
<td><input type="button" name="two" value=" . " OnClick="Dot()"></td>
</tr>
</table>
</td>
<td width="35%" align="center">
<table><tr>
<td><input type="button" name="clear" value=" C " OnClick="Clear()"></td>
<td><input type="button" name="AC" value=" AC " OnClick="AllClear()"></td>
</tr><tr>
<td><input type="button" name="mul" value=" * " OnClick="Operate('*')"></td>
<td><input type="button" name="div" value=" / " OnClick="Operate('/')"></td>
</tr><tr>
<td><input type="button" name="add" value=" + " OnClick="Operate('+')"></td>
<td><input type="button" name="sub" value=" - " OnClick="Operate('-')"></td>
</tr><tr>
<td><input type="button" name="result" value=" = " OnClick="Calculate()"></td>
<td align="right"><input type="button" name="exp" value=" EXP " OnClick="DoExponent()"></td>
</tr></table>
</td>
</tr></table>
</div></body>
</html>

Admin May 17, 2020

Actually we already known simple calculator means such like
addition, subraction,division, multiplication.those things
are coding by switch case method.

Ques:- What are some common challenges in mobile app development
Right Answer:
Some common challenges in mobile app development include:

1. Device Fragmentation: Different screen sizes, resolutions, and operating systems.
2. Performance Optimization: Ensuring the app runs smoothly on various devices.
3. Security: Protecting user data and preventing breaches.
4. User Experience: Designing intuitive interfaces that meet user expectations.
5. Connectivity Issues: Handling offline functionality and varying network conditions.
6. App Store Guidelines: Complying with different app store requirements and policies.
7. Testing: Ensuring the app works correctly across multiple devices and platforms.
Ques:- How do you test mobile applications on different devices
Right Answer:
To test mobile applications on different devices, you can use the following methods:

1. **Real Device Testing**: Use physical devices to test the app on various screen sizes, operating systems, and hardware configurations.
2. **Emulators and Simulators**: Utilize emulators (for Android) and simulators (for iOS) to mimic different devices and test the app's functionality.
3. **Cloud Testing Services**: Leverage cloud-based testing platforms like BrowserStack or Sauce Labs that provide access to a wide range of devices and configurations.
4. **Automated Testing Tools**: Implement automated testing frameworks like Appium or Espresso to run tests across multiple devices efficiently.
5. **Manual Testing**: Conduct manual testing on key devices to ensure user experience and functionality are consistent.

By combining these methods, you can effectively test mobile applications across different devices.
Ques:- What tools do you use for debugging mobile apps
Right Answer:
I use tools like Android Studio's Logcat, Xcode's debugger, Chrome DevTools for web views, and third-party tools like Flipper or Firebase Crashlytics for debugging mobile apps.
Ques:- What is the difference between native web and hybrid apps
Right Answer:
Native apps are developed specifically for one platform (like iOS or Android) using platform-specific languages and tools, providing better performance and access to device features. Web apps are accessed through a web browser and are built using standard web technologies (HTML, CSS, JavaScript), while hybrid apps combine elements of both, allowing them to run on multiple platforms but often with less performance than native apps.
Ques:- What are the advantages of using a cross platform framework
Right Answer:
The advantages of using a cross-platform framework include:

1. **Code Reusability**: Write once, run on multiple platforms, reducing development time and effort.
2. **Cost Efficiency**: Lower development and maintenance costs since a single codebase serves multiple platforms.
3. **Faster Development**: Accelerated development process due to shared code and resources.
4. **Consistent User Experience**: Uniform look and feel across different devices and platforms.
5. **Access to a Wider Audience**: Reach users on various platforms (iOS, Android, etc.) without separate apps.
6. **Easier Updates**: Simplified updates and bug fixes since changes are made in one codebase.
Ques:- Whats the difference between mod_python & mod_wsgi
Right Answer:
mod_python is an Apache module that allows embedding Python code within web applications, but it is outdated and no longer actively maintained. mod_wsgi, on the other hand, is a more modern and efficient Apache module designed specifically for hosting Python web applications using the WSGI (Web Server Gateway Interface) standard, making it the preferred choice for deploying Django applications.
Ques:- How can I find the methods or attributes of an object in python?
Comments
Admin May 17, 2020

Built-in dir() function of Python ,on an instance shows the instance variables as well as the methods and class attributes defined by the instance's class and all its base classes alphabetically. So by any object as argument to dir() we can find all the methods & attributes of the object’s class.
Following code snippet shows dir() at work :
class Employee:
def __init__(self,name,empCode,pay):
self.name=name
self.empCode=empCode
self.pay=pay
print("dir() listing all the Methods & attributes of class Employee")
print dir(e)
-----------------------------------------------------
Output
dir() listing all the Methods & attributes of class Employee
[ '__init__', 'empCode', 'name', 'pay']

Ques:- What do you like most about Quality Assurance/Testing?
Right Answer:
I enjoy Quality Assurance/Testing because it allows me to ensure that software meets high standards of quality and reliability, ultimately enhancing user satisfaction and preventing issues in production.
Ques:- Which of these roles are the best and most popular?
Right Answer:
The best and most popular roles in Quality Assurance are Quality Assurance Analyst, Quality Assurance Engineer, and Test Manager.
AmbitionBox Logo

What makes Takluu valuable for interview preparation?

1 Lakh+
Companies
6 Lakh+
Interview Questions
50K+
Job Profiles
20K+
Users