Technology Questions

Q:

How to set cookies?

Answer

setcookie('variable','value','time');
variable - name of the cookie variable
value     - value of the cookie variable
time       - expiry time

Example:
<?php
setcookie('Test',$i,time()+3600);
?>
Test - cookie variable name
$i - value of the variable 'Test'
time()+3600 - denotes that the cookie will expire after an one hour

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 2846
Q:

A Website address is a unique name that identifies a specific

A) Link B) PDA
C) Web browser D) Website
 
Answer & Explanation Answer: D) Website

Explanation:
Report Error

View Answer Report Error Discuss

0 2843
Q:

What is Legaccy System Migration Workbench? How it can be carried out in SAP SD?

Answer

LSMW is widely used by EDI programmers. EDI Programmers connect the SAP system to Non SAP system. During this Data migration is a necessity. When data migrates from source to destination the destination code is differrent from the source code. So what LSMW does is 


* Converts the data in to batch files


* Then converts the batch files in to source code batch files 


* And then mirgates data. Standard Interfaces like BAPI or Idoc are used in this process.

Report Error

View answer Workspace Report Error Discuss

Subject: SAP

0 2843
Q:

What is a prompt box?

Answer

A prompt box allows the user to enter input by providing a text box.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

1 2843
Q:

What is the difference between ViewState and SessionState?

Answer

'ViewState' is specific to a page in a session.
'SessionState' is specific to user specific data that can be accessed across all pages in the web application.

Report Error

View answer Workspace Report Error Discuss

Subject: Java
Job Role: Analyst , IT Trainer

3 2839
Q:

Write an algorithm to separate all ones & zeroes in an array.

Answer

1. Have two indexes pointing to two ends of array, say i and j.


2. Approach towards each other with a check condition that they dont cross each other.


3. Each iteration of while loop, swap the numbers pointed by two indexes when num[i] index number is not equal to 1.


 


void sort()


{


     int a[]={1,0,0,0,1,1,0,1,0,1,0,0,1,0};


     int i=0;


     int j=13;


     int temp;


      while(j>i)


     {


          if(a[i]==1)


                 i++;


          if(a[j]==0)


                 j--;


          if(a[i]==0)


         {


                 temp=a[i];


                a[i]=a[j];


                a[j]=temp;


         }


     } 


     for(i=0;i<14;i++)


             Console.Write(a[i]+", ");


}


Output: 1,1,1,1,1,1,0,0,0,0,0,0,0

Report Error

View answer Workspace Report Error Discuss

0 2837
Q:

A small text file on the client machine either in the client’s file system or memory of client browser session is called

A) View State B) Cookies
C) QueryString D) None
 
Answer & Explanation Answer: B) Cookies

Explanation:

A cookie is a small text file on the client machine either in the client’s file system or memory of client browser session.

Report Error

View Answer Report Error Discuss

Filed Under: .NET
Job Role: Software Architect

0 2836
Q:

What are the main components of .NET Framework?

Answer

.NET Framework provides enormous advantages to software developers in comparison to the advantages provided by other platforms. Microsoft has united various modern as well as existing technologies of software development in .NET Framework. These technologies are used by developers to develop highly efficient applications for modern as well as future business needs. The following are the key components of .NET Framework:

 =>   .NET Framework Class Library
 =>   Common Language Runtime
 =>   Dynamic Language Runtimes (DLR)
 =>   Application Domains
 =>   Runtime Host
 =>   Common Type System
 =>   Metadata and Self-Describing Components
 =>   Cross-Language Interoperability
 =>  .NET Framework Security
 =>   Profiling
 =>   Side-by-Side Execution

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 2836