ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 


 

Company >> ADITI >> ADITI Questions
 
 ADITI placement papers  ADITI Placement Papers (2)  Syntax Softtech technical test questions  Syntax-Softtech Technical Test Questions (2)  ADITI interview questions  ADITI Interview Questions (25)
 
Back to Questions Page
Question   What is the difference between 'User Agent' and 'Simulator'. Rank Answer Posted By  
 Interview Question Submitted By :: Tgspatro
I also faced this Question!!   © ALL Interview .com
Answer
User Agent identifies the mobile internals i.e.
Make,Model,Resolution ect.User Agent is mandatory while
downloading appropriate contents onto mobile, whereas a
simulator is used to test the downloading process using
various user agents to check whether a device is recognized
and specific content/build is sent through OTA.
 
0 Raj
 
 
Question   What is the difference between 'WAP testing' and 'Web testing'? Rank Answer Posted By  
 Interview Question Submitted By :: Tgspatro
I also faced this Question!!   © ALL Interview .com
Answer
WAP Testing: Is testing the WAP (Wireless Application 
Protocol) used in network applications.

Web Testing: Is mainly related to testing the web 
applications such as portals and websites.
 
0 Mahesh
 
 
Question   What is the difference between Simulator and Emulator? Rank Answer Posted By  
 Interview Question Submitted By :: Tgspatro
I also faced this Question!!   © ALL Interview .com
Answer
Simulator is used for download testing onto various mobile
by passing different user agents used by tester whereas
emulators are used to test the functionality generally used
by developer.
 
0 Raj
 
 
 
Answer
Simulator is the electronic network simulation equipment or a base station equipment for CDMA network/CDMA mobile phones and it is CISCO programmed.It helps in latching home network without roaming services and can make VOICE,SMS,DATA calls especially where there is no roaming facility to test the handset. The CDMA Frequency like 800/900,1800/1900 which do not support in Asia and Europe,can make them live! with the help of this Simulator, the highest capacity of the simulator depends of the manufacturer of the box, may be up to 2400-MHz. It has to be configured both in the box as well as in mobile phones. As per the box capacity it can connect only limited count of mobile phones at one network within a range of 10 meters. This was just brief...

Emulator is a software to test mobile application without a live handset.
 
0 Redredblue
[Digibee Microsystems Ltd]
 
 
Question   how to make program without <> in library. Rank Answer Posted By  
 Interview Question Submitted By :: Akashjg
I also faced this Question!!   © ALL Interview .com
Answer
hello 
and your answer is a  very easy you can write c progaram 
then you can write libary #include<stdio.h> insted of 
#include"stdio.h"
 
0 Gandhi Priyank
 
 
Question   About delegates and events? Rank Answer Posted By  
 Interview Question Submitted By :: Kayalvizhy
I also faced this Question!!   © ALL Interview .com
Answer
Delegates in C#
If we look at C++ there is a feature called callback 
function. This feature uses Pointers to Functions to pass 
them as parameters to other functions. Delegate is a 
similar feature but it is more type safe, which stands as a 
stark contrast with C++ function pointers. A delegate can 
hold reference/s to one more more functions and invoke them 
as and when needed.
Any delegate is inherited from base delegate class of .NET 
class library when it is declared. This can be from either 
of the two classes from System.Delegate or 
System.MulticastDelegate
If the delegate contains a return type of void, then it is 
automatically aliased to the type of 
System.MulticastDelegate

Events in c#
Delegate usefulness does not just lie in the fact that it 
can hold the references to functions but in the fact that 
it can define and use function names at runtime and not  at 
compile time. A large goal of design delegates is their 
applicability in events model of .Net. Events are the 
actions of the system on user manipulations (e.g. mouse 
clicks, key press, timer etc.) or any event triggered by 
the program

Example can be seen at 
http://www.codersource.net/csharp_delegates_events.html
 
0 Kishoreg
 
 
Answer
In C# delegate is a class which contain the referance of a 
function. or we can say that it is an function pointer.

and Event are the action performed by the user such as 
mouse click elc.
 
0 Anil Chauhan
 
 
Question   Whats the use of string builder? Rank Answer Posted By  
 Interview Question Submitted By :: Kayalvizhy
I also faced this Question!!   © ALL Interview .com
Answer
Since C# strings are immutable, an existing string cannot 
be modified. So, if one tries to change a string either 
with the concatenation operator (+) or with the Insert, 
PadLeft, PadRight, Replace, or SubString methods, an 
entirely new string is created—leaving the original string 
intact. 

Therefore, operations which would alter strings—instead—
cause additional memory to be allocated. Memory is a scarce 
resource. And, memory allocations are expensive in terms of 
memory and performance. Consequently, sometimes String 
class usage should be avoided. 

The StringBuilder class is designed for situations when one 
needs to work with a single string and make an arbitrary 
number of iterative changes to it. Many StringBuilder class 
methods are the same as those of the String class. However, 
the string content of a StringBuilder class can be changed 
without the necessity of allocating additional memory. 
Thus, operations on the StringBuilder class will be much 
faster than operations on the String class in certain 
situations. Paradoxically, just the the opposite can be 
true in other situations. 

The String class is optimized and quite efficient for most 
cases. On the other hand, if strings must be modified, then 
the String class can be a real resource waster. It must be 
appreciated that the String class is really very 
intelligent in its memory handling in most everyday 
programming situations. 

Instead of the String class, use the StringBuilder class 
when a single string must be modified repeatedly.
 
0 Kishoreg
 
 
Question   What is the difference between cookies and session? Rank Answer Posted By  
 Interview Question Submitted By :: Kayalvizhy
I also faced this Question!!   © ALL Interview .com
Answer
State Management in APS.NET is managed by two ways:
Client-Side or Server-Side

Client-Side:Cookies,HiddenFields,ViewState and Query 
Strings.
Serve-Side:Application,Session and Database.

COOKIE:
A cookie is a small amount of data stored either in a text 
file on the client's file system or in-memory in the client 
browser session. Cookies are mainly used for tracking data 
settings. Let’s take an example: say we want to customize a 
welcome web page, when the user request the default web 
page, the application first to detect if the user has 
logined before, we can retrieve the user informatin from 
cookies:
[c#]
if (Request.Cookies[“username”]!=null)
lbMessage.text=”Dear “+Request.Cookies[“username”].Value+”, 
Welcome shopping here!”;
else
lbMessage.text=”Welcome shopping here!”;

If you want to store client’s information, you can use the 
following code:
[c#]
Response.Cookies[“username’].Value=username;

So next time when the user request the web page, you can 
easily recongnize the user again.

SESSION:
Session object can be used for storing session-specific 
information that needs to be maintained between server 
round trips and between requests for pages. Session object 
is per-client basis, which means different clients generate 
different session object.The ideal data to store in session-
state variables is short-lived, sensitive data that is 
specific to an individual session.

Each active ASP.NET session is identified and tracked using 
a 120-bit SessionID string containing URL-legal ASCII 
characters. SessionID values are generated using an 
algorithm that guarantees uniqueness so that sessions do 
not collide, and SessionID’s randomness makes it harder to 
guess the session ID of an existing session.
SessionIDs are communicated across client-server requests 
either by an HTTP cookie or a modified URL, depending on 
how you set the application's configuration settings.

Every web application must have a configuration file named 
web.config, it is a XML-Based file, there is a section 
name ‘sessionState’, the following is an example:

<sessionState mode="InProc" 
stateConnectionString="tcpip=127.0.0.1:42424" 
sqlConnectionString="data source=127.0.0.1;user 
id=sa;password=" cookieless="false" timeout="20" />

‘cookieless’ option can be ‘true’ or ‘false’. When it 
is ‘false’(default value), ASP.NET will use HTTP cookie to 
identify users. When it is ‘true’, ASP.NET will randomly 
generate a unique number and put it just right ahead of the 
requested file, this number is used to identify users
[c#]
//to store information
Session[“myname”]=”Mike”;
//to retrieve information
myname=Session[“myname”];

this is briefly about cookies and sessions in ASP.NET
 
5 Kishoreg
 
 
Answer
Cookies
1.	Cookies can store only "string" datatype 
2.	They are stored at Client side 
3.	Cookie is non-secure since stored in text format at 
client side 
4.	Cookies may or may not be individual for every 
client 
5.	Due to cookies network traffic will increase.Size 
of cookie is limited to 40 and number of cookies to be used 
is restricted to 20. 
6.	Only in few situations we can use cookies because 
of no security 
7.	We can disable cookies 
8.	Since the value is string there is no security 
9.	We have persistent and non-persistent cookies

Session
1.	Session can store any type of data because the 
value is of datatype of "object" 
2.	These are stored at Server side 
3.	Session are secure because it is stored in binary 
format/encrypted form and it gets decrypted at server 
4.	Session is independent for every client i.e 
individual for every client 
5.	There is no limitation on size or number of 
sessions to be used in an application 
6.	For all conditions/situations we can use sessions 
7.	we cannot disable the sessions.Sessions can be used 
without cookies also(by disabling cookies)
8.	The disadvantage of session is that it is a 
burden/overhead on server 
9.	Sessions are called as Non-Persistent cookies 
because its life time can be set manually
 
5 Aruna Jyothi
 
 
Question   write a Program to dispaly upto 100 prime numbers(without using Arrays,Pointer) Rank Answer Posted By  
 Interview Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
#include<stdio.h>
#include<conio.h>
void main()
      {
        int flag,x;
        clrscr();
        printf("1\t");
        for(int i=1;i<=100;i++)
          {
            flag=0;
            for(x=2;x<=i;x++)
              {
                if(i%x==0)
                  {
                    flag=1;
                    break;
                  }
                else
                  continue;
              }
            if(i==x)
            printf("%d\t",i);
          }
        getch();
      }
 
5 Abhay
 
 
Answer
#include<iostream.h>
void main()
{
int n,a;
cout<<"enter the limit";
cin>>n;
for(i=1;i<=n;i++}
{
if(i=1)
{
cout<<"1 is neither a prime nor a composite no";
}
else if(i%1==0|i%i==0)
{
cout<<i<<"is a prime number";
}
}
}
 
0 Sathya
 
 
Answer
def shaf(n):
    l=range(3,n+1,2)
    mi=n
    i=0
    r=0
    print l   
    while l[i]<n-1:
        
        for j in range(2,l[i]):
            if l[i]%j==0:
                r=5
        if r==0:
            print l[i]
            
       
        r=0
        i=i+1
       
        
if __name__ == "__main__":
    print "prime numbers from 2 to <101 "      
    shaf(100)
 
0 Shabeer V C
 
 
Answer
void main()
{
int i,j,m;
for(i=1;i<=100;i++
{
m=0
for(j=1;j<i;j++)
{
if(i%j==0)
m++;
}
if(m==0)
printf("%d",i);
getch();
}
 
0 Karthik
 
 
Answer
#include<Stdio.h>
#include<conio.h>

int main()
{
	int i,j, flag = 0;

	for(i=2;i<=100;i++)
	{
		for(j=2;j<i;j++)
		{
			if(i != j)
			{
			  if(i%j != 0)
				   continue;
			  else
				  break;
			}
		}
       if(i == j)
		printf("%d ",i);

	}
}
 
0 Santhi Perumal
 
 
Answer
#include<stdio.h>
#include<conio.h>
void main()
{
int m,flag;
printf("enter the numbers upto which you wannt to find the prime numbers :");
scanf("%d",&m);
for(int i=1;i<=m;i++)
{ 
flag=1;
  for(int j=2;j<=i/2;j++)
    {
      if(i%j==0)
       flag=0;
}
if(flag==1)
printf("\n%d",i);
}
getch();
}       


thank u
 
0 Vignesh1988i
 
 
Answer
#include<iostream>
using namespace std;
int main()
{
int num,i,j,flag;
cout<<"enter the no. up2 which u want prime no's:";
cin>>num;
for(i=2;i<=num;i++)
{
flag=1;
for(j-2;j<i/2;i++)
{
if(i%j==0)
flag=0;
}
if(flag==1)
cout<<i<<" ";
}
}
 
0 Pravin
 
 
Question   We have 2 sites in which one site allows the user with out asking credentials and second one ask for credentials through a log page. What might be the configurations settings for both sites? We can use IIS and web.config files together. Rank Answer Posted By  
 Interview Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
First one using windows authentication as follows.

Set Windows authentication in IIS.
And in web.config 
<authorization>
	<deny users=”?”/>
</authorization>

For the second one.
We set IIS authentication as none. And in web.config file 
we mention as follow.

<authentication mode=”forms”>
<forms login=”login.aspx”/>
</authentication>
<authorization>
<deny user=”?”/>
<authorization>
 
0 Guest
 
 
Question   How do u identify the object that it is a standard object or not Rank Answer Posted By  
 Interview Question Submitted By :: Shyam
I also faced this Question!!   © ALL Interview .com
Answer
while recording that object if it displys d script 
like "obj_----" then it wud b a nonstandard object.
 
0 Srujan
 
 
Answer
To identify Standard and Non-Standard object,We have to Spy 
the object using GUI SPY, For Example if you Spy a Text box 
it displays "Edit" (in the recorded tab), or if u Spy on 
pushbutton it displays "pushbutton". This is nothing but 
Standard object,example calculator.

When u Spy on a paint window it displays "object" which 
indicates that it is an partially identified object as WR 
can identify but not fully.

when nothing is displayed on Spying it is Non standard 
object,say for an example take a Minesweeper game and spy 
it.
 
0 Chanakyan
 
 
Answer
While recording, winrunner identifies any standard 
objects inside the application, it will take nearest lable 
as the logical name.

    E.g: Edit box ( attached text as a logical name)
 
0 Sivakumar
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com