Showing posts with label LINQ. Show all posts
Showing posts with label LINQ. Show all posts

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();
        }
    }

}

Thursday, 24 May 2012

WCF,Silverlight, LINQ, WPF,EF 4.0 and Azure interview Questions?



1.How can we connect databases using SilverLight?
2.What is LINQ and can you explain same with example?
3.Can you explain a simple example of LINQ to SQL?
4.How can we define relationships using LINQ to SQL?
5.How can we optimize LINQ relationships queries using ‘DataLoadOptions’?
6.Can we see a simple example of how we can do CRUD using LINQ to SQL?
7.How can we call a stored procedure using LINQ?
8.What is the need of WPF when we had GDI, GDI+ and DirectX?
9.Can you explain how we can make a simple WPF application?
10.Can you explain the three rendering modes i.e. Tier 0 , Tier 1 and Tier 2?
11.Can you explain the Architecture of WPF?
12.Can we understand Blobs in steps, Tables & Queues ?
13.Can we see a simple example for Azure tables?
14.What is Package and One click deploy(Deployment Part - 1) ?
15.What is Web.config transformation (Deployment Part-2)?
16.What is MEF and how can we implement the same?
17.How is MEF different from DIIOC?
18.Can you show us a simple implementation of MEF in Silverlight ?
19.What is Azure?
20.Can you explain Azure Costing?
21.How can we do debugging and tracing in WCF?
22.Can you explain transactions in WCF (theory)?
23.How can we self host WCF service ?
24.What are the different ways of implementing WCF Security?
25.How can we implement SSL security on WCF(Transport Security)?
26.How can we implement transport security plus message security in WCF ?
27.How can we do WCF instancing ?
28.How Can we do WCF Concurency and throttling?
29.Can you explain the architecture of Silverlight ?
30.Can we see a simple Azure sample program?
31.What are the different steps to create a simple Worker application?
32.Can we understand Blobs in steps, Tables & Queues ?
33.Can we see a simple example for Azure tables?
34.What is Package and One click deploy(Deployment Part - 1) ?
35.What is Web.config transformation (Deployment Part-2)?
36.What is MEF and how can we implement the same?
37.How is MEF different from DIIOC?
38.Can you show us a simple implementation of MEF in Silverlight ?
39.How can we consume WCF service in SilverLight?
40.What is SOA, Services and Messages ?
41.What is the difference between Service and Component?
42.What are basic steps to create a WCF service ?
43.What are endpoints, address, contracts and bindings?
44.What are various ways of hosting WCF service?
45.What is the difference of hosting a WCF service on IIS and Self hosting?
46.What is the difference between BasicHttpBinding and WsHttpBinding?
47.What are the basic things needed to make a silverlight application ?
48.How can we do transformations in SilverLight ?
49.Can you explain animation fundamentals in SilverLight?
50.What are the different layout methodologies in SilverLight?