Theory Question Paper

Practical Question Paper

Sample paper 1

1.Write an application that receives the following information from a set of students:

Student Id:

Student Name:

Course Name: Date of Birth:

The application should also display the information of all the students once the data is entered. Implement this using an Array of Structs.

20

2.Design a Web Form and apply the different styles and themes using CSS

20

3.Viva

5

4.Journal

5

Sample paper 2

1.Write a console application that obtains four int values from the user and displays the product.

20

2.Write a LINQ Application that displays the data on PageLoad Event and also show how JOINS are used.

20

3.Viva

5

4.Journal

5

 

Sample paper 3
1.Write a console application that places double quotation marks around each word in a string

20

2.Create a simple web form containing the student details (NO, Name, class, mobileno, emailID). Write a program to store the data in the database and retrieve it.

20

3.Viva

5

4.Journal

5

Sample paper 4

1.Write a Program to ReverseNo and Palindrome Method using C#.

20

2.Create Web application to display time in textbox when user click on show Time button. Implement 2 second delay in between, and within 2 seconds delay display message plz wait for some time…..( using AJAX control).

20

3.Viva

5

4.Journal

5

Sample paper 5

1.Write a program using conditional statements and loops to generate Fibonacci series.

20

2.Create a XML file with three properties CustNo. And CustName, Salary. Create an application to write LINQ query to fetch XML file data and display it in gridview.

20

3.Viva

5

4.Journal

5

Sample paper 6
1.Write a C# Program for implementing the concept of jagged array

20

2.Write a Program using JQuery to Hide the Paragraph and Bold elements.

20

3.Viva

5

4.Journal

5

Sample paper 7

1.Design the C# program to demonstrate the Multilevel Inheritance

20

2.Write a Program to redirect the page to another site using ASP.NET.

20

3.Viva

5

4.Journal

5

Sample paper 8

1.Write a Program to demonstrate the implementation of exception handling.

20

2.Create a class called Customer with two properties CustNo and CustName. Create an application to write LINQ query to fetch CustName whose CustNo is greater than 5.

20

3.Viva

5

4.Journal

5

Sample paper 9

1.Write a program in C# to define two methods of same name(area()) ,where one method calculates area of triangle, second calculates area of circle.

20

2.Create a simple web form containing the student details(ID, Name, class, mobileno, emailID). And store the data in the database and navigate them through first, next, previous and last button.

20

3.Viva

5

4.Journal

5

Sample paper 10

1.Write an application that uses two command-line arguments to place values into a string and an integer variable, respectively and then display these values.

20

2.Design the jQuery based page by implementing the Fade-In and Fade-Out method.

20

3.Viva

5

4.Journal

5

Sample paper 11

1.Write a program to overload constructor in C#.20
2.Create following web page with validation control.

Name field should contain atleast one character,CustNo textbox should follow following pattern { ‘CS’- followed by 3 digit } e.g CS-001,if password entered in two password field does not match then error message should appear, Validate email-id entered by user.

20

3.Viva

5

4.Journal

5

Sample paper 12

1.Write program in C# to test number entered by user is prime number or not.

20

2.Write a Program to Hide and Display the contents on respective click events using JQuery.

20

3.Viva

5

4.Journal

5

Sample paper 13
 
1.Write an application to obtain two numbers from the user, and displays them, but rejects any input where both numbers are greater than 10 and asks for two new numbers.

20

2.Write an application that receives the following information from a set of students:

Student Id:Student Name:Course Name:Date of Birth:

The application should also display the information of all the students in textbox or label once user click on submit. Implement this using web server control.

20

3.Viva

5

4.Journal

5

Sample paper 14
 
1.Write a program to reverse a number and find sum of digits of a number.

20

2.Write a program using JQuery to display 5 different effects on an Image.

20

3.Viva

5

4.Journal

5

Sample paper 15
 
1.Write a program that takes two inputs as string from the users and performs the following task:-

a. First, the program copies the input of string2 to string3 and checks for the string3 ends with ‘ide’ or not. The program shows true if the string3 ends with ‘ide’.

b. Further, the program searches char ‘a’ from string1.and returns the appropriate result.

c. Then inserts ‘hello’ in the string2 at position 5.

d. After performing the string manipulations, display all the strings at each level of the manipulation.

20

2.Write a program to display the number of visitors currently browsing your website.

20

3.Viva

5

4.Journal

5

Sample paper 16
 
1.Create a class “student” having two user defined properties to read and write the student name and roll number respectively. Further use these user defined properties to generate 5 students record.

20

2.Design a web page to visually verify, that the Ajax controls performs partial post back of a page rather than the full post back unlike the standard control.

20

3.Viva

5

4.Journal

5

 

Sample paper 17
 
1.Write a program to perform factorial of a number by overloading three constructor methods viz: default constructor, parameterized constructor and copy constructor respectively. Further create a “show()” method to display the factorial of the number.

20

2.Design a webpage with a digital clock showing time and an image control with 4 images randomly get displayed on a page loading event.

20

3.Viva

5

4.Journal

5

Sample paper 18
 
1.Write a program to overload a function ”calculation()” three times to perform the following:-

a. Factorial of a integer value (taking int as argument and return type).

b. Reverse of a long value (taking long as argument but no return type).

c. Adding three integer values without using ‘+’ operator (with 3 int argument and int return type).

Use main method to call all the functions.

20

2.Create an array of names(string) and an array of integers separately and perform the following LINQ queries on them. Further display the query result in a label. a. Display all the names from the string array.

b. Display all the names from string array which contain “l”.

c. Display all the numbers from integer array.

d. Display all the numbers incremented by 1 from integer array.

e. Display all the names from names array in upper case and lowercase

Simultaneously.

20

3.Viva

5

4.Journal

5

Sample paper 19
 
1.Define a class which has three functions with the same name “square”.

• The first function will take a value as an argument.

• The second function will take reference as an argument.

• And the third function will take out parameter as an argument to the function.

• Use main method to call all the functions.

20

2.Create an array of names(string) and an array of integers separately and perform the following Linq queries on them. Further display the query result in a label.

a. Display the numbers less than 5 from integer array.

b. Display the first 3 numbers from integer array.

c. Display all the numbers from integer array till number is less than 6.

d. Skip all the numbers from integer array till number is less than 6 and display the remaining numbers.

e. Display all the names in descending order by length from string array.

20

3.Viva

5

4.Journal

5

Sample paper 20
 
1.Create an interface area that are implemented by two classes square and circle that compute their areas using the method compute in the interface area. The main class shows the implementation of areas of any square and circle if side of square is 12.5 and radius of circle is 15.27. (Area of square=” (side*side)” and area of circle=”3.14*radius*radius).”

20

2.Design an asp.net webpage with RadioButtons, DropDownList,label and

TextBox to perform the following operations:-

a. On click of RadioButtons each at the same time from two different groups, change the font- size and font-face of the label Text.

b. Also on the same webpage show that, on section of a country name from the dropdown list, its respective country code gets display in a textbox.

c. Further apply css styling of your own choice to the above webpage.

20

3.Viva

5

4.Journal

5

Sample paper 21
 
1.The class computation implements two interfaces, addition and multiplication. It declares two data members and defines the code for methods add () and mul ().write a program to find the addition and multiplication of 120 and 12.239.

20

2.Design your own asp.net webpage to perform the following:-

a. On click of a button control display the selected items from the list in a textbox.

b. Also in the same webpage display the name of the selected item from the DropDownList1 in a label.

c. Also change the font size of the same label according to the font size selected from the dropdownlist2.

Above all design a master page where your webpage is considered as a content page to the master page.

20

3.Viva

5

4.Journal

5

Sample paper 22
 
1.Design a class to represent a bank account. include the following members:- Data members:

i. Name of the depositor.

ii. Account number. iii. Type of account.

iv. Balance amount in the account.

Methods:

i. To assign initial values. ii. To deposit an amount.

iii. To withdraw an amount after checking balance.

iv. To display the name and balance.

Create one bank account to implement the above methods.

20

2.Design a webpage using CheckBox and a panel control . Place two textboxes i.e textbox1 and textbox2 and a Button control inside the panel so that on click of this button the factorial of the value provided in the textbox1 will get display in textbox2. Set the visible property of panel control to false. Write the C# code to make the panel visible on the checkedchanged event of CheckBox so that the factorial operation can be performed.

20

3.Viva

5

4.Journal

5

Sample paper 23
 
1.Design three constructors for the same class named “complexaddition”.

• The first constructor should be the default constructor having no arguments. It is used to create objects which are not initialized.

• The second constructor takes one argument; it is used to create objects and initialize them.

• The third constructor takes two arguments; it is also used to create objects and initialize them to specific value.

• Create a method “sum” which takes two arguments of type complexaddition and also return a value of type complexaddition. Use this method to perform the addition of two complex numbers of type complexaddition.

Class “complexaddition” also has two data members named real and imaginary.

20

2.Write a program to count the number of times the current webpage is submitted to the server onclick event of a Button.

20

3.Viva

5

4.Journal

5

Sample paper 24
 
1.Create a delegate mydelegate of int type (both argument and return type). Create a class delegatetest having three static methods:

a. add() that add two interger value.

b. mul() that multiply two interger value.

c. sub() that substract two interger value.

Write the program where main method implements the delegate.

20

2.Create a database “studentmaster” in sql server through visual studio.net .Add a table “student” in the same database with fields naming ”std_Id, std_name, std_add, email_Id, and mobile_no”. Assign primary key. Insert four records in the table.

Create web pages to display student table information in a tabular format using sql data source and gridview control.

Also perform the following operations on the GridView control:-

a. Sorting the GridView data.

b. Paging the GridView control.

c. Using commandField in a GridView control for update.

d. Inserting new row in GridView control.

20

3.Viva

5

4.Journal

5

Sample paper 25
 
1.Create a delegate Mdelegate of int type (both argument and return type). Create a class delegateexample having three static methods:

a. reverse() that will reverse an interger value.

b. adddigit() that will add enter digit in an interger value.

c. Factorial () that will generate factorial of an interger value. Write the program where main method implements the delegate.

20

2.Design your own asp.net webpage using Button,Label,CheckBoxList and

RadioButtonList controls to perform the following operations:-

a. On click of the Button, display the items selected from the checkedBoxList in label1.

b. Again On click of RadioButtons form two different RadioButtonLists (one for forecolor and another for back color) respectively change the forecolor and backcolor of label1.

Apply external style sheets to the web page.

20

3.Viva

5

4.Journal

5

Sample paper 26
 
1.Create user defined exception “bankexception” which will throw the exception when the balance amount is less than 500 into the account. Write a program to show the use of “bank exception”.

20

2.Design a web page to create college ID card with fields namely first name, middle name, last name, class, semester, roll number, address and telephone number, email_Id with proper validation for each field using validation controls. Display the records on a click of a button in a Label. Make a provision to upload the photograph of the candidate.

20

3.Viva

5

4.Journal

5

Sample paper 27
 
1.Create user defined exception “bankexception” which will throw the exception when the balance amount is less than 500 into the account. Then write a program to show the use of “bank exception”.

20

2.Create a database “employemaster ” in sql server through visual studio.net . Add a table named “employee” in the same database with fields naming “emp_Id, emp_name, emp_dept,emp_add, email_id, mobile_no”. Assign primary key. Insert four records in the table.

Design a web page that allows operations using SqlDataSource and two data bound controls GridView and DropDownList in such a way that the DropDownList should contain all the emp_Ids. On selecting any of the emp_Id from the DropDownList the corresponding records related to that emp_Id must get displayed in the grid view.

20

3.Viva

5

4.Journal

5

Sample paper 28
 
1.Create a delegate Mdelegate of int type (both argument and return type). Create a class delegateexample having three static methods:

a. reverse() that will reverse an interger value.

b. adddigit() that will add enter digit in an interger value.

c. Factorial () that will generate factorial of an interger value.

The main method should implement the delegate.

20

2.Create a database “studentmaster” in sql server through visual studio.net and a table “student” in the same database with fields naming “std_Id, std_name, std_add, email, mobile_no”. Asaign primary key. Insert four records in the table.

Perform the following operations:-

a. Show selection of record from the above table using connected data access in ADO.NET (DataReader).

b. Show selection of record from the above table using disconnected data access in ADO.NET (DataAdapter).

20

3.Viva

5

4.Journal

5

Sample paper 29
 
1.Write a program to perform factorial of a number by overloading three constructor methods viz: default constructor, parameterized constructor and copy constructor respectively. Create a “show()” method to display the factorial of the number.

20

2.Create an XML file to store records of four persons with their name, age and address.

Write a program to read the details of the persons whose age is less than 60 from the XML file and display it in webpage using gridview control

20

3.Viva

5

4.Journal

5

Sample paper 30
 
1.The class computation implements two interfaces, addition and multiplication. It declares two data members and defines the code for methods add() and mul().

Write a program to find the addition and multiplication of 120 and 12.239.

20

2.Design a webpage with CheckBox and PlaceHolder control and perform the following operation:-

Write code bheind to create an image control with a image having equal height and width and a label with the text property set with the name of the image displayed in the image control having font color red.

Make sure the above set of performance should be perform only when the user grant the permission by checking the checkbox with text “display image”.

20

3.Viva

5

4.Journal

5

Sample paper 31
 
1.Write an application that receives the following information from a set of students:

Student RollNo:

Student Name:

Course Name:

Date of Birth:

The application should also display the information of all the students once the data is Entered. Implement this using an Array of Structures.

20

2.Create a web page to display the cricket score from the database table event (id, name, score). Refresh the website automatically after every 30 seconds. (Create the table event.)

20

3.Viva

5

4.Journal

5

Sample paper 32
 
1.Define a class “salary‟ which will contain member variable Basic, TA, DA, HRA. Write a program using Constructor with default values for DA and HRA and calculate the salary of employee.

20

2.Create a web page to give different color effects for paragraph tags, heading tags and complete web page using JQuery.

20

3.Viva

5

4.Journal

5

Sample paper 33
 
1.Write a C# program to generate the following pattern:

A B C D E F G F E D C B A

A B C D E F F E D C B A

A B C D E E D C B A

A B C D D C B A

A B C C B A

A B B A

A A

20

2.Create a web page to display hide, show, slidedown, slideup and Toggle effects for paragraph tags, using JQuery.

20

3.Viva

5

4.Journal

5

Sample paper 34
 
1.Create the table with the given fields.

FIELD NAME DATA TYPE

EMPNO number

ENAME varchar

SAL number

DNAME varchar

DEPTNO number

Design a web page to display the employee information from table to grid control. Use LINQ TO ADO.NET.

20

2.Create a web page to display hide, show, slidedown, slideup and Toggle effects for paragraph tags, using JQuery.

20

3.Viva

5

4.Journal

5

Sample paper 35
 
1.Create the table with the given fields.

FIELD NAME DATA TYPE

EMPNO number

ENAME varchar

SAL number

DNAME varchar

DEPTNO number

Design a web page to display the employee information from table to grid control. Use LINQ TO XML

20

2.Create a web page to display hide, show, slidedown, slideup and Toggle effects for paragraph tags, using JQuery.

20

3.Viva

5

4.Journal

5

Sample paper 36
 
1.Create the table with the given fields.

FIELD NAME DATA TYPE

EMPNO number

ENAME varchar

SAL number

DNAME varchar

DEPTNO number

Design a web page to display the employee information from table to grid control. Use LINQ TO OBJECTS.

20

2.Create a web page to display hide, show, slidedown, slideup and Toggle effects for paragraph tags, using JQuery.

20

3.Viva

5

4.Journal

5

Comment down below if you have any questions and don’t forget share with your classmates.