[go: up one dir, main page]

0% found this document useful (0 votes)
15 views8 pages

Practice Programs From MU Exam

MU MCA

Uploaded by

Padmanabh Bhole
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
15 views8 pages

Practice Programs From MU Exam

MU MCA

Uploaded by

Padmanabh Bhole
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 8
QT A)] Wiite a Java program to create List containing list of items of type String and use for-— [15 each loop to print the items of the list B)| Weite a Java program using Set interface containing list of items and perform the [15 following operations: a. Add items in the set. b. Insert items of one set in to other set. c. Remove items from the set d. Search the specified item in the set QT AD] Write a program to print “Hello World” using spring framework 10 B) | Write a program to demonstrate Spring AOP — after throwing advice 10 © [Write a program to demonstrate dependency injection via Constructor 10 QT AD] Write a program to demonstrate RESTful Web Services with spring boot 15 B)| Write a Java program using Map interface containing list of items having keys and |15 associated valies and perform the following operations: a. Add items in the map. b. Remove items from the map c. Search specific key from the map d. Get value of the specified key e. Insert map clements of one map in to other map. f. Print all keys and values of the map QI A)] Waite a Java program using Lambda Expression fo concatenate fwo strings 10 B)| Write a Java program using Set interface containing lst of items and perform the | 10 following operations: a. Add stems in the set. b. Insert items of one set in to other set. ¢ Remove items from the set d. Search the specified item im the set © [ Waite a Java Program to demonstrate Wildcards in Java Generics. 10 QT A)] Write a Tava program using Lambda Expression to calculate the following a Convert | 15 Fahrenheit to Celcius b. Convert Kilometers to Miles. B)| Write a program to demonstrate RowMapper interface to fetch the records from the | 15 database. QT A)] Waite a Java program using Lambda Expression fo calculate the following a Convert ] 10 Fahrenheit to Celcius b. Convert Kilometers to Miles B) | Design loan calculator using JSP which accepts Period of Time (in years) and Principal | 10 Loan Amount. Display the payment amount for each loan and then list the loan balance and interest paid for each payment over the tenm of the loan for the following time period and interest rate: a. 1 to 7 year at 5.35% b. 8 to 15 year at 5.5% c. 16 to 30 year at 5.15% © | Write a program to demonstrate Spring AOP — before advice 10 QI A)] Write a Java program using Lambda Expression to print "Hello Work” 15 B) | Desiga loan calculator using JSP which accepis Period of Time Ga years) and Principal | 15 Loan Amount. Display the payment amount for each loan and then list the loan balance and interest paid for each payment over the term of the loan for the following time period and interest rate: a. 1 to 7 year at 5.35% b. 8 to 15 year at 5.5% c. 16 to 30 year at 5.15% Q@1_A)] White a program to demonstrate dependency injection via setter method 1 B) | Write a JSP program that demonstrates the use of JSP declaration, scriptlet, directives. [10 expression, header and footer. ©) | Write a Java program to creste List containing list of items of type String and use for-— [10 each loop to print the items of the list Q1_A)] Waite a Java program using Lambda Expression with multiple parameters to add two 5 aumibers. B) | White a Java Program to demonstrate Wildcards in Java Generics 5 QT AD] Write a program to demonstrate dependency injection via Constructor 10 B) | Write a ISP page to display the Registration form (Make your own assumptions) 10 © | White « Java progiam using Lambda Expression to calculate the following. a Comet [10 Fahrenheit to Celcius b. Convert Kilometers to Miles. Q] Write a Java program using Lambda Expression to concatenate two strings. 5 14) B)| Write a JSP program that demonstrates the use of JSP declaration, scriptlet, ducctives, | 15 expression, header and footer (Make your own assumptions) QT AD] Wate 2 program to demonstrate dependency injection via setter method 10 B) | Write « program to demonstrate Spring AOP — poimtcats 10 © | Write « ISP page to display the Registration form (Maske your own assumptions) 10 Q1_ AD] Write a Java program using Lambda Expression with or without retarn Keyword, 15 B)| Write a Java program using Set interface containing list of items and perform the | 15 following operations: a. Add items in the set. b. Insert items of one set in to other set. c. Remove items from the set d. Search the specified item in the set QT A)] Write a JSP program to add, delete and display the records fiom StudeatMasier (RolINo. | 10 Name. Semester, Course) table B) | Write a Java program using Lambda Expression to print "Hello World”. 10 © | Write a Java program to create a Sct containing list of items of type String and print the [10 stems in the list using Iterator interface. Also print the list in reverse/ backward direction. QT A)] Write a Java program using Lambda Expression with or without return keyword, 15 B) | Wiite @ ISP page to display the login form (Make your own assumptions) 5 Connect the same with the database. QI A)] Wate = Java program using Set interface containing lst of items and perform the | 10 following operations: a. Add items in the set. b. Insert items of one set in to other set. c Rempve items from the set d. Search the specified item in the set B) | Write a Java program using Lambda Expression with multiple parameters to add two [10 numbers. © | Write a program to insert, update and delete records ffom the given table 10 Q.1_A)] Write a Java program using Lambda Expression with single parameters. 5 B) | Write a Java program using Sct interlace containing list of items and perform the 5 following operations: a. Add items in the set. b. Insert items of one set in to other set. c. Remove items from the set d. Search the specified item in the set QT AD] Waite a program to insert, update and delete secords fiom the given table 10 B) | Write a Java program using Lambda Expression fo print "Hello World” 10 © | Waite a program to create a simple Spring Boot application that prints a message 10 QT AD] Waite a Java program using Lambda Expression with aultiple parameters to addtwo [15 mumbers B) | Waite a ISP page to display the Registration form (Make your own assumptions) 1s QI. A)] Waite a program to demonstrate Spring AOD — afier returning advice 10 B) | Write a program to create a simple Spring Boot application that prints a message 10 ©) | Waite a Java program to create a Set containing list of tems of type String and print the [10 items in the list using Iterator interface. Also print the list in reverse! backword direction. Q1_ AD] Write aJava program to create List containing list of items of type String and use for-—-_ | 15 cach loop to print the items of the list B) | Write a JSP program that demonstrates the use of ISP declaration, scriptlet, directives, | 15 expression, header and footer. QI A)| Write a Tava program using Lambda Expression with amultiple parameters to add two [10 smmbers, B) | Write a Java program using Map interface containing list of items having keys and 10 associated values and perform the following operations’ a. Add items in the map. b, Remove items from the map c. Search specific key from the map d. Get value of the specified ey e. Insert snap elements of one map in to other map. f Print all keys and values of the map. ‘© | Write a Java Program to demonstrate Wildcards in Java Generics. 10 QI A)] Wate a Java program to create List containing list of items and use Listlteratorinterface | 15 to print items present in the list_Also print the list in reverse/ backword direction B) | Werte a Java program using Lambda Expression to calculate the following: a. Convert | 15 Fahrenheit to Celcius b. Convert Kilometers to Miles QI AD] Waite 2 program using ISP that displays a webpage consisting Application form for [10 change of Study Center which can be filled by any student who wants to change his/ her study center. Make necessary assumptions B)| Write @ program to demonstrate RowMapper interfice to fetch the records fom the [10 database. ©) | Write a Java program using Lambda Expression with single parameters. 10 QI A)] Write a Java program using Lamibda Expression with single parameters iB B)| Write a Java program using Set imerface containing list of items and perform the | 15 following operations: a. Add items in the set. b. Insert items of one set in to other set. Remove items fiom the set d. Search the specified item in the set QT AD] Write a Java program using Lambda Expression to print "Hello World” 10 B) | Write a JSP page to display the Registration form (Make your own assumptions) 1 © | Write a program to create a simple Spring Boot application that prints a message 10 Q.1 A)] Write a Java program to create List containing list of items of type String and use for-— | 15 each loop to print the items of the list B)| Waite a Java program using Sct interface containing Ist of items and perform the | 15 following operations: a. Add items in the set. b. Insert items of one set in to other set. c. Remove itoms from the set d. Search the specified item in the set QT_A)] Design loan calculator using JSP which accepts Period of Time (in years) and Principal | 10 Loan Amount. Display the payment amount for each loan and then list the loan balance and interest paid for each payment over the term of the loan for the following time period and interest rate: a. 1 to 7 year at 5.35% b. 8 to 15 year at 5.5% c. 16 to 30 year at 5.15% B) | Write « Java Program to demonstrate Generic Methods 10 ©) | Write a Java program using Lambda Expression to calculate the following: . Convert | 10 Fahrenheit to Celems b. Convert Kilometers to Miles QI A)] Write a Jeva program using Lambda Expression to concatenate two strings. is B) | Design loan calculator using JSP which accepts Period of Time (im years) and Principal [15 Loan Amount Display the payment amount for each loan and then list the loan balance and interest paid for each payment over the term of the loan for the following time period and interest rate: a. 1 to 7 year at 5.35% b. 8 to 15 year at 5.5% c. 16 to 30 year at 5.15% Q@1_ AD] Wiite program to demonstrate dependency injection via Constructor. 10 B) | Write @ program to demonstrate PreparedStatement in Spring JdbcTemplate 10 © | Write @ Tava program using Lambda Expression with or without return keyword. 10 (Q.1 | Write a program to demonstrate Spring ADP — before advice, after advice. around advice. 15 A) B) | Write a lava program using Map interface containing list of ems having keys and associated | a5 values and perform the following operations: a, Add items in the map. b. Remove items from the map c. Search specific key from the map ¢. Get value of the specified key e. Insert map. elements of one map in to other map. f. Print all keys and values of the map. Qa ‘Wiitea JSP program to add, delete and display the records fom Studeataster (RoIINO, 15 A) ‘Name, Semester, Course) table B) | Write a program to demonstrate RowMapper interface to fetch the records rom the database | a5) 4 | Write a ISP program that demonstrates the use of JSP declaration, scriptlet, directives, |45 A) expression, header and footer. B) ‘Write @ lava program to create a Set containing lst ofitems of type String and printthe items | 45 in the list using iterator interface. Also print the list in reverse/ backword direction Qa ‘Write a Java program to create List containing list of items anduse Listiterator interface to | 45 A) print items preseat in the list. Also print thelist in reverse/ backwerd direction B) | Write a8? program to add, delete and display the records from Student Master (RolINo, Name, | 45 Semester, Course) table. ‘Waite a program using JSP that displays a webpage consisting Application form for 15 change of Study Center which can be filled by any student who wants to change his/her study center. Make necessary assumptions B) | Write a program to demonstrate RowMapper interface to fetch the records from the database | 45 Q.a__ | Design Toan calculator using JSP which accepts Period of time (in years) and Principal Loan | 45 A) ‘Amount. Display the payment amount for each loan and then list the loan balance and interest paid for each payment over the term of the loan for the following time peried and interast rata: 2.1 to 7 year at 5.35% b. 80 15 year at 5.5% c. 16 to 30 year at 5.75% B) | Write a Java program using Set interface containing list of items and perform the following | 45 operations: a. Add items in the set. b. Insert items of one set in to other set. c. Remove iterns from the set d. Search the specified itemin the set Qai__| Design loan calculator using JSP which accepis Period of Time (In years) and Prindpal Loan | 15 A) ‘Amount. Display the payment amount for each loan and then lst the loan balance and interest paid for each payment over the term of the loan for the following time period and interest rate 2.1 to 7 year at 5.35% b. Sto 15 year at 5.58%. 16 to 30 year at 5.75% B) | wie a program to demonstrate dependency injection via setter method 15 Qa ‘Write a program to demonstrate PreparedSiatement in Spring TébcTemplate 15 A) B) | write @ program using ISP that displays a webpage consisting Application form for change of | 45 study Center which can be filled by any student who wants to change his/ her study center. Make necessary assumptions Q.t_| Write a Java program to create List containing list of tems and use Listiterator interface to print | 45 A) items present in the list. Also print the lst in reverse/ backword direction BB) | White a Java program using Lambda Expression to concatenate two strings 1B ‘Wille a Java Piogiam to demonstate Wildcadh in Java Genciics 1B B) | Write a ISP program to add, delete and display the records from Student¥aster (RolINo, Name, | 45 Semester, Course] table Q.l__] Write a program to nsert, update and delete records from the given table using Spring 15 A) B) | Write a Java program using Map interface containing list of Rems having keys and assecated | 45 values and perform the following operations: a. Add items in the map. b. Remove items from the map c. Search spectic key from the map d. Get value of the specified Key e. Insert map elements of one map into other map. f. Print all keys and values of the map. ‘Write a Java program using Lambda Expression to calculate the following: @. Convert 45 Fabreaheit to Celeins b. Convert Kilometers to Miles, Write @ program to demonstrate dependency injaction via Constructor Write @ program to demonstrate Spring AO? after returning advice , after throwing advice, pointcuts, 15 Write a ISP program to add, delete and display the records from StudentMaster (RolINo, Name, Semester, Course) table. ‘Write a program to demonstrate Preparedstatement in spring JdbcTemplate 15 ‘Waite a ISP page to display the Registration form (Make your own assumptions) ‘Write a Java Program to demonstrate Generic Methods a Design loan calculator using ISP which accepts Period of Time (in years] and Prindpal Loan Amount. Display the payment amount for each loan and then list the loan balance and interest, paid for each payment over the term of the loan for the following time period and interest rate a. to 7 yaar at 5.35%b. 8 to 15 yaar at 5.5%. 16 to 30 year at 5.75% a aaa Write a program in Java using spring to accept two numbers and displayFibonacci series. Make use of setter dependency injection. an B) Devise an Interest Calculator that accepts Principal amount, number of yearsand rate of interest from user. The calculator then asks for option as Simple Interest or Compound Interest. The interest should be displayed as per the choice. Design a webpage using JSP to demonstrate the functioning of interest calculator. Make necessary assumptions wherever needed. a Qiay Write a Java program using Map interface containing list of items havingkeys and associated values and perform the following operations: a. Add items in the map. b. Get value of the specified key Insert map elements of one map in to other map. B) Design a web page using JSP to have a smooth functioning of a Registration Form. Design a second webpage to display all these accepted records in a tabular format. Both the pages must be interlinked. Make necessary assumptions wherever needed. Qi A) Write a Java program using lambda expression with three parameters to display the largest of these numbers. B) Design Loan Calculator using JSP which accepts Period of Time (in years) and Principal Loan Amount. Display the payment amount for each loan and then list the loan balance and interest paid for each payment over the term of the loan for the following time period and interest rate: a) 1 to 7 year at 5.35% b) 8 to 15 year at 5.5% ¢) 16 to 30 year at 5.75% Qi A) Write a Java program using Set interface containing list of items and performthe following operations: a. Add items in the set. b. Remove items from the set Search the specified item in the set B) Write a Java program using Lambda Expression to calculate the following: a. Convert Fahrenheit to Celcius b. Convert Kilometers to Miles. Qi a) Write a Java program to create a Set containing list of items of type String and print the items in the list using Iterator interface. Also print the list in reverse / backward direction. Write a program in Java using spring to accept a string and a number and display the string those many numbers of times. Make use of setter dependency injection. qa ‘Write a Java program using lambda expression to calculate the sum of numbers from 1 to 100. Also write another lambda expression to display numbers from 1 to 100 in reverse order. B) ‘Write a Java program to create List containing list of items and use List Iterator interface to print items present in the list. Also print the list in reverse / backward direction. Qi ay Write a program based on Spring JDBC Template to insert, update and delete records from the given table. B) Write a program in Java using spring to accept a string and a number and display the string those many numbers of times. Make use of setter dependency injection. Qi a) Write a Java program to create List containing list of items of type String anduse for--each loop to print the items of the list. B) Write a program in Java using spring to accept a string and a number and display the string those many numbers of times. Make use of setter dependency injection. Qi ay ‘Write a program in Java using spring to accept name and marks for five subjects. Display the marklist of that student. Make use of constructor dependency injection. B) Design a webpage using Java Server Pages to accept three numbers from userand display its average. Make use of use of JSP declaration, scriptlet and expression in your web page. Qa) Write 2 program to demonstrate Auto wiring concept in Java Spring. B) Design a webpage using JSP to show the working of page directive and include directive. The page directive must have atleast 4 attributes. The include directive must include a header page at the top and a footer page atthe bottom of the JSP web page. Q1 A) Write a program to demonstrate Spring AOP — before advice. Make necessaryassumptions wherever needed. B) Design a webpage to demonstrate the use of various action tags of JSP. qa Define a generic class called GemAB, and a second class called GenDemo, which uses GenAB. The GenAB class should have atleast two parameters namely A and B that will be replaced by different data types whenever the object of type GenAB is created. Write a Java program to implement simple use of Generic class and demonstrate by using various primitive data types in place of generic types. B) Create a database called DIRECTORY in any RDBMS of your choice Create a table in it called TELEPHONE with columns as name, mobile number and city. Design a webpage using JSP so that data can be stored and retrieved as per the requirement. Make your own assumptions wherever necessary. Qi a) Define a generic class called GenT, and a second class called GenDemo, which uses GenT. The GenT class should have a parameter T that will be replaced by a data type whenever the object of type GenT is created. Write a Java Program to implement simple use of Generic class and demonstrate by using various primitive data types in place of T. B) Greate a database called COLLEGE in any RDBMS of your choice. Create a table in it named STUDENT with columns as RollNo, Name. Semester and Program. Design a webpage to add, delete and display the records of this table Make necessary assumptions wherever needed. Qi ay ‘Write @ program to demonsirate PreparedStatement in Spring JdbcTemplate B) Devise an Interest Calculator that accepts Principal amount, number of years and rate of interest from user. The calculator thea asks for option as Simple Interest or Compound Interest. The interest should be displayed as per the choice. Design a webpage using JSP to demonstrate the functioning of interest calculator. Make necessary assumptions wherever needed. Qi a4) Write a program based on simple Spring and JDBC to insert, update anddelete records from the given table. B) Design a web page using JSP to have a smooth functioning of a Registration Form. Design a second webpage to display all these accepted records in a tabular format. Both the pages must be interlinked. Make necessary assumptions wherever needed

You might also like