Wednesday 20 June 2012

JSF Interview Questions

  1.  What is JSF?
  2.  What is JSF architecture?
  3. How the components of JSF are rendered? 
  4. What is required for JSF to get started?
  5.  How JSF different from conventional JSP / Servlet Model?
  6. Who are the users of JSF technology?
  7. How JSF Fits For Web Applications? 
  8. How to declare the Navigation Rules for JSF?
  9.   What is JSF life cycle and its phases?
  10.  What is the role of Renderer in JSF? and justify the statement "JSF supports multiple client devices".
  11. What are tags in JSF ?
  12. How to terminate the session?
  13. How do I configure the configuration file?
  14. What is conversion and validation? and how are they related?
  15. When automatic conversion is supplied by JSF Implementation?
  16. How to get current page URL from backing bean?
  17. What does it mean by rendering of page in JSF?
  18. What is JSF framework?
  19. How to download PDF file with JSF?


Difference between XElement and XDocument




XDocument represents a whole XML document. It is normally composed of a number of elements.
XElement represents an XML element

Both are the classes defined by System.Xml.Linq namespace

XElement class
represents an XML fragment
XDocument class represents an entire XML document with all associated meta-data.

example:

XDocument d = new XDocument(
      new XComment("hello"),
      new XElement("book",
              new XElement("bookname", "ASP.NET"),
             new XElement("authorname", "techmedia"),
       )
);

Tuesday 19 June 2012

Top Ten Mobile Technologies For 2012 And 2013


  1. HTML5
  2. NFC
  3. PLATFORM INDEPENDENT APP DEVELOPMENT TOLLS
  4. BLUETOOTH 4
  5. LOCATION&CONTEXT
  6. 802.11AC
  7. AUGMENTED REALITY
  8. MACHINE TO MACHINE{M2M}&SMART PRODUCTS
  9. MULTIPLATFORM MDM
  10. LTE

What is Dot net Framework ?




DOT NET is an integral part of many applications running on Windows and provides common functionality for those applications to run.The DOT NET Framework  is a software framework developed by Microsoft. DOT NET is a general-purpose software development platform, similar to Java. The Microsoft .NET Framework is   available with several Microsoft Windows operating systems.It includes a large library of pre-coded solutions to common programming problems, a runtime or virtual machine that manages the execution of programs written specifically for the framework, and a set of tools for configuring and building applications. The .NET Framework is a key Microsoft offering and is intended to be used by most new applications created for the Windows platform.At its core is a virtual machine that turns intermediate language (IL) into machine code. High-level language compilers for C#, VB.NET and C++ are provided to turn source code into IL. C# is a new programming language, very similar to Java. An extensive class library is included, featuring all the functionality one might expect from a contempory development platform - windows GUI development (Windows Forms), database access (ADO.NET), web development (ASP.NET), web services, XML etc.

Sunday 17 June 2012

LINQ Restriction Operators example in CSharp


This example gives an idea to you how to use where clause in the LINQ. Here we have nums array which having some integer values.We are writing LINQ for fetching numbers less than 5.


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LinqExamples
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] nums = { 1, 2, 3, 4, 5, 6, 7, 8 };

            var numbersLessThan5=from n in nums
                                 where n<5 select n;

            foreach (int num in numbersLessThan5)
            {
                Console.WriteLine(num); //output: 1 2 3 4
            }

            Console.ReadLine();
        }
    }

}

Saturday 16 June 2012

Aerospace Interview Questions


What operational benefits do hydraulic actuator/rate controls have over gas charged units?
What is the requirement to become a Professional Engineer (PE) in the field of Aerospace?
How do you use resource Leveraging on your projects ?
Can you miss the clearance limit and loose the commands from the Air Craft Officer?
Are you prepared for unexpected turbulence?
What is SPICE? Where was it developed?
What are the three tactical elements of electronic warfare?
Can ATS deliver CTC training?
What are the duties and responsibilities of aviation security agent in an airport?
What are the disadvantages of being in aerospace industry?
How would you deal with an frustrated customer?
What are the differences between Aerospace Engineering & Aerospace Electronics in TP?
 What are the main areas in Aviation?
Explain the day-to-day responsibilities of Aerospace engineering?
How can noise be reduced?
How would you handle two assignments at once with only enough time to finish one?
There is a vendor who receives inventory and a bill of sale every month but only pays off the bill once a year, how is this transaction recorded?
Tell me about a few times when you had to build a system from scratch in a short time frame?
Do you have circuit knowledge?
Without Air Traffic Control, what is the minimum descent rate you can descend the plane?
What is coulomb damping?
What is your greatest weakness?
Talk about the general topics of a quality audit?
How do you get people to do what they are supposed to do?

Monday 11 June 2012

Electrical & Electronics Engineering(EEE) Interview Questions


A wiper is the sliding contact in a A. switch B. photoconductive cell C. thermistor D. potentiometer?
Why is the starting current high in a DC motor?
what is meant by insulation voltage in cables? explain it?
What is the difference between MCB & MCCB, Where it can be used?
In a Y-connected circuit, the magnitude of each line current is A. one-third the phase current B. three times the corresponding phase current C. equal to the corresponding phase current D. zero?
An ammeter is an electrical instrument used to measure A. current B. voltage C. resistance D. none of the above?
In a certain five-step R/2R ladder network, the smallest resistor value is 1 k. The largest value is A. indeterminable B. 2 k C. 10 k D. 20 k?
A red, red, orange, gold resistor has a nominal value of A. 22,000 B. 2,200 C. 22 D. 2.2?
What are the advantages of star-delta starter with induction motor?
Why series motor cannot be started on no-load?
What is the difference between Isolator annd Circuit Breaker?
A material that does not allow current under normal conditions is a(n) A. insulator B. conductor C. semiconductor D. valence?
When the pointer of an analog ohmmeter reads close to zero, the resistor being measured is A. overheatedB. shorted C. openD. reversed?
 How are power factor correction capacitors available?
Why Delta Star Transformers are used for Lighting Loads?
Capacitor is load free component but why ampere meter shows current when capacitor bank breaker close?
Difference between megger and earth tester?
What is inrush current?
Why is Flow measure in Square-root?
Why is Flow measure in Square-root?
What is the difference between delta-delta, delta-star transformer?
A 3.3 k resistor dissipates 0.25 W. The current is A. 8.7 mA B. 87 mA C. 8.7 ?A D. 8.7 A?
In a Tap changing transformer where is the tap connected, is it connected in the primary side or secondary side?
The induced voltage across a stationary conductor in a stationary magnetic field is A. zero B. reversed in polarity C. increased D. decreased?
In a certain series resonant circuit, VC = 125 V, VL = 125 V, and VR = 40 V. The value of the source voltage is A. 125 V B. 250 V C. 290 V D. 40 V?
A 10 resistor, a 90 mH coil, and a 0.015 F capacitor are in series across an ac source. The impedance magnitude at 1,200 Hz below fr is A. 1,616 B. 161 C. 3,387 D. 1,771?
what are the different methods of power quality improvement in power system?
If a loop in a basic dc generator suddenly begins rotating at a faster speed, the induced voltage A. remains unchanged B. reverses polarity C. increases D. decreases?
In a certain Y-Y system, the source phase currents each have a magnitude of 9 A. The magnitude of each load current for a balanced load condition is A. 3 A B. 6 A C. 9 A D. 27 A?
The Thevenin equivalent voltage is A. equal to the source voltage B. the same as the load voltage C. the open circuit voltage D. none of the above?

data mining interview questions


Define Genetic algorithm?
Why A-Priori Helps?
Define Association Rule Mining?
What is Time Series Analysis?
 Explain how data mining is used in health care analysis?
 Explain apriori algorithm?
 Explain constraint-based association mining?
How many classes are there in data mining?
Explain the storage models of OLAP?
 Explain data mining applications for Telecommunication industry?
Differentiate between Data Mining and Data warehousing?
What are the different problems that “Data mining” can solve?
What is an index?
 What are the advantages data mining over traditional approaches?
 Expalin the three-tier data warehouse architecture?
 Explain how to use DMX-the data mining query language?
Explain how to work with the data mining algorithms included in SQL Server data mining?
Describe challenges to data mining regarding data mining methodology and user interaction issues?
How does the data mining and data warehousing work together?
Association Rules and Frequent Itemsets Mining?
Define Clustered and Non-Clustered Index?
What is Naive Bayes Algorithm?
 Define constraint-Based Association Mining?
 How the A-Priori Algorithm works?
 What is Spatial data mining?
 Explain how data mining is used in banking industry?
What Caused this Complexity?
 What is built-in function? Explain its type i.e. Rowset, Aggregate and scalar?
 What is Data purging?
 Explain indexing?
What is Na? Bayes Algorithm?
What are white Papers and Other Publications looking at data mining?
Determine when an index is appropriate?

Friday 8 June 2012

Differences Between Web Services and WCF in ASP.NET


WCF is a programming model and API.WCF is a replacement for all earlier web service technologies from Microsoft. It also does a lot more than what is traditionally considered as "web services".

WCF "web services" is a  part of a much broader spectrum of remote communication enabled through WCF. You can build a Web service using WCF, but you can also build a Web service using other APIs or "stacks".You will get a much higher degree of flexibility and portability doing things in WCF than through traditional ASMX because WCF is designed, from the ground up, to summarize all of the different distributed programming infrastructures offered by Microsoft. An endpoint in WCF can be communicated with just as easily over SOAP/XML as it can over TCP/binary and to change this medium is simply a configuration file mod. In theory, this reduces the amount of new code needed when porting or changing business needs, targets, etc.

ASMX is older than WCF, and anything ASMX can do so can WCF (and more). Basically you can see WCF as trying to logically group together all the different ways of getting two apps to communicate in the world of Microsoft; ASMX was just one of these many ways and so is now grouped under the WCF umbrella of capabilities.

Web Services can be accessed only over HTTP & it works in stateless environment, where WCF is flexible because its services can be hosted in different types of applications. Common scenarios for hosting WCF services are IIS,WAS, Self-hosting, Managed Windows Service.

The major difference is that Web Services Use XmlSerializer. But WCF Uses DataContractSerializer which is better in Performance as compared to XmlSerializer.

1.Hosting:
Web Service: webservice can host in IIS AND OUTSIDE OF IIS also.
Wcf: Wcf service can host in self hosting,IIS,WAS&Managed Windows Services.

2.File Format:
Web Service:  Webservice file extension is .asmx
Wcf :    WCF service file extension is .svc

3. Data Transformation:
Web Service: XML serializer
Wcf : Data contract serializer

4.Binding Or Transport Protocols:
Web Service: Http,Tcp,Custom
Wcf : Http,WS-Http,Tcp,Custom,Msmq,Point To Point





Java Interview Questions


Why we can not override static method?
What is static in java?
How can we write our own arraylist without using collections?
What is the purpose of garbage collection in Java, and when is it used?
Difference between Swing and Awt?
Which class is extended by all other classes?
How will you perform transaction using JDBC
What is the default size of vector and StringBuffer?
What if the main method is declared as private?
What is meant by Object Oriented Programming?
Can we serialize the static variable?
What is meant by Polymorphism?
What is an Iterator?
Meaning - Abstract classes, abstract methods?
Explain Garbage collection mechanism in Java?
What does it mean that a class or member is final?
What is the difference between interface and abstract class ?
Given A = 1, B = 2, C = 3, D = 4 ?? Z = 26, write a java standalone program to encode the word ?TELEPHONE? into numbers.
What is Weak reference and Soft reference in java?
What is the difference between length and length() ?
What are the main differences between Java and C++?
What is internationalisation? How can you achieve in java?
What does the "abstract" keyword mean in front of a method? A class?
What is the difference between instanceof and isInstance?
Is java a fully object oriented programming or not? if not why?
Which Java operator is right associative?
Addition of two numbers using Bitwise operators. Reading An 2D array using single for loop?

Wednesday 6 June 2012

Oracle Interview Questions

What is one full life cycle implementation?
What Credit memo / Debit Memo?
What is the command to change the SQL prompt name?
What's the command to see the current user name?
After which stage can not cancel the order
What is a FlexField ? What are Descriptive and Key Flexfields ?
What are context sensitive segments?
What are _ALL tables in Oracle Apps?
Which table stores receipts information?
Explain implicit cursor attributes?
What is the difference between data conversion and data migration?
How do you display the records within a given range?
What is the difference between Organization_id and Org_id ?
What is balancing segment?
What is the difference between Organization_id and Org_id ?
What is invoicing rule?
what is profile options? what are the types of profile options in AR / AP ?
What is profile options? what are the types of profile options in AR / AP ?
How to attach reports in Oracle Applications ?
How will you display message for testing the form you modified?
What is cost center segment?
What are forms customization steps ? 
Invoice Accounting - TDS entry not generated in service bills?
 What are Schema Objects?
 What is Full Backup ?
 What are the type of Synonyms?
 What are the different type of Segments ?


Friday 1 June 2012

Abinitio Interview Questions FAQS In 2012


             
How will you create a multifile in unix?
  How will you test a dbc file from command prompt ??
How to run the graph without GDE?
  What is m_dump?
        How to create repository in abinitio for stand alone system(LOCAL NT)?
  How to handle if DML changes dynamically in abinitio
Using m_dump command how will you see the data without knowing the dml
  What does layout means in terms of Ab Initio
  What are the different versions and releases of ABinitio (GDE and Co-op version)
Can anyone please explain the environment variables with example?
        What is the function you would use to transfer a string into a decimal?
  How do you connect EME to Abinitio Server?
  Difference between conventional loading and direct loading ? when it is used in real time?
  What is meant by fancing in abinitio ?
  How to Create Surrogate Key using Ab Initio?
  what is difference between file and table in abinitio
  What is the difference between a DB config and a CFG file?
  What does dependency analysis mean in Ab Initio?
  How to get DML using Utilities in UNIX?
  What is the difference between rollup and scan?
What is the difference between a Scan component and a RollUp component?
Why might you create a stored procedure with the 'with recompile' option?
What do you mean by .profile in Abinitio and what does it contains?
How many parallelisms are in Abinitio? Please give a definition of each?
        What is data mapping and data modelling?
  How will you test a dbc file from command prompt ??  
  What is AB_LOCAL expression where do you use it in ab-initio?
 What is the use of aggregation when we have rollup as we know rollup component in abinitio is used to           summirize group of data record. then where we will use aggregation ?
What is the difference between sandbox and EME, can we perform checkin and checkout through sandbox/ Can anybody explain checkin and checkout?
How to Schedule Graphs in AbInitio, like workflow Schedule in Informatica? And where we must is Unix shell scripting in AbInitio?

php function to calculate age from date of birth


This  simple function will calculate  age from a date of birth

<?php

function get_age($birth_date){
 return floor((time() - strtotime($birth_date))/31556926);
 }

echo " I am ".get_age("2000-05-10") ." years old";

?>

Output:I am 12 years old.

How TO Remove the Contents of a Div using JQuery


This  will show how to write a text/content into a div using  jquery and also it will show how to remove text/content.

<html>
 <head>
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
 <script>
 $(document).ready(function() {
 $("#click_me").click(function() {
 $("#write_me").html("Hello..Here I am  using jquery");
 });

$("#clear_me").click(function() {
 $("#write_me").empty();
 });

});
 </script>
 </head>
 <body>
 <div id="write_me"></div>
 <input type="button" id="click_me" name="click_me" value="Write into the div">
 <input type="button" id="clear_me" name="clear_me" value="Clear Me">
 </body>

</html>