Вы находитесь на странице: 1из 4

RVPL Practice Questions

(2013-14)

1. Design & develop a simple arithmetic calculator by using control array in VB.
2. Create a simple animation in VB using shape control & timer control. Include a toolbar for
play, pause, stop and rewind the animation.
3. Create two tables in oracle: Category (categoryid, categoryname),
Parts(categoryid,partid, partname, price) Build VB application to manipulate data in two
tables using ADODB connection.
4. Create a table in Oracle for Computer Shopee.
items(i_code, iname, iprice, iquantity, itype)
Where itype can be like processor, motherboard, peripheral, etc.
Design a menu in VB
ITEM ------------ New
------------- Open
------------- Search
------------- Delete
------------- Exit
Perform the selected operations on the table using ADODB connection.
5. Design an Acive X control for login form, which will accept username & password &
validate it.

Login
Username ------
Password ------
Login clear

6. Create following tables in oracle. Define proper constraints on it.
Emp (ename,street,city)
Works (ename,cname,salary)
Company(cname,city)
Manager(ename,nname)

1) Find all companies located in every city in which company SBI is located.
2) Give all managers of SBI a 10% raise unless the salary becomes greater
than > 25,000, in such cases give only 2.5%
3) Find those companies whose employees each higher salary an average than
the avg.salary at SBI
4) Find the names of employees in this database who do not work for SBI
5) Find the names of all employees who earn more than every employee of SBI.

7. Create a table in oracle product (id, name, description, size, color, quantity, unit_ price).
Create a front end in VB for product table using ADODB connection & provide facility for
insertion, delete, update, select. Add data report to display all products grouped by color.

8. Build a VB application to create an activex control for decimal to octal, binary, hex conversion.
Add methods, properties & events to it.
9. Write a Pro*c application (Embedded SQL) to insert & display all records in any one table.
Also execute following query through pro*c
List the course name joined by the student XYZ.(accept student name from user).
10. Build an wordpad application having facilities of open file, save file, also add format
facility having options colour ,font.
11. Build an application in VB to create activex control for following string operations.
string compare, reverse length ,string concat, palindrome.


12. Create following database schema of online auctions in Oracle:
members (userid, password, name, address, phone, email)
items (ino, category, title, description, sellerid, quantity, startprice, bidincrement,
lastbidrecieved, closetime)
shipping (ino, shiptype, shipprice)
bid (buyerid, ino, price, qtywanted, bidtime)
rating (ino, buyerid, sellerid, bcomment, scomment, bscale, sscale)
Insert at least 10 proper records in each table and execute the following SQL queries on the
tables.
Find all the members who did not buy, sell or bid for last one month.
Print the shipping address of the member who has ordered item number 2134.
List the top 5 hot selling items of the day in ascending order according to the category.
Find the items most hated by sellers and buyers.

13. Consider the following relations of the mail order database :
employee (eno, ename, pin, hire_date)
parts (pno, pname, qty_on_hands, price, level)
customers (cno, cname, street, pin, phone)
orders (ono, cno, eno, received_date, shipped_date)
odetails (ono, pno, qty)
pincodes (pin, city)
Create these tables in Oracle and write SQL expressions that answer following queries

1. Get the names of the customers who have ordered parts from employees living in
Dhankawadi
2. Get the names of the customers who have ordered parts only from employees living in
Dhankawadi
3. Get the names of the customers who have ordered all the parts costing less than Rs. 2000
4. Get the names of employees along with total sales they have made for the year 2006
5. Get the names of the employees who have never sold anything to a customer living in the
same pin code as the employee
6. Get the names of the customers who have placed most expensive orders
7. Get the names of the customers who have placed highest number of orders
Get the names of the parts that ordered the most (in terms of quantity, not the number of
orders)


14. Write the PL/SQL procedure that finds the five employees with the highest sales figures in
terms of rupees and prints their numbers.

15. Create a table in oracle
Product (id,name,description,size,colour,quantity,unitprise).create a front end in VB for product
table using ADODB connection & provide facility for insertion, delete, update, select.

16. Write Pro*c (Embedded SQL) program to Create a table in oracle
product (id,name,description,size,colour,quantity,unitprise).
Also provide facility for insertion, delete, and update, select.

17. Create a VB application which mimics the Windows Notepad.


18. Departments (Department_id : number, dept_name : varchar2(20), manager_id : number,
location_id : number)
Jobs (Job_id: number, job_title : varchar2(20), min_salary : number, max_salary : number)
Locations (Location_id : number, street : varchar2(20), city : varchar2(20), state : varchar2(20),
country : varchar2(20))
Write the SQL queries:
1] To display all the employees in descending order of their salary.
2] List unique job_id from employees table.
3] To display employee_id, full name and salary of all employees who have joined in year 2006
according to their seniority.
4] List name of all departments in location 20,30 and 50
5] Display the full name of all employees whose first_name or last_name contains a


19. Departments (Department_id : number, dept_name : varchar2(20), manager_id : number,
location_id : number)
Jobs (Job_id: number, job_title : varchar2(20), min_salary : number, max_salary : number)
Locations (Location_id : number, street : varchar2(20), city : varchar2(20), state : varchar2(20),
country : varchar2(20))
Write the SQL queries:
1] To display the department id and the count of the total no. of employees in respective departments
2] List all the employees who earns more than the average salary and sort the result descending order
of the salaries
3] Display last_name, department_id and job_id of all employees whose department location_id is
170.
4] Display the manager_id and salary of the lowest paid employee for that manager. Exclude anyone
whose manager is not known. Exclude any group where the minimum salary is less than $5000. Sort
the output in descending order of salary.
5] List name of all departments in location 20,30 and 50
6] Display the full name of all employees whose first_name or last_name contains a.

20. Consider the relations:
Customers (Cust_id : number, name : varchar2(20), city :varchar2(20))
Accounts (acc_no : number, branch_name : varchar2(20), balance : number)
Loan (loan_no : number, branch_name : varchar2(20), amount : number)
and relationships: Depositor (Cust_id, acc_no)
Borrower (Cust_id, loan_no)
Write the following queries:
1] Display all cust_id of the customer who have both account and an loan at the bank (result should
contain all the accounts or loans of every customer if in case there are more than one account or loan)
2] Display name of all the customers who have taken the loan but do not have an account.
3] Display cust_id of all the customers who have account in bank or have taken loan.

21. WAP in VB to display selected file. Create treeview in the following format.


Items
|
|------ c:\
| |______\my documents
| |__________emp.txt
|
|----- d:\
|
|
|---- e:\



22. Design and Develop Scientific Calculator using control array.
23. Design and Develop Menu driven Text editor.
24. Design and Develop an application which demonstrates the use of Drive box, Directory list box,
File List box and Tree view control.
25. Design and Develop a program for animation(traffic signal or bouncing ball or flying butterfly
etc.)
26. Design and Develop ActiveX user control (numeric text box, string manipulation function).
27. Design and Develop ActiveX DLL for linear search & binary search and demonstrate the use of
ActiveX DLL in Standard EXE project.
28. Design student Information form using Visual Basic 6.0 and Implement validation for Text,
Number, Email, Length, Upper Case, Lower Case, Date, Password, Character matching etc.
29. Design and develop Student Information Form using ADODC and ADODB.
30. Design and Develop SQL DDL statements for bank database which demonstrate the use of SQL
objects such as Table, View, Index, Sequence, Synonym.
31. Design at least 10 SQL queries for bank database application using SQL DML statements: Insert,
Select, Update, Delete with operators, functions, set operators, Clauses.
32. Design at least 10 SQL queries for bank database application using SQL DML statements: all
types of Join, Sub-Query and View.
33. Write a PL/SQL block to calculate the grade of minimum 10 students.
34. Write a PL/SQL block to implement explicit type of cursor for insert & display records of
employee database.
35. Write a PL/SQL stored procedure and function for area of circle, factorial.
36. Write a PL/SQL stored procedure and function for swapping of numbers, even/odd numbers.
37. Write a database Trigger to maintain count for insert,update & delete operation on student
database.
38. Implement Embedded SQL queries for employee database using C/C++ as host language.



(Best Of Luck)

Вам также может понравиться