Friday, 30 December 2016

Create Asp.net MVC Demo Application using Entity Framework

1. Open Visual Studio
2. Create a New Project
3. Select Asp.net Web Application and select MVC template



4. Create Database
5. Install Entity Framework using "Manage Nuget Packages".
6. Right Click the project and add "ADO.Net Entity Data Model"
















7. Add a new Controller to the Controller Folder named EmployeeController.








8. Change RouteConfig.cs accordingly and run the project.

Thursday, 7 April 2016

C interview questions

1. Is C Object-Oriented Language?
Ans. No, C is a Procedural Language.

2. What are the storage classes in C?
Ans. auto, register, static, extern

3. Who is the father of the C language?
Ans Dennis Ritchie

4. What are the data types supported by the C language?
Ans. char, int, float, double

5. What is the variable?
Ans. Variable is used to store data for later use.

6. What is constant in C?
Ans. Constant is like variable except for its value never changed during the execution of the program.

7. What are the keywords in C?
Ans. Keywords have a specific meaning in C and it can not be used as a variable name.

8. What are the C operators?
Ans C operators are used to perform mathematical operations.

9. List Operators in C.
Ans. +, -, *, /, %

10. What is the NULL pointer in C?
Ans. The pointer that doesn't refer to any address of value but NULL is known as a NULL pointer.

11. How many types of loops are used therein C?

Ans. While loop
         For loop
         Do-While loop
         Nested loop

12. What is Void?
Ans. Void is the datatype that has no value.


Thursday, 18 February 2016

Java Interview questions


1. What is Java?

Ans. Java is an object-oriented programming language. It is a platform independent language.

2. Which is the most important feature of java?

Ans. Java is a platform independent language.

3. Who is the father of the Java programming language?

Ans. James Gosling.

4. What are the supported platforms by java programming language?

Ans. Java runs on Windows, Mac OS, Linux/Unix.

5. What are the data types supported by java?

Ans. byte, short, int, long, char, float, double.

6. What is JVM?

Ans, JVM is a Java Virtual Machine which is a run time environment for the compiled java classes.

7. Is java pure object oriented language?

Ans. No.

8. What is constructor?

Ans. The constructor is just like method and invoked at the time of object creation.

9. Can we make a constructor final?

Ans. No

10. Is constructor inherited?

Ans. No

SQL server tricky questions